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
Huan Du and GitHub
c93cf88737
Merge pull request #68 from dgellow/patch-1
...
Fix small comment typo
2021-12-14 18:25:22 +08:00
Samuel El-Borai and GitHub
3a39ac32e4
Fix small comment typo
2021-12-14 10:42:23 +01:00
Huan Du and GitHub
59acf167e4
update readme to introduce utility methods
...
Add doc per request in #67
2021-10-21 18:45:08 +08:00
Huan Du and GitHub
01ee5e26c6
Merge pull request #66 from huandu/flavor-sqlserver
...
Fix #64 Add SQLServer flavor
2021-09-07 10:57:41 +08:00
Huan Du
5cf00e9d1d
add ORDER BY 1 for SQL Server if Limit() is set but OrderBy() is not
2021-07-27 22:46:02 +08:00
Huan Du
1bb5856684
fix #65 Struct#InsertInto* methods are aware of omitempty options now
2021-07-25 15:34:47 +08:00
Huan Du
58fddabdd6
update doc
2021-07-25 11:49:14 +08:00
Huan Du
3e007c306f
refs #64 add SQLServer flavor
2021-07-25 03:28:33 +08:00
Huan Du
c4c083ed73
update github ci script
2021-03-28 02:00:54 +08:00
Huan Du
51b8e25b79
fix #61 . remove parens in UNION for SQLite
2021-03-28 01:55:27 +08:00
Huan Du
9d74991669
fix #59 support field mapper for Struct
2021-02-21 20:18:09 +08:00
Huan Du and GitHub
1fb1e4ba07
Merge pull request #58 from huandu/feature-sql-injection
...
Fix #48 #49 #53 : Add new method SQL in all builders
2021-02-04 00:10:02 +08:00
Huan Du
b15ca56b4d
refs #48 #49 #53 : add new method SQL in all builders
...
All builders add a new method called SQL to enable us to add any
arbitrary SQL when building. It's quite useful when we are using some
kinds of extension syntax or add special comments in SQL.
2021-02-04 00:07:55 +08:00
Huan Du
041d144b16
update travis-ci status icon
2020-12-27 00:07:30 +08:00
Huan Du
51547d1782
fix #51 : support new flavor SQLite
2020-12-26 23:51:35 +08:00
Huan Du and GitHub
f275dada48
Merge pull request #57 from rw-access/add-full-joinoption
...
Add INNER join option
2020-12-22 16:41:04 +08:00
Ross Wolf
37f1ba6eab
Add INNER join option
2020-12-21 23:13:34 -07:00
Huan Du
e5862ce65a
fix #55 . Fix incorrect parens in UNION stmt
2020-12-22 13:34:29 +08:00
Huan Du
a650aa79bd
add doc for omitempty(tag)
2020-11-02 10:53:27 +08:00