1
0
mirror of https://github.com/astaxie/beego.git synced 2024-12-28 09:55:48 +00:00
Commit Graph

51 Commits

Author SHA1 Message Date
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
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
空见
bbb6f31f16 support eq&ne for orm 2015-06-09 10:18:21 +08:00
astaxie
1d8afdc9c9 gofmt -s & go_vet 2015-05-25 09:10:34 +08:00
Peter Fern
d7c3727f96 Add support for basic type pointer fields
Allows models like:

```
type User struct {
	Id    int64
	Name  string
	Email *string `orm:"null"`
}
```

This helps a lot when doing JSON marshalling/unmarshalling.

Pointer fields should always be declared with the NULL orm tag for sanity, this
probably requires documentation.
2014-08-22 14:25:32 +10: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
JessonChan
06f4bf493d ignore nil time 2014-06-10 22:10:58 +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
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
傅小黑
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
b766f65c26 #436 support insert multi 2014-01-06 11:31:35 +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
1c52f6834a fix bug in postgres 2013-12-17 16:46:14 +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
89c03870c8 orm fix sqlite3 time convert 2013-11-02 00:51:53 +08:00
slene
a4df6e403c fix #265 2013-11-01 18:32:03 +08:00
slene
d043ebcdd3 orm support complete m2m operation api / auto load related api 2013-10-14 22:31:35 +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
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
slene
22d2de9fc7 orm fix 1. support Limit when use QuerySeter.One 2. return Local time 2013-09-06 19:03:47 +08:00
slene
8f5ca303b5 orm fix when use uint as pk 2013-08-30 12:32:05 +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
f4b3e7e4d2 orm small update 2013-08-13 19:33:43 +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
slene
6c41e6dd78 orm add sqlite3 support, may be support postgres in next commit 2013-08-11 00:15:26 +08:00
slene
f2b359d8e8 orm full remove orm.Manager for simple use, add struct tag - for skip struct field 2013-08-09 20:14:18 +08:00
slene
45aa071261 orm add queries debug logger 2013-08-09 13:20:19 +08:00
slene
8563000235 orm operator args now support multi types eg: []int []*int *int, Model *Model 2013-08-08 22:34:18 +08:00
slene
9047d21ec5 orm fix, def a string in model but use int in db may cause nil pointer error 2013-08-08 22:15:27 +08:00
slene
46668b811f some fix / add test 2013-08-07 19:11:44 +08:00
slene
51baa35df1 now object crud is simple 2013-08-01 15:51:53 +08:00
slene
250cbf593b fix values name 2013-08-01 12:09:17 +08:00
slene
2c5e062c2b some fix 2013-07-31 22:11:22 +08:00