zav8
7abdb05f91
little fix
2019-02-01 15:39:40 +08:00
zav8
af4464ce58
add support for pointer fields of structs to method QueryRows()
2019-02-01 15:27:10 +08:00
zav8
d2c289193a
add test case for QueryRow and QueryRows
2018-12-18 10:37:41 +08:00
nukc
736e66fcda
orm: support filter raw sql
2018-11-05 03:47:21 +08:00
hurisheng
dea45a3d6c
fix TestAll()
2018-08-07 16:36:27 +08:00
astaxie
5acc56648d
Merge branch 'develop' into feature/support-begintx
2018-07-20 23:16:12 +08:00
astaxie
0711c3289f
fix the orm test
2018-07-20 19:58:56 +08:00
Penghui Liao
30bbc81a2e
fix test case that calls All()
...
Signed-off-by: Penghui Liao <liaoishere@gmail.com>
2018-07-20 16:51:36 +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
Penghui Liao
0dff771707
fix unquoted identifier that may be misleading in postgres
...
Signed-off-by: Penghui Liao <liaoishere@gmail.com>
2018-07-20 16:36:06 +08:00
alexsunxl
2325090101
add test case that used nested struct test QueryRows
2017-05-14 12:03:34 +08:00
astaxie
79b66ef053
fix the beego ORM test
2017-04-30 22:55:39 +08:00
astaxie
64b475d7d6
fix ReadOrCreate test case
2017-04-28 22:58:17 +08:00
astaxie
aa8f7bc146
fix ineffectual
2017-04-28 22:36:28 +08:00
astaxie
3e29078f68
add check ineffect and gofmt
2017-04-28 21:38:08 +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
Dusan Kasan
34e2b26b99
resolves #2291 , introduces AndNotCond/OrNotCond to orm.Condition
2016-11-28 09:49:06 +01: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
astaxie
3f67c62dd8
revert the snakeString
2016-08-30 00:15:02 +08:00
astaxie
68311b286e
gofmt -s -w .
2016-08-17 22:49:30 +08:00
“fudali113”
4e10100575
update orm_test
2016-07-26 12:44:16 +08:00
“fudali113”
f471ee9025
update orm_test
2016-07-26 12:19:06 +08:00
“fudali113”
182a21172f
Optimize the code logic
2016-07-26 11:15:59 +08:00
“fudali113”
e2316c4b9e
update
2016-07-20 17:28:26 +08:00
“fudali113”
6d1b203bca
update
2016-07-20 16:52:14 +08:00
“fudali113”
ec521ad166
update
2016-07-20 15:13:18 +08:00
“fudali113”
4b8ecced83
orm insert or update
2016-07-20 14:37:05 +08:00
Victor Popkov
415b9cf310
add support for time.Time pointer in struct types
...
Allow to use pointer *time.Time as a type in combination with orm tags in struct. This enables to treat them as "empty" in JSON marshaling/unmarshaling when using 'json:"null,omitempty'.
2016-06-22 16:57:05 +03:00
ysqi
3f016840db
fixed test error
2016-06-04 10:41:55 +08:00
ysqi
d528fafd43
ignore case of tag and fixed bug for columName
2016-06-03 22:06:43 +08:00
astaxie
520a417cca
Merge pull request #1874 from Maxgis/master
...
change limit 1000 to 1,reduce the amount the data
2016-04-26 09:56:44 +08:00
maxin[马鑫]
56dc9bf622
add return ErrMultiRows
2016-04-25 15:51:12 +08:00
maxin[马鑫]
9ce6dc4cdf
remove test ; because rows are returned in an unspecified order
2016-04-13 21:04:46 +08:00
miraclesu
903e21bef2
orm: add test case for InsertMulti
2016-04-13 20:22:27 +08:00
maxin[马鑫]
81c6c898cf
remove orm one function thorw ErrMultiRows error
2016-04-13 10:36:12 +08:00
miraclesu
99f1e6c8b5
orm: fix golint
2016-04-12 11:00:31 +08:00
miraclesu
e95bef1331
orm: add test case for json & jsonb type support
2016-04-12 11:00:31 +08:00
Ivan Cadri
d49c7f96cb
added functionality for column type time
...
updated the model_fields to cater for the time field type
2016-04-03 16:58:19 +02:00
miraclesu
3ca44071e6
orm: insert specified values for insertMulti
2016-03-26 21:51:05 +08:00
miraclesu
e0a36fb61e
Merge branch 'develop' into feature/orm_auto
2016-03-26 21:16:52 +08:00
miraclesu
eaf38bb096
orm: add test case for uint pk read or create
2016-03-23 21:59:09 +08:00
miraclesu
8f70df6c7b
orm: add test case for insert specified value to auto field
2016-03-23 20:28:22 +08:00
miraclesu
84ae930c64
orm: Add test case for integer pk
2016-03-18 21:58:11 +08:00
miraclesu
dcfcb2789e
orm: inline struct relate test case
2016-03-13 21:04:39 +08:00
astaxie
1f0a65f0a2
fix the orm test
2016-03-10 22:21:21 +08:00
miraclesu
64e0858d44
orm: add inline struct test case
2016-03-08 22:24:38 +08:00
astaxie
797571c85f
fix the ORM test case
2016-01-15 14:36:45 +08:00
astaxie
7dbeb2c39a
fix the default value
2016-01-15 08:43:02 +08:00