文件名称:gosql:golang orm和sql生成器
文件大小:31KB
文件格式:ZIP
更新时间:2024-05-03 08:49:15
golang awesome orm db gin
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
【文件预览】:
gosql-master
----example()
--------main.go(2KB)
----collect_test.go(397B)
----collect.go(575B)
----session.go(8KB)
----.github()
--------workflows()
----README-ZH.md(11KB)
----db.go(2KB)
----LICENSE(1KB)
----scanner()
--------scanner_test.go(5KB)
--------scanner.go(12KB)
----session_test.go(10KB)
----pool_test.go(9KB)
----builder.go(19KB)
----.gitignore(11B)
----builder_test.go(9KB)
----go.sum(358B)
----README.md(11KB)
----pool.go(5KB)
----db_test.go(423B)
----go.mod(133B)