gosql:golang orm和sql生成器 源码
Gosql的 gosql是Golang的简单ORM库。 风格: var userList [] UserModel err := db . FetchAll ( & userList , gosql . Columns ( "id" , "name" ), gosql . Where ( "status" , 1 ), gosql . Where ( "[like]name" , "j%" ), gosql . OrWhere ( func ( s * gosql. Clause ) { s . Where ( "[>]score" , "90" ) s . Where ( "[<]score" , "100" ) }), gosql . GroupBy ( "type" ), gosql . Or
用户评论