Commit Graph

382 Commits

Author SHA1 Message Date
Lunny Xiao 5a5375a170 Improve statement (#1549)
Fix cache bug

Improve statement

Reviewed-on: https://gitea.com/xorm/xorm/pulls/1549
2020-02-27 00:34:16 +00:00
Lunny Xiao 390effb8a4 Move zero functions to a standalone package (#1548)
Remove depreciated functions and move some functions to schemas

Move zero functions to a standalone package

Reviewed-on: https://gitea.com/xorm/xorm/pulls/1548
2020-02-26 12:45:10 +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 1735906dcc Support local sql log (#1338) 2019-10-21 03:42:26 +00:00
Lunny Xiao c9b14f9487
move depends package from github.com to customize domain (#1327) 2019-06-17 13:38:13 +08:00
Lunny Xiao 5ef12eab78
make json as interface (#1248) 2019-03-29 14:32:36 +08:00
Lunny Xiao 6fe3ab6075
fix #1075 and replace #1076 (#1101)
* fix #1075 and replace #1076

* fix bug when session resue
2019-01-20 12:45:38 +08:00
Lunny Xiao 5750e3f90a
Add context support (#1193)
* add context support

* improve pingcontext tests
2019-01-20 11:01:14 +08:00
mars 3add351809 Add version uint type support (#1125)
* fix panic when use version with uint32 type

* fix panic when use version with uint32 type

* Code refactoring
2018-10-27 21:20:00 +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 ae0364a057
add more test for join find (#922) 2018-05-02 17:53:17 +08:00
Lunny Xiao 5c2af83817
add test and remove unused warn log (#886) 2018-04-11 15:39:04 +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
无间落叶 fdbf36d7ea add string support (#730) 2017-10-24 17:51:27 +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 29d4a0330a improve processors (#743) 2017-09-30 09:26:13 +08:00
Lunny Xiao d9eb2f5f36 Fix find bit (#712)
* fix find bit

* fix error on mysql
2017-09-09 18:56:59 +08:00
Lunny Xiao bb639f6700 refactor query functions (#689)
* refactor query functions

* remove unused function

* remove unnecessary resetStatement and some improvements

* rename all Id to ID
2017-08-27 15:50:43 +08:00
Lunny Xiao f1aebd5729 hide all undocument variables on session (#660) 2017-07-27 13:32:35 +08:00
Lunny Xiao 7c2d924794 tests for close and add IsClosed() method (#659) 2017-07-26 22:25:23 +08:00
Lunny Xiao 32d688fd96 close rows if possible (#629) 2017-06-25 17:35:04 +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 ba71ae6665
remove unused comments 2017-04-17 15:57:19 +08:00
Lunny Xiao b1474190eb
fix #559 2017-04-12 15:39:59 +08:00
Lunny Xiao 8b79671aa6
bug fixed and add processors tests 2017-04-11 23:04:15 +08:00
Lunny Xiao 30dcce510d
go test add mysql and postgres drivers 2017-04-10 23:10:59 +08:00
Lunny Xiao df38e47fa2
remove unused variable 2017-04-10 19:54:05 +08:00
Lunny Xiao 7e70eb8222
refactor automaptype 2017-04-02 18:02:47 +08:00
Lunny Xiao a0042a7117
refactor 2017-04-01 23:28:35 +08:00
Lunny Xiao 2d5f13a854
small refactors 2017-04-01 23:03:25 +08:00
Lunny Xiao 5789833408
first part to resolve #504 2017-03-27 15:45:15 +08:00
Lunny Xiao 8074f62d8e
move some functions from session.go to session_cols.go and session_convert.go 2017-03-15 09:29:12 +08:00
Lunny Xiao d170089adf
refactor rowsbean 2017-03-14 23:03:27 +08:00
Lunny Xiao 382b85d765
fix #516, #536 2017-02-24 12:45:33 +08:00
Lunny Xiao e8fbd41c16
more Find supports 2017-02-21 19:08:50 +08:00
Lunny Xiao 1bc93ba022
bug fixed for BeforeSet and AfterSet on Find a Map 2017-02-20 17:51:59 +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 d75356fc73
bug fixed for gogits/gogs#3928 introduced by 64b3df6 2016-12-24 19:20:19 +08:00
Lunny Xiao c60f2467a9
some golints fixed 2016-12-11 12:45:37 +08:00
Lunny Xiao 7222d6d7b3 some fixed for mssql support 2016-12-01 14:48:40 +08:00
Lunny Xiao 64b3df6e63 bug fixed for temp table name for insert multiple beans 2016-11-23 15:59:16 +08:00
Sergey f31f552026 Getting flag for the column via helper method (#492) 2016-11-12 11:30:16 +08:00
Lunny Xiao f2610e02a1 bug fixed for invoke QueryRow & travis config remove unused 2016-11-12 00:13:12 +08:00
Sergey Kurt 9a143fe45f Fix golint 'comment on exported (method|type) ...' warnings 2016-11-08 18:31:41 +03:00
Sergey Kurt 42d389ec00 Case insensitive string comparison using strings.EqualFold 2016-11-01 14:57:32 +03:00
Lunny Xiao 6e4cb7136a small optimization 2016-10-23 18:56:20 +08:00
Lunny Xiao 99118594d5 resolved #475 2016-10-23 11:19:18 +08:00