Ming Deng
650fde66aa
Revert "Merge pull request #4254 from astaxie/develop-2.0"
...
This reverts commit e284b0ddae
, reversing
changes made to 8ef8fd2606
.
2020-11-26 17:48:29 +08:00
Ming Deng
b4a85c8f13
Remove files
2020-08-16 23:09:19 +08:00
Ming Deng
54ef476600
add tag interfaces and remove log.go
2020-07-28 06:28:51 +00:00
jianzhiyao
a5e8344a0a
add stmt garbage recycle
2020-06-22 23:23:52 +08:00
BaoyangChai
06692c3e27
update
2019-06-17 23:38:07 +08:00
BaoyangChai
cc0eacbe02
update
2019-06-08 23:53:42 +08:00
Yang Luo
afb787d49d
remove the 1000-row limit for ORM result set
2019-04-27 16:58:00 +08:00
Bharat Patel
f508f8d959
Nil check
2019-01-18 16:51:40 -08:00
Bharat Patel
2ae480556d
Add DBStats method wrapper to provide sql.DBStats when using ormer
2019-01-17 09:56:42 -08:00
nlimpid
6b0155c4fb
add different column name parse strategy
2018-11-20 22:47:56 +08:00
d02170e3cb
Closes #2515 Autodetect timezone in NewOrmWithDB()
2018-11-12 10:18:05 +01:00
Penghui Liao
1a3f1d66c1
rename orm_go18.go to orm.go
...
Signed-off-by: Penghui Liao <liaoishere@gmail.com>
2018-07-20 16:36:06 +08:00
Penghui Liao
443c77b303
support DB.BeginTx of golang 1.8
...
Signed-off-by: Penghui Liao <liaoishere@gmail.com>
2018-07-20 16:36:06 +08:00
Robert Wikman
e1c90bfc09
Table not found spelling fixes
2017-05-16 00:27:57 +02:00
astaxie
aa8f7bc146
fix ineffectual
2017-04-28 22:36:28 +08:00
Sergey Lanzman
37c1ffc57a
add go simple support
2017-03-17 20:22:20 +02:00
chesedo
82d2ace3bd
Add strong relationship support to orm
2017-01-11 20:16:38 +02:00
astaxie
a58115fed2
orm log delete repetition time
2016-09-15 10:54:21 +08:00
astaxie
d5fb74aa94
Merge pull request #2158 from simpleelegant/develop
...
Add support "SELECT FOR UPDATE" to orm. Resolve issue #2157
2016-09-12 21:48:14 +08:00
Wang Yujian
11247d41a7
Add support "SELECT FOR UPDATE" to orm. Resolve issue #2157
2016-09-12 20:07:30 +00:00
astaxie
5b21c7cd71
fix #1802
2016-09-12 21:13:21 +08:00
astaxie
8c37a07adb
optimize the ORM
2016-08-31 00:07:19 +08:00
“fudali113”
bf17558d06
update “modification hardcode 2
2016-07-22 12:25:30 +08:00
“fudali113”
e0e888ab8f
update “modification hardcode
2016-07-22 12:10:37 +08:00
“fudali113”
3583ad8cc0
update annotation
2016-07-21 15:49:55 +08:00
“fudali113”
4b8ecced83
orm insert or update
2016-07-20 14:37:05 +08:00
miraclesu
3a3f70027c
orm: fix panic multi insert when slice lenght is 1 & the value is pointer
2016-04-13 20:14:02 +08:00
miraclesu
eaf38bb096
orm: add test case for uint pk read or create
2016-03-23 21:59:09 +08:00
miraclesu
3be6688cd1
orm: fix painc when pk is uint on ReadOrCreate
2016-03-23 21:57:57 +08:00
miraclesu
a3d4218d9d
orm: fix miss pk when pk is negative
2016-03-17 21:41:35 +08:00
miraclesu
85f55fcb41
orm: inline struct support
2016-02-24 18:46:14 +08:00
astaxie
68ec133aa8
golint orm
2015-09-12 21:46:43 +08:00
astaxie
6d313aa15f
fix #985
2015-02-27 22:37:41 +08:00
astaxie
a144769515
update the documents & comments
2014-08-18 16:41:43 +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
astaxie
4245521660
fix #576
2014-05-17 02:26:50 +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
Kyle McCullough
190039b6f8
Add a ReadOrCreate method:
...
m := &User{Name: "Kyle"}
// Returns a boolean indicating whether the object was created,
// the primary key of the object, or an error.
created, id, err := orm.ReadOrCreate(m, "Name")
2014-01-22 09:15:21 -06:00
FuXiaoHei
828a306069
add comments for orm package, done
2014-01-17 23:28:54 +08:00
slene
b766f65c26
#436 support insert multi
2014-01-06 11:31:35 +08:00
bronze1man
ceb4aa9e25
[orm] QueryTable with nil ptr struct
2013-11-24 14:26:32 +08:00
slene
9492e4131b
support reverse m2m relation
2013-11-06 21:08:12 +08:00
slene
d043ebcdd3
orm support complete m2m operation api / auto load related api
2013-10-14 22:31:35 +08:00
slene
658a671b79
all panic use Error
2013-10-09 11:37:16 +08:00
slene
3745bb7279
orm.Read support specify condition fields, orm.Update and QuerySeter All/One support omit fields.
2013-09-12 19:04:39 +08:00
slene
8f5ca303b5
orm fix when use uint as pk
2013-08-30 12:32:05 +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
f2b359d8e8
orm full remove orm.Manager for simple use, add struct tag -
for skip struct field
2013-08-09 20:14:18 +08:00