文件名称:xorm-builder
文件大小:41KB
文件格式:ZIP
更新时间:2024-04-05 09:44:13
Go
SQL构建器 软件包构建器是用于Go和XORM的轻量级且快速SQL构建器。 确保已安装Go 1.8+,然后: go get xorm.io/builder 插入 sql , args , err := builder . Insert ( Eq { "c" : 1 , "d" : 2 }). Into ( "table1" ). ToSQL () // INSERT INTO table1 SELECT * FROM table2 sql , err := builder . Insert (). Into ( "table1" ). Select (). From ( "table2" ). ToBoundSQL () // INSERT INTO table1 (a, b) SELECT b, c FROM table2 sql , err = builder . Insert
【文件预览】:
xorm-builder-master
----testdata()
--------oracle_fiddle_data.sql(6KB)
--------mysql_fiddle_data.sql(6KB)
--------mssql_fiddle_data.sql(6KB)
----cond_like.go(1023B)
----sql_test.go(7KB)
----README.md(5KB)
----cond_or.go(1KB)
----cond_neq.go(2KB)
----builder_test.go(13KB)
----cond_null.go(1KB)
----builder.go(6KB)
----cond_not.go(1KB)
----cond_in.go(6KB)
----doc.go(3KB)
----cond_compare.go(3KB)
----cond_expr.go(829B)
----builder_select.go(3KB)
----cond_notin.go(6KB)
----LICENSE(1KB)
----builder_delete.go(567B)
----cond.go(685B)
----go.mod(146B)
----cond_eq.go(2KB)
----cond_if_test.go(942B)
----error.go(2KB)
----builder_b_test.go(7KB)
----cond_between.go(1KB)
----builder_update.go(1KB)
----builder_union_test.go(3KB)
----builder_delete_test.go(625B)
----builder_limit.go(2KB)
----builder_update_test.go(2KB)
----cond_if.go(1004B)
----builder_limit_test.go(6KB)
----writer.go(803B)
----go.sum(839B)
----builder_join.go(1KB)
----builder_select_test.go(4KB)
----builder_insert.go(3KB)
----builder_union.go(982B)
----builder_join_test.go(3KB)
----cond_and.go(1KB)
----builder_insert_test.go(2KB)
----sql.go(3KB)
----cond_test.go(236B)