Sergey Lanzman
856fde28dc
add unconverted support
2017-03-17 19:45:30 +02:00
astaxie
1e5051e112
Merge pull request #2381 from chesedo/OrmStrongRelationships
...
Add strong relationship support to orm
2017-03-05 22:39:45 +08:00
astaxie
be586572e0
Merge pull request #2423 from ansiz/master
...
Add config field EnableErrorsRender
2017-02-10 13:19:20 +08:00
astaxie
b0dcb5b91d
Merge pull request #2400 from kerwin/master
...
Add GetCond func to querySet
2017-01-23 21:12:29 +08:00
kerwin
5c76f62103
Add GetCond func to querySet
2017-01-18 17:04:23 +08:00
杜亚哲
24d8290a3f
fix filter with __ne bug
2017-01-16 10:32:33 +08:00
chesedo
82d2ace3bd
Add strong relationship support to orm
2017-01-11 20:16:38 +02:00
Faissal Elamraoui
86f6470fb2
Merge pull request #2353 from skariuki/master
...
Fixed typo in orm/models_boot.go
2016-12-29 22:50:41 +01:00
Kariuki, Stanley (Contractor)
caca5e37ba
fixed typo in models_boot
2016-12-29 12:26:20 -05:00
legendtkl
c9c284be27
Modify func camelString to be more robust
...
1. In previous edition, for case "pic_url_1", the func will return
"PicUrl_1", but "PicUrl1" seems to be more reasonable.
2. More test cases please refer to utils_test.go
2016-12-25 21:09:06 +08:00
astaxie
e2d9d34c75
Merge pull request #2272 from szyhf/Fix#2263
...
Another Fix to #2263
2016-12-05 22:40:54 +08:00
Dusan Kasan
34e2b26b99
resolves #2291 , introduces AndNotCond/OrNotCond to orm.Condition
2016-11-28 09:49:06 +01:00
Back
b5c29d6143
Fix #2263
...
Update db_mysql.go instead of db.go, in order to avoid affect other database.
2016-11-08 13:39:31 +08:00
Sergey Shcherbina
8beefc8bfd
Fixed bug when all "time.Time" params in raw sql queries formatted as time
2016-10-17 21:51:31 +05:00
astaxie
5ceac1dd04
string convert int fail use math/big fix #756
2016-10-12 15:04:31 +08:00
astaxie
e0c59fcf0b
add more comments
2016-09-22 23:17:41 +08: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
7d6c45d4c9
add RegisterModelWithSuffix #2140
2016-09-06 23:05:41 +08:00
astaxie
c697b98006
enhancement
2016-09-01 23:28:34 +08:00
astaxie
56aa224a6e
simplfy the code
2016-08-31 22:47:31 +08:00
astaxie
8c37a07adb
optimize the ORM
2016-08-31 00:07:19 +08:00
astaxie
aa091cea42
improvement the error if use &&Struct
2016-08-30 22:02:11 +08:00
astaxie
fb2343567b
fix #2125
2016-08-30 20:40:46 +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
astaxie
7b542e612f
Merge pull request #1964 from qAison/master
...
fix fk field null value
2016-08-02 10:00:24 +08:00
“fudali113”
cacf6cde19
update db.go
2016-07-26 14:27:22 +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”
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”
e2316c4b9e
update
2016-07-20 17:28:26 +08:00
“fudali113”
6d1b203bca
update
2016-07-20 16:52:14 +08:00
“fudali113”
50c5df32b1
update
2016-07-20 16:26:02 +08:00
“fudali113”
530c32017c
update
2016-07-20 15:33:30 +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
wy65701436
d4d7621942
modify the error log for registerModel to tell user the default hard code PK is 'id'.
2016-05-27 02:03:58 -07:00
qAison
761b6c129c
count func add support group by
2016-05-27 14:34:45 +08:00
qAison
8f0749ddee
fix fk field null value
2016-05-27 13:53:28 +08:00
wincss
a4d4b8de77
fix #1936
2016-05-10 17:45:06 +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