文件名称:日期:Go Postgres数据访问工具包
文件大小:100KB
文件格式:ZIP
更新时间:2024-02-20 09:26:16
go postgres sql nested-transactions SQLGo
t dat (数据访问工具包)是用于Go的快速,轻量级的Postgres库。 专注于Postgres。 参见Insect , Upsert , SelectDoc , QueryJSON 建立在扎实的基础 // child DB is *sqlx.DB DB . DB . Queryx ( `SELECT * FROM users` ) SQL和反引号友好 DB . SQL ( `SELECT * FROM people LIMIT 10` ). QueryStructs ( & people ) JSON文档检索(单次访问Postgres,需要Postgres 9.3+) DB . SelectDoc ( "id" , "user_name" , "avatar" ). Many ( "recent_comments" , `SELECT id, title FROM comments WHERE id = users.id LIMIT 10` ). Many ( "recent_posts" , `SELECT id, title FROM posts
【文件预览】:
dat-master
----select_doc.go(9KB)
----types.go(6KB)
----util_test.go(2KB)
----.gitignore(44B)
----upsert.go(5KB)
----README.md(18KB)
----builders_generated.go(4KB)
----delete_test.go(941B)
----reflectx()
--------reflectx.go(10KB)
----raw.go(509B)
----builder.go(2KB)
----fixtures()
--------data.sql(386B)
----init_test.go(813B)
----struct_mapping.go(1KB)
----select_test.go(9KB)
----LICENSE(1KB)
----CHANGES.md(3KB)
----call_test.go(790B)
----dialect.go(572B)
----interpolate_test.go(6KB)
----Gododir()
--------main.go(3KB)
--------bench.md(11KB)
--------generate.go(1KB)
--------pg.go(4KB)
----types_test.go(941B)
----where.go(4KB)
----select_doc_test.go(4KB)
----select.go(5KB)
----init.go(2KB)
----call.go(942B)
----insert_test.go(3KB)
----insect.go(5KB)
----glide.lock(2KB)
----scope.go(3KB)
----sqlx-runner()
--------benchmarks_sql_exec_test.go(2KB)
--------insert_exec_test.go(6KB)
--------meta.go(4KB)
--------benchmark_varying_length_test.go(4KB)
--------fixtures()
--------init_test.go(1KB)
--------db_test.go(192B)
--------fixtures_test.go(3KB)
--------query_object_test.go(938B)
--------delete_exec_test.go(2KB)
--------sproc_test.go(3KB)
--------update_exec_test.go(6KB)
--------select_doc_test.go(6KB)
--------timeout_test.go(3KB)
--------init.go(1KB)
--------connection.go(737B)
--------benchmark_insert_transaction_test.go(2KB)
--------json_test.go(786B)
--------tx_test.go(5KB)
--------exec.go(17KB)
--------connection_test.go(1KB)
--------select_exec_test.go(7KB)
--------benchmark.sql(233B)
--------cache_test.go(6KB)
--------benchmarks_build_sql_exec_test.go(2KB)
--------execer.go(4KB)
--------upsert_test.go(1KB)
--------sqli_test.go(3KB)
--------queryable.go(3KB)
--------db.go(2KB)
--------insect_test.go(2KB)
--------tx.go(4KB)
--------benchmark_init_test.go(787B)
----delete.go(2KB)
----glide.yaml(574B)
----common()
--------common.go(336B)
--------buffer.go(842B)
----update_test.go(3KB)
----execer.go(2KB)
----insert.go(4KB)
----upsert_test.go(2KB)
----util.go(6KB)
----expression.go(640B)
----issues_test.go(1KB)
----update.go(6KB)
----.editorconfig(809B)
----kvs()
--------memory.go(2KB)
--------init.go(124B)
--------redis.go(2KB)
--------interfaces.go(786B)
----interpolate.go(6KB)
----insect_test.go(2KB)
----postgres()
--------postgres.go(3KB)
----struct_mapping_test.go(960B)
----list_helpers.go(909B)
----errors.go(874B)