Commit Graph

155 Commits

Author SHA1 Message Date
Lunny Xiao 00b65c6d99 Update README (#1582)
Remove version

Update README

Reviewed-on: https://gitea.com/xorm/xorm/pulls/1582
2020-03-08 06:10:05 +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 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 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 02c8a4b25d Move caches to manager (#1553)
Move caches to manager

Reviewed-on: https://gitea.com/xorm/xorm/pulls/1553
2020-02-27 03:12:25 +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 0090e33224 Fix go mod and update version (#1460) 2019-10-16 06:55:10 +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 5750e3f90a
Add context support (#1193)
* add context support

* improve pingcontext tests
2019-01-20 11:01:14 +08:00
Lunny Xiao 270035c70f
Add more methods for EngineInterface (#1091)
* add more methods for EngineInterface

* more interfaces
2018-09-07 11:01:18 +08:00
DrWrong(Yuhang) a8bd843a55 Change pgx driver (#996)
* Change pgx driver

* Add test case

* Fix bug
2018-06-06 16:43:14 +08:00
Lunny Xiao d85bb4911c
add opencollective (#926) 2018-05-04 13:45:50 +08:00
Lunny Xiao 44623fc395
Cache limit test (#917)
* add test for cache with limit

* change the version
2018-04-29 20:36:55 +08:00
Lunny Xiao fc1b13e0d8
v0.6.6 2018-04-13 17:45:25 +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 e98616d656
update README 2018-04-10 10:18:32 +08:00
m2nlight 11743c1a80 Add NewEngineWithParams method can call SetParams for dialect. The dialect_… (#798)
* Add NewEngine2 method can call SetArguments for dialect. The dialect_mysql support ROW_FORMAT in createtable. (https://github.com/go-xorm/xorm/issues/793)

* Rename NewEngine2 to NewEngineWithParams

* rename SetArguments to SetParams

* rename SetArguments to SetParmas
2018-03-08 09:30:38 +08:00
Lunny Xiao c29485f954 fix bugs on Get (#718) 2017-09-10 20:58:18 +08:00
Lunny Xiao f43b29056d fix bug on new engine (#679) 2017-08-07 11:33:52 +08:00
Lunny Xiao 774f83c1bc add Exist functions (#640) 2017-07-14 09:20:13 +08:00
Lunny Xiao a4a8e4a739 fix bug and add set conn max lifetime (#606)
* fix sqlite bug and add SetConnMaxLifetime

* add parse for composite keys

* required go 1.5+
2017-06-05 15:08: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 1ff7790a2e
fix bug for int64 id tag 2017-05-17 17:05:36 +08:00
Lunny Xiao 3c8314e916
change the version 2017-04-12 22:40:28 +08:00
Lunny Xiao 5ebae720bd
add Scan features to Get method 2017-04-01 10:09:00 +08:00
Lunny Xiao bda5f17e01 Handle xorm tags via tagHandler prepared for customerize tag support (#551)
* handle xorm tags via tagHandler prepared for customerize tag support

* add some comments and improvements
2017-03-30 10:39:38 +08:00
Lunny Xiao 91ea7427fe
add cond test and fix missing quote on sum 2017-03-26 20:37:04 +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 673f83cc1e resolved #474 2016-10-23 10:24:43 +08:00
Lunny Xiao e653751f49 resolved #468 2016-10-16 20:53:03 +08:00
Lunny Xiao 291b8fedc3 bug fixed for mssql 2016-10-10 15:07:12 +08:00
Lunny Xiao 1f455336b2 bug fixed for Count 2016-09-29 14:10:03 +08:00
Lunny Xiao e2e54d57c9 resolved #292 #91 2016-09-27 11:17:35 +08:00
Lunny Xiao 7b5ac89633 add *builder.Builder as pointer to .SQL 2016-09-23 10:08:28 +08:00
Lunny Xiao bcc1d3eb5a Merge branch 'builder' 2016-09-21 14:45:28 +08:00
Lunny Xiao 838b2268ae tag v0.5.6 2016-09-21 14:41:07 +08:00
Lunny Xiao c9b09da6e1 rename 2016-09-19 11:13:40 +08:00
Lunny Xiao 01c5ff6337 added condition query builder support via github.com/go-xorm/builder 2016-09-17 20:04:52 +08:00
Lunny Xiao 5ae5bc982a call after-events after autoincrement id set back to struct field 2016-09-16 20:30:33 +08:00
Lunny Xiao 4c7f48fa65 comment a warn log and added pgx driver support 2016-09-07 09:42:30 +08:00
Lunny Xiao 37e2a03a61 resolved #445: sum returned error when no condition matched 2016-09-01 10:15:12 +08:00
Lunny Xiao db48d70fd0 bug fixed for table name detect on insert a slice 2016-08-22 12:56:40 +08:00
Lunny Xiao 01a03a3092 resolved #431 2016-07-28 23:26:14 +08:00
Lunny Xiao b8b1711cde resolved gogits/gogs#3251 2016-07-11 07:21:12 +08:00
Lunny Xiao 5612916fea bug fixed and performance improved for table name 2016-07-09 08:15:53 +08:00
Lunny Xiao 86701ad07e added Sum, Sums, SumsInt methods 2016-07-07 22:34:43 +08:00
Lunny Xiao 9d17789b4d resolved #400 2016-06-30 16:55:34 +08:00
Lunny Xiao 9225f21f45 bug fixed for json unmarshal 2016-06-30 15:43:28 +08:00
Lunny Xiao a01eeeddbc bug fixed 2016-05-08 15:15:39 +08:00