Ming Deng
2e7fb81348
deprecated orm.go and add NewOrmUsingDB method
2020-07-27 21:19:34 +08:00
Ming Deng
30eb889a91
Format code
2020-07-22 23:00:06 +08:00
Ming Deng
9c51952db4
Move package
2020-07-22 22:55:59 +08:00
Ming Deng
44460bc457
Refactor RegisterDatabase
2020-07-20 15:52:40 +00:00
Ming Deng
c08b27111c
Fix 4059
2020-07-08 23:32:18 +08:00
Ming Deng
6052524a28
Merge pull request #4028 from jianzhiyao/develop
...
acquire() in Lock
2020-06-23 23:58:42 +08:00
jianzhiyao
89420eacd0
go destroy
2020-06-23 23:05:58 +08:00
jianzhiyao
6d9862b924
acquire() in Lock
2020-06-23 22:29:41 +08:00
Ming Deng
526a5463d6
Merge pull request #4025 from jianzhiyao/develop
...
Fix: Too Many Prepare Statement
2020-06-23 20:33:04 +08:00
jianzhiyao
a28d294a83
upgrade acquire method return *sql.Stmt
2020-06-23 13:46:19 +08:00
jianzhiyao
a5e8344a0a
add stmt garbage recycle
2020-06-22 23:23:52 +08:00
Ming Deng
e1386c448c
Merge pull request #4022 from jianzhiyao/develop
...
stmt: fix bug of non concurrent security & add double check
2020-06-21 18:01:14 +08:00
jianzhiyao
decc75e025
fix bug of non concurrent security & add double check
2020-06-21 16:25:32 +08:00
leapsea
867f83de34
修复数据库连接异常问题
2020-05-09 16:31:30 +08:00
BaoyangChai
5bcde306ea
Revert "update"
...
This reverts commit 2909ff3366
.
2019-06-28 23:37:32 +08:00
BaoyangChai
2909ff3366
update
2019-06-28 23:23:01 +08:00
BaoyangChai
40078cba2c
update
2019-06-28 23:13:18 +08:00
BaoyangChai
5d0c0a03d7
update
2019-06-28 22:56:32 +08:00
BaoyangChai
873f62edff
update
2019-06-09 01:19:17 +08:00
BaoyangChai
cc0eacbe02
update
2019-06-08 23:53:42 +08:00
mlgd
3332dbe595
Update for MySQL timezone detection bug
...
Use "DefaultTimeLoc" for "al.TZ" default value
Don't set TZ on alias when t.Location() is empty
You can set your MySQL server timezone on main.go init function.
Example :
orm.DefaultTimeLoc, _ = time.LoadLocation("Europe/Paris")
2017-10-26 14:32:42 +02:00
astaxie
a91e2e9950
add golint check and fix all golints
2017-04-30 22:41:23 +08:00
astaxie
e810f2e930
add more oracle alias
2017-04-24 21:36:07 +08:00
Sergey Lanzman
37c1ffc57a
add go simple support
2017-03-17 20:22:20 +02:00
astaxie
c697b98006
enhancement
2016-09-01 23:28:34 +08:00
astaxie
3a12e238cc
support oracle
2016-03-10 21:23:13 +08:00
astaxie
4823a0f114
remove the dead code
2015-09-17 23:47:26 +08:00
ngaut
c73e0395ed
Orm: Support TiDB
2015-09-17 17:04:23 +08:00
astaxie
68ec133aa8
golint orm
2015-09-12 21:46:43 +08:00
astaxie
a144769515
update the documents & comments
2014-08-18 16:41:43 +08:00
astaxie
e635e274d4
Merge branch 'master' into develop
2014-07-09 08:43:37 +08:00
sandysong
707c951302
修正Detect Engine错误
2014-07-04 16:57:37 +08:00
astaxie
fefd8ddb5b
beego: update licence& fix #669
2014-07-03 23:40:21 +08:00
astaxie
0f170a80da
update the comments fix #658
2014-06-25 10:39:37 +08:00
astaxie
c188cbbcb4
update all files License
2014-05-17 02:26:50 +08:00
slene
d5b5c18cf9
orm add GetDB api #433
2014-03-12 15:56:05 +08:00
slene
9384e87083
orm 1. add api: NewOrmWithDB, AddAliasWthDB; 2. RawSeter -> add api: RowsToMap, RowsToStruct; 3. RawSeter -> change api: Values, ValuesList, ValuesFlat add optional params comumns.
2014-01-27 01:48:00 +08:00
傅小黑
f5a5ebe16b
add comments for orm packages, part 1
2014-01-17 17:04:15 +08:00
slene
8d79f8387b
#441 fix detect timezone in mysql
2014-01-10 16:50:03 +08:00
slene
fc339fc3e0
orm detect mysql timezone #403
2013-12-21 21:00:29 +08:00
slene
09aca2528a
orm RegisterDataBase remove default maxIdle/maxConn
2013-09-22 17:51:37 +08:00
slene
a616087cde
orm now can specify engine for mysql. add api SetMaxIdleConns/SetMaxOpenConns(go 1.2)
2013-09-16 09:50:32 +08:00
slene
f4b3e7e4d2
orm small update
2013-08-13 19:33:43 +08:00
slene
27b84841a7
orm add full regular go type support, such as int8, uint8, byte, rune. add date/datetime timezone support very well.
2013-08-13 17:17:19 +08:00
slene
deb00809a5
orm add missed SetMaxIdleConns
2013-08-12 13:24:45 +08:00
slene
46668b811f
some fix / add test
2013-08-07 19:11:44 +08:00
slene
b0b64eb404
some change
2013-08-01 09:23:32 +08:00
slene
2c5e062c2b
some fix
2013-07-31 22:11:22 +08:00
slene
bce35c708a
init orm project, beta, unstable
2013-07-30 20:32:38 +08:00