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