Commit Graph
117 Commits
Author SHA1 Message Date
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 DuandGitHub 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 DuandGitHub 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 DuandGitHub 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 DuandGitHub 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 DuandGitHub 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 DuandGitHub 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 DuandGitHub 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 DouglasandGitHub 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
Huan DuandGitHub 1f661ec91c Merge pull request #32 from petersunbag/master
Add SetAppend in UpdateBuilder
2019-08-19 20:02:57 +08:00
petersunbag 4fc90bd491 add table in TestUpdateBuilder_SetMore 2019-08-19 19:10:14 +08:00
petersunbag 36ce8a8599 SetAppend -> SetMore 2019-08-19 18:11:30 +08:00
petersunbag 00dbc17646 SetAppend -> SetMore 2019-08-19 18:08:43 +08:00
petersunbag 918aaddf83 add SetAppend in UpdateBuilder 2019-08-15 16:39:14 +08:00
sunweinanandGitHub 44e00cf3a3 Merge pull request #2 from huandu/master
Merge huandu/master
2019-08-15 16:23:13 +08:00
Huan DuandGitHub c4f91f2bc6 Merge pull request #30 from Dynactionize/feature/allow_offset_without_limit_for_postgres
allow offset without limit for Postgres
2019-07-21 23:19:32 +08:00
Florian Lechner 867c0124b5 added test case for limit offset 2019-07-21 12:19:07 +02:00
Florian Lechner 36b815048e added logic to allow to just set an offset without having to set a limit for Postgres, behaviour for MySQL has not changed 2019-07-19 13:33:52 +02:00
Huan DuandGitHub 0710b49c9c Merge pull request #28 from scheca/scheca/update-struct-with-pointers
update struct with missing pointer values. fix #27
2019-07-15 15:44:31 +08:00
Sergio Checa Blanco c8c78f7826 update struct with missing pointer values 2019-07-13 22:43:38 +02:00
Huan Du 254d75df2e update doc and test cases again 2019-04-25 18:56:42 +08:00
Huan Du 6a3f9222bd update doc and test cases 2019-04-25 18:47:11 +08:00