Commit Graph

32 Commits

Author SHA1 Message Date
Lunny Xiao 41388c2f56 Use a new ContextLogger interface to implement logger (#1557)
Fix bug

Add log track on prepare & tx

Some improvements

remove unused codes

refactor logger

Fix bug

log context

add ContextLogger interface

Reviewed-on: https://gitea.com/xorm/xorm/pulls/1557
2020-02-29 08:59:59 +00:00
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 c5ee68faa1
Fix wrong dbmetas (#1442)
* add tests for db metas

* add more tests

* fix bug on mssql
2019-09-30 15:09:57 +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 1bcc25420d
Add tests for tidb (#1207)
* add tests for tidb

* ignore select for update tests
2019-02-01 11:31:51 +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 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 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 4e4538d99a fix default go test (#717) 2017-09-10 14:29:02 +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 a5a917d477 add mymysql tests (#656) 2017-07-25 17:51:20 +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 7154d2c42d add more tests (#595)
* add more tests

* fix tests
2017-05-30 20:33:30 +08:00
Lunny Xiao 01c460927d
multiple databases testes on 1 TestMain 2017-05-27 19:14:47 +08:00
Lunny Xiao 5d752706f0
more tests 2017-05-27 17:31:39 +08:00
Lunny Xiao 5b65f21ae4
add some tests for tag and cache related with #330 2017-05-27 13:50:57 +08:00
Lunny Xiao 30dcce510d
go test add mysql and postgres drivers 2017-04-10 23:10:59 +08:00
Lunny Xiao 08956a4864
fix #544 2017-03-27 18:14:40 +08:00
Lunny Xiao 5789833408
first part to resolve #504 2017-03-27 15:45:15 +08:00
Lunny Xiao 86cf0e8c3c
add test framework 2017-03-23 14:05:32 +08:00
Lunny Xiao b13c4bbe41 improved tests 2013-06-08 12:43:33 +08:00
Lunny Xiao bd195b23f7 fix mysql reference 2013-06-05 09:17:05 +08:00
Lunny Xiao 527b5b3f7a v0.1.4 Added simple cascade load support; added more data type supports. 2013-06-04 16:56:59 +08:00
Lunny Xiao c181aefc4f Find function add map support 2013-05-19 14:02:25 +08:00
Lunny Xiao 8bf4d68249 add Table function 2013-05-19 13:25:52 +08:00
Lunny Xiao 0517c1ddcf fixed field mapping length bug 2013-05-13 13:24:45 +08:00
Lunny Xiao a2ebf21969 v0.1.2 Insert function now supports both struct and slice pointer parameters, batch inserting and auto transaction 2013-05-12 21:37:10 +08:00
Lunny Xiao 22259898f3 add In() function 2013-05-11 16:27:17 +08:00
Lunny Xiao 09848afbcf use default connection params 2013-05-09 09:56:58 +08:00
Lunny Xiao 5870dbaab0 add sql execution support 2013-05-08 21:42:22 +08:00
Lunny Xiao 74e0e3b175 fix mysql test and sqlite test 2013-05-06 16:01:17 +08:00
Lunny Xiao 4969e8bf94 init project 2013-05-03 15:26:51 +08:00