godb:Go SQL查询构建器和结构映射器

时间:2021-01-30 15:41:10
【文件属性】:
文件名称:godb:Go SQL查询构建器和结构映射器
文件大小:109KB
文件格式:ZIP
更新时间:2021-01-30 15:41:10
go golang sql orm database godb-Go查询构建器和struct映射器 godb是一个简单的Go查询构建器和struct映射器,而不是功能齐全的ORM。 Godb不能管理关系。 最初,godb是一个学习项目。 目的是通过做一些有用的事情来提高我的围棋技巧。 但是,已经添加了越来越多的功能,并且Godb已经成为一个可以供其他人使用的严肃项目。 Godb是一个仍在发展中的年轻项目。 该API几乎是稳定的,但从一个版本到另一个版本仍然可以稍作更改。 每个新版本都与一个标签相关联,因此有必要针对特定​​的版本。 产品特点 查询生成器。 结构和表(或视图)之间的映射。 使用嵌套结构进行映射。 使用结构和切片执行自定义SELECT,INSERT,UPDATE和DELETE查询。 可选地使用迭代器执行SELECT查询,以在需要时限制内存消耗(例如,批处理)。 执行原始查询,将行映射到结构。 乐观锁 SQL查询和持续时间日志。 两个可调的准备好的语句缓存(有/无事务)。 RETURNING对PostgreSQL支持。 对SQL Server的OUTPUT支持。 后端数据库的可选常见db错误处理。( d
【文件预览】:
godb-master
----dbreflect()
--------scannable.go(2KB)
--------structs_mapping_cache_test.go(933B)
--------structs_mapping_cache.go(2KB)
--------dbreflect_test.go(13KB)
--------dbreflect.go(18KB)
--------dbreflect_bench_test.go(1KB)
----update_statement_test.go(4KB)
----go.mod(482B)
----prepared_statement.go(3KB)
----docker-compose-test.yml(692B)
----delete_statement.go(3KB)
----godb.go(6KB)
----stmtcache_test.go(4KB)
----record_description.go(4KB)
----transaction.go(2KB)
----go.sum(4KB)
----LICENSE.txt(1KB)
----logger.go(1007B)
----raw_sql.go(2KB)
----adapters()
--------postgresql()
--------mysql()
--------sqlite()
--------mssql()
--------adapters.go(3KB)
----struct_delete_test.go(1KB)
----insert_statement_test.go(4KB)
----delete_statement_test.go(2KB)
----struct_select.go(3KB)
----record_description_test.go(7KB)
----dbtests()
--------common()
----struct_update_test.go(3KB)
----godb_test.go(5KB)
----select_statement_test.go(17KB)
----sqlbuffer_test.go(3KB)
----types()
--------jsonstr_test.go(1KB)
--------time.go(1KB)
--------sql.go(3KB)
--------int64slice_test.go(1KB)
--------int64slice.go(1KB)
--------jsonstr.go(4KB)
--------map_test.go(1KB)
--------time_test.go(2KB)
--------map.go(1016B)
--------float64slice_test.go(1KB)
--------bytes_test.go(645B)
--------bytes.go(676B)
--------strslice_test.go(1KB)
--------sql_dep_test.go(750B)
--------float64slice.go(1KB)
--------cjsonstr_test.go(1KB)
--------sql_test.go(4KB)
--------boolslice_test.go(1KB)
--------strslice.go(3KB)
--------boolslice.go(1KB)
--------sql_dep.go(2KB)
--------cjsonstr.go(3KB)
----mysql_test.go(2KB)
----.travis.yml(436B)
----struct_select_test.go(3KB)
----dberror()
--------dberrors.go(981B)
----doc.go(12KB)
----tablenamer()
--------tablenamer.go(2KB)
--------plural()
--------tablenamer_test.go(3KB)
----postgresql_test.go(4KB)
----mssql_test.go(5KB)
----README.md(9KB)
----struct_update.go(5KB)
----sqlbuffer.go(11KB)
----sqlite_test.go(2KB)
----condition_test.go(4KB)
----struct_delete.go(2KB)
----insert_statement.go(4KB)
----sqlrunner.go(5KB)
----prepared_statement_test.go(1KB)
----struct_insert_test.go(6KB)
----.gitignore(87B)
----update_statement.go(5KB)
----helpers_test.go(3KB)
----struct_insert.go(6KB)
----transaction_test.go(2KB)
----stmtcache.go(4KB)
----raw_sql_test.go(2KB)
----select_statement.go(10KB)
----testallwithdocker.sh(3KB)
----iterator.go(2KB)
----condition.go(5KB)

网友评论