Commit Graph

28 Commits

Author SHA1 Message Date
Lunny Xiao bf25a77bca Merge core package back into the main repository and split into serval sub packages. (#1543)
Fix test

Improve fmt

update go.mod

Move core as a sub package

Reviewed-on: https://gitea.com/xorm/xorm/pulls/1543
2020-02-24 08:53:18 +00:00
Lunny Xiao 189e272774 Add tests for table name (#1517)
add tests for table name

Fix test (#1526)

Fix test

Reviewed-on: https://gitea.com/xorm/xorm/pulls/1526
2020-02-20 07:18:44 +00:00
Lunny Xiao 57a49c6c23
fix bug when query map condtion with no quote (#1449) 2019-10-05 14:36:18 +08:00
Lunny Xiao ce79b1cf28 fix get customize type bug (#1382) 2019-08-05 17:05:42 +08:00
Lunny Xiao 73a7003f43 Add tests for get var (#1305)
* add test for SQL get
* fix tests
2019-07-30 00:02:45 +08:00
Lunny Xiao a691000f06 fix error when get null var (#890)
* fix error when get null var
* add support get for null var
* fix bug
2019-07-29 23:32:32 +08:00
Lunny Xiao c9b14f9487
move depends package from github.com to customize domain (#1327) 2019-06-17 13:38:13 +08:00
Lunny Xiao 17b9cc7330
Add mssql ci test (#1203)
* add mssql ci test

* fix mssql ci

* check test databases

* fix ci

* fix postgres schema tests

* fix ci on postgres

* fix insert map bug

* fix insert map bug

* fix bug

* fix insert map bug

* fix create schema on tests

* fix mssql tests

* fix insert return id bugs on mssql

* add head comments
2019-01-22 23:59:58 +08:00
Lunny Xiao 58b4f7f109
add tests for get interface (#1194) 2019-01-20 11:09:37 +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 fd4a80bcad
fix id condition not used bug (#882) 2018-04-11 11:52:16 +08:00
Lunny Xiao 99ab88dbcf
add test for (id) replace (#879) 2018-04-10 11:28:45 +08:00
Lunny Xiao 0649f6570d
add test for resolve #797 (#878) 2018-04-10 11:27:42 +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 2bfe0b4d5e
fix Get sql.Nullxx (#805) 2017-12-13 23:04:41 +08:00
Lunny Xiao e0c5a951ff
add tests for SQL with Get variable (#796) 2017-12-07 11:47:45 +08:00
Lunny Xiao 43222cbcaf add tests for json field string (#756) 2017-10-24 19:29:08 +08:00
Lunny Xiao 109cb1a7d0 Add support Engine Group (#748)
* add support group engine

* revert code

* add NewGroup function

* add engine group policy

* rename file name

* modify policy interface

* remove Init function from policy interface

* refactor Group Policy

* rename and comments

* rename and bug fix for WeightRoundRobinPolicy

* modify Slave function

* modify Slave function and add LeastConnPolicy

* use original Engine and Session

* remove unused count variables

* fix bug on NewEngineGroup

* remove unused method

* improve range and refactor

* add some comments and refactor

* implement GroupPolicy of GroupPolicyHandler

* refactor

* simple code

* add tests support for EngineGroup & fix some bugs

* improve the NewEngineGroup interface

* change the default policy of engine group

* fix some tests
2017-10-16 15:28:13 +08:00
Lunny Xiao fce6d4a34c add more error check on Get (#680) 2017-08-07 16:51:14 +08:00
Lunny Xiao a5a917d477 add mymysql tests (#656) 2017-07-25 17:51:20 +08:00
Lunny Xiao eb52e0e4ae add test for get slice (#619) 2017-06-15 10:12:30 +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 5b110f7278
add more tests 2017-05-27 20:34:57 +08:00
Lunny Xiao 1743f266cb
add some get tests 2017-05-23 12:06:22 +08:00
Lunny Xiao e9dc216344
bug fixed #565 2017-04-11 19:38:54 +08:00
Lunny Xiao 30dcce510d
go test add mysql and postgres drivers 2017-04-10 23:10:59 +08:00
Lunny Xiao 5ebae720bd
add Scan features to Get method 2017-04-01 10:09:00 +08:00