1
0
mirror of https://github.com/astaxie/beego.git synced 2024-12-27 06:50:50 +00:00
Commit Graph

98 Commits

Author SHA1 Message Date
wangle
22b8cae73b Add the operator(>,>=,<,<=,=,!=) of orm
eg:
qs.Filter("counts__>=","20")
qs.Filter("counts__!=","20")
2020-07-29 23:23:02 +08:00
harry890829
0f6735e20d Merge branch 'develop' of https://github.com/astaxie/beego into develop
 Conflicts:
	go.mod
	go.sum
2020-06-29 16:48:03 +08:00
jianzhiyao
b88b7d2899 fix strings.Repeat panic 2020-06-25 23:48:07 +08:00
harry890829
71cb1379b4 update support bit operation 2020-06-10 11:15:23 +08:00
BaoyangChai
a0ca3d61d6 update 2019-05-08 23:11:57 +08:00
GeorgeXc
0b8ebaf387
Update db.go 2019-03-26 01:00:04 +08:00
BaoyangChai
005391be81 update 2019-03-23 00:33:26 +08:00
BaoyangChai
65f587d5e9 fix ineffectual assignment 2019-02-12 19:05:22 +08:00
BaoyangChai
2fefd8cbbf update len 2019-02-12 18:53:34 +08:00
BaoyangChai
ba17bdd366 add ignore auto_now_add field when update 2019-02-12 18:05:29 +08:00
nlimpid
d5cf1050db check qs is nil before get forContext 2018-11-19 23:42:56 +08:00
nlimpid
e56d1b718f add context for db operation 2018-11-18 21:54:25 +08:00
Atallah khedrane
21a8623002
duo to #3278 numRow should be 0 2018-09-30 10:45:18 +01:00
Atallah khedrane
0e4d954fa7
Return error when wrong filtering field
When end user put wrong filtering field ORM should return error instead of Panic()
so developers can handle this error.
2018-09-23 12:18:15 +02: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
hurisheng
fc2c96a177 add 'FOR UPDATE' support for querySet 2018-06-23 22:25:05 +08:00
Back Yu
b30969704a Proposal to #2952 2017-11-30 18:12:49 +08:00
guanly
10cd1070f4 使用sqlite,orm中通过filter后的delete删除不成功
https://github.com/astaxie/beego/issues/2630
2017-05-11 21:45:38 +08:00
guanly
9b01b1c63d ISSUE2630 使用sqlite,orm中通过filter后的delete删除不成功
https://github.com/astaxie/beego/issues/2630
2017-05-11 14:49:01 +08:00
astaxie
a91e2e9950 add golint check and fix all golints 2017-04-30 22:41:23 +08:00
astaxie
1c32c011a1 fix misspell 2017-04-28 23:37:40 +08:00
astaxie
aa8f7bc146 fix ineffectual 2017-04-28 22:36:28 +08:00
OlegFX
712df81c99 Fixed InsertOrUpdate bug 2017-04-21 19:57:04 +03:00
Sergey Lanzman
37c1ffc57a add go simple support 2017-03-17 20:22:20 +02:00
杜亚哲
24d8290a3f fix filter with __ne bug 2017-01-16 10:32:33 +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
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”
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”
50c5df32b1 update 2016-07-20 16:26:02 +08:00
“fudali113”
530c32017c update 2016-07-20 15:33:30 +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
qAison
761b6c129c count func add support group by 2016-05-27 14:34:45 +08:00
wincss
a4d4b8de77 fix #1936 2016-05-10 17:45:06 +08:00
miraclesu
99f1e6c8b5 orm: fix golint 2016-04-12 11:00:31 +08:00
miraclesu
657744efb1 orm: add 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
1794c52d65 orm: fix postgres sequence value 2016-03-27 15:06:57 +08:00
miraclesu
3ca44071e6 orm: insert specified values for insertMulti 2016-03-26 21:51:05 +08:00
miraclesu
1786b16e61 orm: support insert a specified value to auto field 2016-03-23 20:16:18 +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
Pelle Johnsen
174e758d19 Fix dbBase.Update not returning error 2015-09-28 14:07:35 +02:00
astaxie
68ec133aa8 golint orm 2015-09-12 21:46:43 +08:00