Lunny Xiao
c29b9649a9
Add dameng support ( #2007 )
...
driver: https://gitee.com/travelliu/dm
docker: https://download.dameng.com/eco/dm8/dm8_docker.tar
fix #1837
Reviewed-on: https://gitea.com/xorm/xorm/pulls/2007
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-committed-by: Lunny Xiao <xiaolunwen@gmail.com>
2021-08-24 13:46:08 +08:00
yedf
7cd6a74c9f
expose sql.Tx ( #2036 )
...
Co-authored-by: yedongfu <dongfuye@163.com>
Reviewed-on: https://gitea.com/xorm/xorm/pulls/2036
Co-authored-by: yedf <yedf@noreply.gitea.io>
Co-committed-by: yedf <yedf@noreply.gitea.io>
2021-08-21 11:30:31 +08:00
Lunny Xiao
cace6862e2
Move convert back to xorm.io/xorm/convert ( #2030 )
...
Since `conversion.Conversion` has been referenced by external package, it should not be moved as internal package.
Reviewed-on: https://gitea.com/xorm/xorm/pulls/2030
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-committed-by: Lunny Xiao <xiaolunwen@gmail.com>
2021-08-10 23:20:53 +08:00
Lunny Xiao
ad1a386b5e
Fix wrong comment ( #2027 )
...
Reviewed-on: https://gitea.com/xorm/xorm/pulls/2027
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-committed-by: Lunny Xiao <xiaolunwen@gmail.com>
2021-08-08 11:00:11 +08:00
Lunny Xiao
5240459858
Move assign functions to convert package ( #2015 )
...
Reviewed-on: https://gitea.com/xorm/xorm/pulls/2015
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-committed-by: Lunny Xiao <xiaolunwen@gmail.com>
2021-07-28 15:15:35 +08:00
Lunny Xiao
107bee4eb4
refactor conversion ( #2001 )
...
Reviewed-on: https://gitea.com/xorm/xorm/pulls/2001
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-committed-by: Lunny Xiao <xiaolunwen@gmail.com>
2021-07-21 11:46:41 +08:00
Lunny Xiao
a7e010df2d
refactor insert condition generation ( #1998 )
...
Reviewed-on: https://gitea.com/xorm/xorm/pulls/1998
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-committed-by: Lunny Xiao <xiaolunwen@gmail.com>
2021-07-20 13:46:24 +08:00
Lunny Xiao
86775af2ec
refactor and add setjson function ( #1997 )
...
Fix #1992
Reviewed-on: https://gitea.com/xorm/xorm/pulls/1997
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-committed-by: Lunny Xiao <xiaolunwen@gmail.com>
2021-07-19 13:43:53 +08:00
Lunny Xiao
aaa2111e8f
Refactor asbytes ( #1995 )
...
Reviewed-on: https://gitea.com/xorm/xorm/pulls/1995
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-committed-by: Lunny Xiao <xiaolunwen@gmail.com>
2021-07-19 00:21:46 +08:00
Lunny Xiao
394c4e1f17
Replace #1044 ( #1935 )
...
Fix #1372 , #765
TODO:
- [x] Add tests
Co-authored-by: MURAOKA Taro <koron.kaoriya@gmail.com>
Reviewed-on: https://gitea.com/xorm/xorm/pulls/1935
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-committed-by: Lunny Xiao <xiaolunwen@gmail.com>
2021-07-11 21:33:01 +08:00
Lunny Xiao
46fd8f58b3
Get struct and Find support big.Float ( #1976 )
...
Reviewed-on: https://gitea.com/xorm/xorm/pulls/1976
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-committed-by: Lunny Xiao <xiaolunwen@gmail.com>
2021-07-07 15:46:21 +08:00
Lunny Xiao
54bbead2be
refactor slice2Bean 2 ( #1975 )
...
as title.
Reviewed-on: https://gitea.com/xorm/xorm/pulls/1975
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-committed-by: Lunny Xiao <xiaolunwen@gmail.com>
2021-07-07 13:59:48 +08:00
Lunny Xiao
bece9a6373
refactor slice2Bean ( #1974 )
...
as title.
Reviewed-on: https://gitea.com/xorm/xorm/pulls/1974
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-committed-by: Lunny Xiao <xiaolunwen@gmail.com>
2021-07-07 13:03:05 +08:00
Lunny Xiao
8f8195a86b
Improve get field value of bean ( #1961 )
...
Reviewed-on: https://gitea.com/xorm/xorm/pulls/1961
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-committed-by: Lunny Xiao <xiaolunwen@gmail.com>
2021-06-29 14:32:29 +08:00
Lunny Xiao
4bfe6853f5
Fix some comments lint and bug ( #1888 )
...
Reviewed-on: https://gitea.com/xorm/xorm/pulls/1888
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-committed-by: Lunny Xiao <xiaolunwen@gmail.com>
2021-04-10 10:57:36 +08:00
Lunny Xiao
beac298c02
Fix json tag with other type ( #1822 )
...
Fix json tag with other type
Reviewed-on: https://gitea.com/xorm/xorm/pulls/1822
Co-Authored-By: Lunny Xiao <xiaolunwen@gmail.com>
Co-Committed-By: Lunny Xiao <xiaolunwen@gmail.com>
2020-11-03 17:10:35 +08:00
appleboy
fe3bc3851e
chore: enable fmt check ( #1742 )
...
chore: enable fmt check
Co-authored-by: Bo-Yi Wu <appleboy.tw@gmail.com>
Reviewed-on: https://gitea.com/xorm/xorm/pulls/1742
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
2020-07-21 04:36:55 +00:00
Thomas_An
0fae64bb3b
Support get dataSourceName on ContextHook for monitor which DB executed SQL ( #1740 )
...
Merge branch 'log_context_add_db_info'
add session to context
Revert "accept lunny's suggestion"
This reverts commit 57fd669942
.
Merge branch 'master' of https://gitea.com/Thomas_An/thomasan_xorm
accept lunny's suggestion
Merge branch 'master' into master
add test code
session add Engine func
Used to monitor which DB executed this SQL
Co-authored-by: yong.an <yong.an@shopee.com>
Reviewed-on: https://gitea.com/xorm/xorm/pulls/1740
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
2020-07-13 13:29:38 +00:00
limo.creed
34dc7f8791
Add Hook ( #1644 )
...
move hook to standalone package
add hook for engine
Co-authored-by: yuxiao.lu <yuxiao.lu@liulishuo.com>
Reviewed-on: https://gitea.com/xorm/xorm/pulls/1644
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
2020-04-09 06:03:39 +00:00
Lunny Xiao
0a06dc204a
Move processor function into one file ( #1637 )
...
Move processor function into one file
Reviewed-on: https://gitea.com/xorm/xorm/pulls/1637
2020-03-28 02:23:37 +00:00
Lunny Xiao
78bb4c711d
Improve codes ( #1630 )
...
Improve codes
Reviewed-on: https://gitea.com/xorm/xorm/pulls/1630
2020-03-26 13:24:11 +00:00
Lunny Xiao
b78418daa5
Support session id ( #1632 )
...
small nit
Support session id
Reviewed-on: https://gitea.com/xorm/xorm/pulls/1632
2020-03-26 12:31:08 +00:00
Lunny Xiao
5053c35701
Don't keep db on dialects ( #1623 )
...
don't keep db on dialects
Reviewed-on: https://gitea.com/xorm/xorm/pulls/1623
2020-03-24 02:19:24 +00:00
Lunny Xiao
f238bb9d07
Improve insert ( #1583 )
...
Improve insert
Reviewed-on: https://gitea.com/xorm/xorm/pulls/1583
2020-03-08 05:14:28 +00:00
Lunny Xiao
f51d28304a
Move some codes to statement sub package ( #1574 )
...
revert change for delete
refactor new engine
fix tests
Move some codes to statement sub package
Reviewed-on: https://gitea.com/xorm/xorm/pulls/1574
2020-03-06 06:43:49 +00:00
Lunny Xiao
7278e2ab71
Improve tests ( #1572 )
...
fix test
Improve tests
Reviewed-on: https://gitea.com/xorm/xorm/pulls/1572
2020-03-04 03:30:21 +00:00
Lunny Xiao
4e59597a49
Fix break session sql enable feature ( #1566 )
...
Fix break session sql enable feature
Reviewed-on: https://gitea.com/xorm/xorm/pulls/1566
2020-03-01 03:05:26 +00:00
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
2b62dc5a51
Move statement as a sub package ( #1564 )
...
Fix test
Fix bug
Move statement as a sub package
Reviewed-on: https://gitea.com/xorm/xorm/pulls/1564
2020-02-28 12:29:08 +00:00
Lunny Xiao
f63b42ff9b
Move maptype to tag parser ( #1561 )
...
Move maptype to tag parser
Reviewed-on: https://gitea.com/xorm/xorm/pulls/1561
2020-02-28 02:00:21 +00:00
Lunny Xiao
e2f9100419
Move tag parser related codes as a standalone sub package ( #1547 )
...
Fix sliceEq
fix tests
Move tag parser related codes as a standalone sub package
Reviewed-on: https://gitea.com/xorm/xorm/pulls/1547
2020-02-27 03:58:31 +00:00
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