1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-10 20:40:55 +00:00
Commit Graph

94 Commits

Author SHA1 Message Date
slene
2ed9b2bffd orm: add test for unexported struct field 2014-05-17 02:26:51 +08:00
jessonchan
6082a0af3e bug fixed 2014-05-17 02:26:51 +08:00
jessonchan
be30fb7937 refator func 2014-05-17 02:26:51 +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
Kyle McCullough
52817fb668 allow unexported fields on model structs 2014-05-17 02:26:49 +08:00
slene
65631e0522 fix orm test 2014-03-19 10:00:26 +08:00
slene
a879e412a1 #514 2014-03-19 09:46:09 +08:00
slene
95e67ba2c2 orm now support custom builtin types as model struct field or query args fix #489 2014-03-13 23:31:47 +08:00
slene
53aaf3b4a9 orm add ResetModelCache api for test case 2014-03-12 15:56:05 +08:00
slene
d5b5c18cf9 orm add GetDB api #433 2014-03-12 15:56:05 +08:00
slene
cacdb3228d orm add operator between #518 2014-03-12 15:56:05 +08:00
Daniel Hobe
9f3af59250 add support for sql.Null* types
Change instructions for sqlite3 tests to use in memory db for much faster
2014-03-12 15:56:05 +08:00
slene
430a0a971f orm insert skip auto_now_add when user custom a value 2014-03-12 15:56:04 +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
傅小黑
4c527dde65 add comments for orm packages, part 2 2014-01-17 17:25:17 +08:00
傅小黑
f5a5ebe16b add comments for orm packages, part 1 2014-01-17 17:04:15 +08:00
slene
8d79f8387b #441 fix detect timezone in mysql 2014-01-10 16:50:03 +08:00
slene
b766f65c26 #436 support insert multi 2014-01-06 11:31:35 +08:00
slene
95c65de97c fix #440 2014-01-04 22:30:17 +08:00
slene
ef79a2b484 fix #440 2014-01-04 00:04:15 +08:00
slene
61c0b3e286 fix db locked 2013-12-31 09:55:29 +08:00
slene
412a4a04de #384 2013-12-30 23:04:13 +08:00
dongxu
2add87b829 name → Name
typo
2013-12-22 17:57:45 +08:00
slene
fc339fc3e0 orm detect mysql timezone #403 2013-12-21 21:00:29 +08:00
slene
1c52f6834a fix bug in postgres 2013-12-17 16:46:14 +08:00
slene
690d77e985 orm test add extra custom JsonField 2013-11-26 21:34:40 +08:00
slene
bcc8f60677 orm add test about CustomField 2013-11-26 18:32:12 +08:00
slene
e5904443d9 fix #302 2013-11-24 19:29:48 +08:00
bronze1man
ceb4aa9e25 [orm] QueryTable with nil ptr struct 2013-11-24 14:26:32 +08:00
slene
16352579f3 #294 2013-11-18 13:21:19 +08:00
slene
167ad203cb orm #276 2013-11-08 22:19:01 +08:00
slene
b644665952 orm set relation column name #259 2013-11-06 22:05:10 +08:00
slene
9492e4131b support reverse m2m relation 2013-11-06 21:08:12 +08:00
slene
89c03870c8 orm fix sqlite3 time convert 2013-11-02 00:51:53 +08:00
slene
1d44018128 orm fix for support custom field 2013-11-02 00:50:08 +08:00
slene
a4df6e403c fix #265 2013-11-01 18:32:03 +08:00
slene
6ea8dd5999 fix #255 2013-10-18 17:37:34 +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
bf3830b6f0 orm add atomic set value 2013-10-09 20:28:54 +08:00
slene
658a671b79 all panic use Error 2013-10-09 11:37:16 +08:00
slene
001e33f310 fix #213 2013-09-22 19:20:40 +08:00
slene
09aca2528a orm RegisterDataBase remove default maxIdle/maxConn 2013-09-22 17:51:37 +08:00
slene
a616087cde orm now can specify engine for mysql. add api SetMaxIdleConns/SetMaxOpenConns(go 1.2) 2013-09-16 09:50:32 +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
41dd6e580d orm 1. complete QueryRow/QueryRows api 2. QuerySeter.All support *[]Type and *[]*Type 2013-09-09 22:33:41 +08:00