9 Commits
Author SHA1 Message Date
zooqueen f17ed0bb2d deps: declare the go the tests already need
go.mod said go 1.18, so the runner fetched 1.18.10 and the package would not
even set up:

  select_fuzz_test.go:7:2: package slices is not in GOROOT
  FAIL github.com/hanzoai/sqlbuilder [setup failed]

slices arrived in 1.21 and select_fuzz_test.go imports it. 1.21 is the lowest
version that compiles this, which keeps the module usable by as many consumers
as possible — nothing here needs anything newer.

go build ./... and go test ./... both clean.
2026-08-10 22:11:13 -07:00
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 Du 18f7db8816 fix #211: Support clone (deep copy) in all builders 2025-09-17 16:19:09 +08:00
Edouard Schweisguth 19f7503839 Add a fuzz harness for Select 2025-06-25 11:24:11 +02:00
Huan Du 1c64d87a7c fix #150: remove useless deps in go.mod and go.sum 2024-05-26 14:23:24 +08:00
Huan Du d444898018 fix #74 [BREAKING CHANGE] Select#GroupBy and Select#OrderBy behavior change.
Previous, GroupBy and OrderBy only keep the columns in the last call. Now, all columns are kept.
2022-06-23 12:50:48 +08:00
Huan Du 9d74991669 fix #59 support field mapper for Struct 2021-02-21 20:18:09 +08:00
Huan Du 402f354140 fix #35. do not escape cols by default. 2019-10-25 18:32:34 +08:00
Huan Du e999f0cf0c add go.mod 2018-09-06 12:02:29 -05:00