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
Huan Du and GitHub
308b18094b
Merge pull request #50 from tolbier/omitempty_for_patch
...
Omitempty for TAG
2020-11-02 10:44:00 +08:00
Lluis Toyos
589248b9ed
Fix Minor Error: just a return
2020-10-30 14:43:25 +01:00
Lluis Toyos
8dfc8a45ae
Fix Error: tags now are trimmed
2020-10-30 13:10:21 +01:00
Lluis Toyos
29166060b1
refactor and Named Regex
2020-10-30 09:49:35 +01:00
Lluis Toyos
edc8d5dfb6
changes suggested by Huan du (just minor fix on tests)
2020-10-29 17:57:52 +01:00
Lluis Toyos
840ad7d339
changes suggested by Huan du
2020-10-29 17:40:23 +01:00
Lluis Toyos
b14e260ce5
taking regex compile out from loop
...
- as noted by @scheca https://github.com/huandu/go-sqlbuilder/pull/50/files/f6e3b58d90b3bcb41a378a12c7679911e4b694b4#r511858689
2020-10-26 11:59:22 +01:00
Lluis Toyos
f6e3b58d90
Fix fieldOptOmitEmptyForRegex
2020-10-26 09:52:10 +01:00
Lluis Toyos
afbe86b2b1
Revert "update go.mod"
...
This reverts commit ebf836fe
2020-10-25 16:37:50 +01:00
Lluis Toyos
bd0b043b6a
Adding Tests for omitempty_for_TAG
2020-10-25 16:34:50 +01:00
Lluis Toyos
b129a95209
changes on struct.go for omitempty_for_tag behaviour
2020-10-24 13:37:29 +02:00
Lluis Toyos
ebf836fe7a
update go.mod
2020-10-24 13:15:46 +02:00
Huan Du
ce738c850f
fix a typo in README
2020-07-28 12:05:44 +08:00
Huan Du
7239db6838
fix #47 . add Union and UnionAll methods
2020-07-28 12:01:33 +08:00
Huan Du
71c2993522
update doc
2019-11-21 14:53:43 +08:00
Huan Du and GitHub
fec07317a3
Merge pull request #41 from huandu/feature-struct-SelectFrom-add-table-name-as-col-prefix
...
fix #40 . add table name as col prefix in Struct#SelectFrom/SelectFromTag
2019-11-21 14:50:54 +08:00
Huan Du
5a841c3555
refs #40 . add table name as col prefix in Struct#SelectFrom/SelectFromTag
2019-11-21 14:46:19 +08:00
Huan Du
7e6b6f810c
update doc
2019-11-11 16:55:43 +08:00
Huan Du and GitHub
8827426890
Merge pull request #39 from Hadesonly/addInsertIgnore
...
Add `InsertIgnoreInto`/`ReplaceInto`/etc methods to `Struct`.
2019-11-11 16:29:40 +08:00
sunzheng
414da2d9ea
refactory and rm useless code
2019-11-11 16:14:28 +08:00
sunzheng
728429d745
add replaceInto and replaceIntoForTag and its tests
2019-11-10 19:03:06 +08:00
sunzheng
ddd5057cb7
add insert_ignore and insert_ignore_for_tag and its tests
2019-11-10 18:43:51 +08:00
Huan Du and GitHub
b36d8e236f
Merge pull request #38 from huandu/bug-postgresql-interpolate-string
...
Fix #37 . add `E` prefix in PostgreSQL string when interpolating
2019-11-06 14:09:21 +08:00
Huan Du
005d9a3554
fix #37 . add E prefix in PostgreSQL string when interpolating
2019-11-06 14:04:36 +08:00
Huan Du and GitHub
c40e64c50d
Merge pull request #36 from huandu/issue-dont-escape-by-default
...
Fix #35 . do not escape cols by default.
2019-10-25 18:37:16 +08:00
Huan Du
402f354140
fix #35 . do not escape cols by default.
2019-10-25 18:32:34 +08:00
Huan Du and GitHub
12fda659dc
Merge pull request #33 from ddouglas/ddouglas-adding-insert-ignore
...
Adding Insert Ignore to Insert Builder
2019-09-06 10:24:28 +08:00
David Douglas
38e2777bf8
Correcting Comment
2019-09-06 01:39:32 +00:00
David Douglas and GitHub
e323bb9e5a
Renamed example to correct name format
2019-09-05 21:16:56 -04:00
David Douglas
ac0802ad49
Adding Insert Ignore to Insert Builder
2019-09-06 01:02:13 +00:00