Commit Graph

236 Commits

Author SHA1 Message Date
Lunny Xiao c68531db53
Add lasterror on statement to return errors when chain operations (#1151)
* add lasterror on statement to return errors when chain operations

* add tests for last error

* refactor error
2019-01-20 11:45:42 +08:00
Lunny Xiao 7a9249de33
Get adds context cache feature (#1102)
* context

* add context cache feature

* remove global context cache

* remove global context cache

* reset statment

* fix bug

* remove unused params

* refactor ContextCache

* refactor ContextCache

* update README

* update README

* disable global cache on context cache test
2018-09-25 21:31:44 +08:00
Lunny Xiao 1eee8a367e
fix #997 group by (#1065) 2018-08-09 14:37:44 +08:00
Lunny Xiao ad69f7d8f0
performance improvement via string builder (#1036) 2018-07-11 08:59:00 +08:00
DrWrong(Yuhang) f16ce722ec Fix BUG: Update statement build function should ingore ONLYFROMDB fields (#1012)
* Fix BUG: Update statement build function should ingore ONLYFROMDB fields

* Add test case

* Modify test case
2018-06-23 14:59:01 +08:00
Lunny Xiao 0f339654dd
fix cols and distinct conflicts (#927) 2018-05-04 13:09:54 +08:00
Lunny Xiao 636ccefbc7
fix update map with table name (#888)
* fix update map with table name

* fix bug update map when cache enabled

* refactor cacheInsert

* fix cache test
2018-04-11 23:09:46 +08:00
Lunny Xiao bfdf773629
fix tablename bug (#887)
* fix tablename bug

* fix test
2018-04-11 18:09:16 +08:00
Lunny Xiao 6542364944
refactor buildUpdates (#884) 2018-04-11 12:57:13 +08:00
Lunny Xiao fd4a80bcad
fix id condition not used bug (#882) 2018-04-11 11:52:16 +08:00
Lunny Xiao 590c04df2d
Add test for count with orderby and limit (#880)
* add test for count with orderby and limit

* fix the bug
2018-04-10 12:52:47 +08:00
Lunny Xiao bd20c37bfb
Add SetSchema for engine (#876)
* add SetSchema for engine

* fix user

* fix postgres with schema

* fix test

* fix test

* fix test

* fix tablename

* refactor tableName

* fix schema support

* improve the interface of EngineInterface
2018-04-10 09:50:29 +08:00
Lunny Xiao 9242b921d8
Join add TableName interface support (#874)
* Join add TableName interface support

* add some tests

* Join add struct support

* more tests
2018-04-08 21:54:24 +08:00
Lunny Xiao cea778734c
fix FindAndCount bug with Limit (#851) 2018-02-22 20:24:40 -06:00
mzmuer 936cca7c69 mysql add column comment (#783) 2017-11-20 15:20:28 +08:00
Lunny Xiao 865979f716
add support for map[string]interface{} as condition on Update and Where (#764) 2017-10-30 11:07:56 +08:00
Lunny Xiao c9690500fa add buffer Iterate support (#729) 2017-09-19 20:59:41 +08:00
Lunny Xiao 265dd66928 fix bug on cache delete (#703)
* fix bug on cache delete

* fix cache issues and improve the tests
2017-09-09 11:03:34 +08:00
Lunny Xiao 0fdfa8d8de fix bug on update (#676) 2017-08-05 10:46:29 +08:00
Lunny Xiao fbf37fc795 improve count usage (#654) 2017-07-25 16:50:20 +08:00
Lunny Xiao dbc493df5e multiple Cols support (#653) 2017-07-24 22:09:47 +08:00
Lunny Xiao 8cfde0eb4b fix Conds bug on Find and add test for FindAndCount (#652) 2017-07-24 21:26:14 +08:00
Lunny Xiao 2af18acf72 add CondDeleted method (#620) 2017-06-15 20:09:46 +08:00
Lunny Xiao 1e055bac01 fix bug and catch more tests (#613) 2017-06-08 19:38:52 +08:00
Lunny Xiao 942887dea0 fix time issues and add some tests for time (#604)
* fix time issues and add some tests for time

* fix tests bug

* fix tests

* some fixes with tests and added mssql support

* fix tests
2017-06-02 16:12:50 +08:00
Lunny Xiao 8729bffe74 fix distinct & top conflict on mssql (#596) 2017-05-31 09:01:50 +08:00
Lunny Xiao 6b6721cccc
fix bug on sum 2017-04-17 15:52:52 +08:00
Lunny Xiao 15f11df2af
fix #570 2017-04-14 13:55:55 +08:00
Lunny Xiao a0b6b62ba0
fix #570 2017-04-14 10:49:02 +08:00
Lunny Xiao 7e70eb8222
refactor automaptype 2017-04-02 18:02:47 +08:00
Lunny Xiao 5ebae720bd
add Scan features to Get method 2017-04-01 10:09:00 +08:00
Lunny Xiao 5789833408
first part to resolve #504 2017-03-27 15:45:15 +08:00
Lunny Xiao 91ea7427fe
add cond test and fix missing quote on sum 2017-03-26 20:37:04 +08:00
ZACH 24fae7b3b1 auto judge exist or not quote,then add or ignore (#548)
* fix IN and NotIN SQL not add quote

* auto judge exist or not quote,then add or ignore

* auto judge exist or not quote,then add or ignore
2017-03-23 15:22:06 +08:00
ZACH 70bc6741cf fix IN and NotIN SQL not add quote (#547) 2017-03-23 14:23:52 +08:00
Lunny Xiao 0d9762712b
fix distinct & count bug 2017-03-11 21:24:37 +08:00
Lunny Xiao e0276e0f48
remove unused method 2017-03-01 16:55:53 +08:00
Lunny Xiao 382b85d765
fix #516, #536 2017-02-24 12:45:33 +08:00
Lunny Xiao 664a52a6d7
some gofmt & golint fixed 2017-01-09 09:52:23 +08:00
Lunny Xiao 44b70cccf4
add Find ints support & split session into multiple files 2017-01-03 13:31:47 +08:00
Lunny Xiao c60f2467a9
some golints fixed 2016-12-11 12:45:37 +08:00
Lunny Xiao dc3618b2f7
resolved #481 2016-12-10 10:04:48 +08:00
Lunny Xiao 7222d6d7b3 some fixed for mssql support 2016-12-01 14:48:40 +08:00
Lunny Xiao 311abf25ab resolved #498 2016-11-23 21:27:15 +08:00
Sergey f31f552026 Getting flag for the column via helper method (#492) 2016-11-12 11:30:16 +08:00
Sergey Kurt eb247210c0 Fix golint ' receiver name ... should be ...' warnings 2016-11-09 17:43:27 +03:00
Sergey Kurt 9a143fe45f Fix golint 'comment on exported (method|type) ...' warnings 2016-11-08 18:31:41 +03:00
Sergey Kurt 326f075fd7 Fixed generation in case of skipping last column 2016-11-08 12:32:08 +03:00
Sergey Kurt a618e46460 Columns string generation via bytes.Buffer 2016-11-07 14:47:42 +03:00
gotokatsuya c17ed51823 Fix typo at NotIn comment 2016-10-17 17:23:28 +09:00