gosql是一款golagstyle语法的golagorm库。
优雅的语法,支持批量插入;轻松嵌套条件,处理各种复杂的查询sql,诸如:ad和or组合;全语法支持:forupdate锁、isull、exists子查询等基本上所有sql语法特xigGolag-styleSQLbuildergo语言风格sql生成Ulimitedestigquery查询条件无限嵌套ReadigadWritigSeparatio读写分离Delaycoectiocreatio延迟创建连接ORMmapigtosturctORM映射结构体Trasactios事务支持Versatile功能多样的CleaCode简洁的代码BulkIsert支持批量插入风格如下user:=&UserModel{}err:=db.Fetch(user, gosql.Colums("id","ame"), gosql.Where("id",1), gosql.Where("[like]ame","j%") gosql.OrWhere(fuc(s*Clause){ s.Where("[>=]score","90") s.Where("[<=]age","100") }), GroupBy("type"), OrderBy("scoreDESC"),)
评论