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
张勇
3c046a4dbf
fix two typos
2019-05-27 16:38:30 +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
astaxie
e22a5143bc
Merge pull request #3403 from nlimpid/develop
...
add context for db operation
2018-11-20 15:44:25 +08:00
nlimpid
e56d1b718f
add context for db operation
2018-11-18 21:54:25 +08:00
nukc
736e66fcda
orm: support filter raw sql
2018-11-05 03:47:21 +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
hurisheng
fc2c96a177
add 'FOR UPDATE' support for querySet
2018-06-23 22:25:05 +08:00
kerwin
5c76f62103
Add GetCond func to querySet
2017-01-18 17:04:23 +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
“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
1794c52d65
orm: fix postgres sequence value
2016-03-27 15:06:57 +08:00
astaxie
441f795a1a
Merge pull request #1651 from thanhtranjs/develop
...
Add GroupBy to QuerySeter
2016-02-02 12:44:49 +08:00
Thanh Tran
bb50383aa9
Add GroupBy to QuerySeter
2016-02-02 11:28:43 +07:00
astaxie
fdce4af9c8
fix #1619
2016-01-25 20:53:52 +08:00
fud
92711e80a3
refactor controller.go
2015-12-21 16:23:31 +08:00
nkbai
3daaaeb32b
add commit for orm/types.go
2015-12-15 19:48:28 +08:00
nkbai
b079456fcf
add comments for orm/types.go
2015-12-14 15:04:17 +08:00
astaxie
68ec133aa8
golint orm
2015-09-12 21:46:43 +08:00
f0r
a074df9c2e
为querySeter添加GroupBy方法
2015-09-03 00:45:09 +08:00
Pelle Johnsen
19d82ab62c
Fix #1274 : Add QuerySeter.Distinct()
2015-07-22 18:12:57 +02:00
astaxie
6d313aa15f
fix #985
2015-02-27 22:37:41 +08:00
astaxie
433e8f2ce3
Revert "Add GroupBy to QuerySeter"
2015-02-14 20:40:43 +08:00
Peter Fern
3731088b4a
Add GroupBy to QuerySeter
...
Adds support for GroupBy to QuerySeter SELECT operations.
2015-01-10 15:26:41 +11: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
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
slene
1d44018128
orm fix for support custom field
2013-11-02 00:50:08 +08:00
slene
d043ebcdd3
orm support complete m2m operation api / auto load related api
2013-10-14 22:31:35 +08:00
slene
5d55ca19be
orm add Exist func
2013-10-12 06:57:14 +08:00
slene
1596aa7a34
orm support use any numeric type set QuerySeter.Limit value
2013-09-13 18:06:44 +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
49bbca0ce3
orm Improve syncdb
2013-08-27 12:33:27 +08:00
slene
c38abf35da
orm support auto create db
2013-08-19 22:37:39 +08:00
slene
f02b286ad4
orm make offset simple, can use any numeric type
2013-08-16 20:01:18 +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
45345fa782
orm add postgres support
2013-08-11 22:27:45 +08:00