Commit Graph
29 Commits
Author SHA1 Message Date
Aleksander Zaruczewski 157445026c Fix warnings and typos 2022-02-17 16:07:23 +03:00
Samuel El-BoraiandGitHub 3a39ac32e4 Fix small comment typo 2021-12-14 10:42:23 +01: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 9d74991669 fix #59 support field mapper for Struct 2021-02-21 20:18:09 +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 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 b129a95209 changes on struct.go for omitempty_for_tag behaviour 2020-10-24 13:37:29 +02: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
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
Sergio Checa Blanco c8c78f7826 update struct with missing pointer values 2019-07-13 22:43:38 +02:00
Huan Du 015f032529 add a new fieldopt "omitempty" 2019-03-20 00:18:57 +08:00
Huan Du 1a61b6d200 fix #9. remove the limit set in Struct#SelectFrom. 2018-03-15 20:23:40 +08:00
Huan Du 7ad5c7dd9c use DefaultFlavor by default in NewStruct 2018-02-22 23:23:22 +08:00
Huan Du c5133ff161 support quote in Struct 2018-02-22 22:08:57 +08:00
Huan Du e219582f5a fix #6. support Postgre-flavor markers. 2018-02-04 21:49:42 +08:00
petersunbag 059b02a0f5 fix typo 2018-01-22 18:39:13 +08:00
petersunbag 47d4ff6365 clean code 2018-01-08 20:12:25 +08:00
petersunbag d89336ca7e InsertInto and InsertIntoForTag receive ...interface{} 2018-01-08 13:29:16 +08:00
petersunbag 9abfa340c3 struct bulk insert 2018-01-07 22:04:04 +08:00
Huan Du ff11beaf50 update doc 2017-12-31 01:57:03 +08:00
Huan Du 3d80e20960 update doc and provide more samples 2017-12-31 00:31:19 +08:00
Huan Du ae0151fccb implement Struct and add more docs 2017-12-30 04:36:25 +08:00