zhangyongding
73b1f4d410
add get alias func
2023-07-28 15:06:54 +08:00
zhangyongding
096b0896e9
supports custom DBTag content
2023-07-25 09:13:42 +08:00
Huan Du and GitHub
447c14160c
Merge pull request #117 from huandu/feature-tuples
...
Fix #108 : Support tuple
2023-07-22 23:13:48 +08:00
Huan Du and GitHub
359d93b36f
Merge pull request #116 from huandu/feature-generate-sql-only-when-value-is-set
...
Fix #115 : Generate SQL only when necessary values are set
2023-07-22 23:12:40 +08:00
Huan Du
2364e7835b
add doc
2023-07-22 22:54:09 +08:00
Huan Du
218c717c01
refs #108 : support tuples
2023-07-22 22:51:03 +08:00
Huan Du
769091c858
refs #115 : Generate SQL only when necessary values are set
2023-07-22 20:50:59 +08:00
Huan Du and GitHub
cb38c02175
Merge pull request #102 from huandu/feature-more-cond
...
fix #100 Add EXISTS/NOT EXISTS/ANY/SOME/ALL in `Cond`
2023-04-01 16:57:49 +08:00
Huan Du
fa218b8b11
update sample output in README
2023-04-01 16:48:19 +08:00
Huan Du and GitHub
875363b309
Merge pull request #99 from huandu/feature-presto
...
fix #98 Add new flavor Presto
2023-04-01 16:46:56 +08:00
Huan Du
eb96df9e68
refs #100 add EXISTS/NOT EXISTS/ANY/SOME/ALL in Cond
2023-04-01 16:43:22 +08:00
Huan Du
ce1b345ef8
update doc
2023-03-27 23:31:03 +08:00
Huan Du
0b1c445a5c
refs #98 add new flavor Presto
2023-03-27 23:17:33 +08:00
Huan Du and GitHub
4c1daa8aab
Merge pull request #96 from huandu/feature-with-without-tag
...
More flexibility to filter fields with WithTag and WithoutTag in Struct
2023-02-27 10:15:47 +08:00
Huan Du
ca5bb168f8
update test cases and examples for better coverage
2023-02-27 10:13:49 +08:00
Huan Du
42130d3b3a
refs #60 . more flexibility to filter fields with WithTag and WithoutTag in Struct
2023-02-27 00:59:49 +08:00
Huan Du
59650fe906
update readme and format code
2023-01-12 17:08:08 +08:00
Huan Du and GitHub
e7e2630261
Merge pull request #85 from datastax-ext/master
...
Add CQL support
2023-01-11 19:27:34 +08:00
Spencer Connaughton
86810be49d
Fix insert test.
2023-01-09 16:34:03 -05:00
Spencer Connaughton
fa3dc6eaa7
Remove NOW.
2023-01-05 17:37:17 -05:00
Spencer Connaughton
d4eb709637
Remove IF.
2023-01-05 10:27:07 -05: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
Huan Du
9ca8334e83
Merge branch 'hanyuancheung-feature/support_clickhouse_grammar'
2022-12-15 16:02:19 +08:00
Huan Du
bd37a413aa
fix incorrect verb for InsertBuilder
2022-12-15 16:01:21 +08:00
csuzhang
1596455534
fix unhex and test in local clickhouse
2022-12-15 11:13:57 +08:00
csuzhang
5e488c7059
fix unhex and flavor bug
2022-12-13 16:03:18 +08:00
csuzhang
67863e4274
fix readme
2022-12-12 17:46:29 +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
39a4b2509b
Merge remote-tracking branch 'upstream/master' ( #2 )
...
* ignore unexported fields that are not embedded structs
* 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.
* fix #75 add Struct#Columns/ColumnsForTag and Struct#Values/ValuesForTag
* remove a call to StructField.IsExported as it is not in go1.13
* refs #78 add new `fieldas` tag to set AS name for SELECT
* update docs
* fix #81 refactory struct field parser to make fieldas correct in all cases
* Add Gitter badge
* Fix insert ignore for postgres and sqlite.
* fix test
Co-authored-by: Michał Dobaczewski <[email protected] >
Co-authored-by: Huan Du <[email protected] >
Co-authored-by: The Gitter Badger <[email protected] >
Co-authored-by: Zhong Ren <[email protected] >
2022-11-30 10:57:35 -05:00
Huan Du and GitHub
8e5a46ebd2
Merge pull request #91 from huandu/feature-driver-valuer
...
fix #90 Support driver.Valuer type in Struct and interpolate methods
2022-11-24 16:42:12 +08:00
Huan Du
61a65cedc6
support driver.Valuer type in Struct and interpolate methods
2022-11-24 16:33:48 +08:00
Huan Du and GitHub
e42d3d9ec6
Merge pull request #87 from zhongr3n/zhongr3n/fix-insert-ignore
...
Add insert ignore support for postgres and sqlite
2022-09-17 18:42:12 +08:00
Zhong Ren
50850de843
fix test
2022-09-14 11:11:58 -04:00
Zhong Ren
45d8c3506f
Fix insert ignore for postgres and sqlite.
2022-09-14 11:01:02 -04:00
Huan Du and GitHub
04998f49e3
Merge pull request #86 from gitter-badger/gitter-badge
...
Add a Gitter chat badge to README.md
2022-09-09 12:21:02 +08:00
The Gitter Badger
826531124f
Add Gitter badge
2022-09-09 02:46:28 +00:00
Spencer Connaughton and GitHub
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
e6e16111d3
fix #81 refactory struct field parser to make fieldas correct in all cases
2022-09-04 00:09:09 +08:00
Huan Du and GitHub
16a3a33952
Merge pull request #79 from huandu/feature-fieldas
...
Add new `fieldas` tag to set AS name for SELECT
2022-07-24 09:46:00 +08:00
Huan Du
6592350faf
update docs
2022-07-23 15:11:19 +08:00
Huan Du
72a87cb0b7
refs #78 add new fieldas tag to set AS name for SELECT
2022-07-21 22:14:43 +08:00
Huan Du
3dc5cbacd2
remove a call to StructField.IsExported as it is not in go1.13
2022-07-16 14:40:00 +08:00
Huan Du
0304f8a109
fix #75 add Struct#Columns/ColumnsForTag and Struct#Values/ValuesForTag
2022-06-25 15:07:58 +08:00
Huan Du and GitHub
c4f15543da
Merge pull request #73 from MDobak/master
...
Ignore unexported fields that are not embedded structs
2022-06-23 13:24:50 +08:00
Huan Du
20431a834c
merge
2022-06-23 13:14:18 +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
Michał Dobaczewski
c1d29073e0
ignore unexported fields that are not embedded structs
2022-06-07 13:15:06 +02:00
Huan Du and GitHub
68495078ea
Merge pull request #71 from superjobru/fix-warnings-and-typos
...
Fix warnings and typos
2022-02-18 11:06:28 +08:00
Aleksander Zaruczewski
157445026c
Fix warnings and typos
2022-02-17 16:07:23 +03:00