16 Commits
Author SHA1 Message Date
zeekay 74627ec1a2 Fork huandu/go-sqlbuilder v1.39.1 to hanzoai/sqlbuilder; debrand ClickHouse flavor -> Datastore
- go.mod module path -> github.com/hanzoai/sqlbuilder (package name kept: sqlbuilder)
- Rename exported Flavor constant ClickHouse -> Datastore (same iota ordinal 6,
  behavior byte-identical): const decl, all case labels (Interpolate/Quote/
  PrepareInsertIgnore/args/select/union), Flavor.String() literal "ClickHouse"
  -> "Datastore", and the name<->flavor test map.
- Rename unexported dialect helper clickhouseInterpolate -> datastoreInterpolate.
- Rename example ExampleInsertBuilder_insertIgnore_clickhouse -> _datastore.
- Update tests + README flavor list to Datastore.
- Keep upstream MIT LICENSE; add NOTICE recording the fork + rename.

Dialect SQL output unchanged; only the identifier is renamed.
2026-07-12 18:00:41 -07:00
Huan DuandGitHub 22ee7f6fa6 Merge pull request #228 from shoriwe/fix/sqlite-strings
fix #227: sqlite: string interpolation incorrectly uses backslash escapes
2025-12-30 15:24:20 +08:00
Antonio 6d84952db1 test: make all tests pass by resolving to correct SQLite syntax 2025-12-29 11:33:43 -04:00
Antonio a3e890bc83 fix: improve error-msg context for unsupported types during interpolation 2025-12-25 12:44:30 -04:00
Huan Du e47fcc5fb9 fix #213 support typed nil in interpolation 2025-08-11 18:32:23 +08:00
Huan Du 8ed4b5374f fix #192 Add new flavor Doris 2025-03-20 19:05:19 +08:00
maixl 2d88cfe780 支持informix 2024-03-19 10:50:29 +08:00
tianfw 9cd8ddcc2c support oracle 2023-08-27 21:18:36 +08:00
Huan Du 0b1c445a5c refs #98 add new flavor Presto 2023-03-27 23:17:33 +08:00
Spencer Connaughton 8880301f5b Merge remote-tracking branch 'upstream/master'
# Conflicts:
#	README.md
#	args.go
#	flavor.go
#	insert_test.go
#	interpolate.go
#	interpolate_test.go
#	select_test.go
#	struct.go
#	struct_test.go
2023-01-05 10:19:05 -05:00
csuzhang 1596455534 fix unhex and test in local clickhouse 2022-12-15 11:13:57 +08:00
csuzhang 3a20376e15 support ClickHouse Grammar 2022-12-12 17:41:50 +08:00
csuzhang 561104398a support ClickHouse Grammar 2022-12-12 17:34:23 +08:00
Huan Du 61a65cedc6 support driver.Valuer type in Struct and interpolate methods 2022-11-24 16:33:48 +08:00
Spencer ConnaughtonandGitHub 0f54cd520c Add CQL support (#1)
* Add CQL flavor.

* Add support for CQL argument compilation.

* Adopt substests for interpolation tests.

* Add support for CQL interpolation.

* Add support for CQL blobs.

https://docs.datastax.com/en/cql-oss/3.x/cql/cql_reference/blob_r.html

* Add CQL timestamp interpolation support.

https://docs.datastax.com/en/cql-oss/3.x/cql/cql_reference/timestamp_type_r.html

* Add builder test for CQL.

* Add support for the NOW function.

https://docs.datastax.com/en/cql-oss/3.3/cql/cql_reference/timeuuid_functions_r.html?hl=now

* Add support for CQL update IF statement.

https://docs.datastax.com/en/cql-oss/3.3/cql/cql_reference/cqlUpdate.html#Conditionallyupdatingcolumns

* Drop table prefixes for CQL SELECTs.

* Switch to single quoting for CQL queries.

https://docs.datastax.com/en/cql-oss/3.3/cql/cql_reference/escape_char_r.html

* Update documentation.

* Use valid CQL in tests.

* Support CQL LIMIT.
2022-09-08 14:39:35 -04:00
Huan Du 3e007c306f refs #64 add SQLServer flavor 2021-07-25 03:28:33 +08:00