nlimpid
6b0155c4fb
add different column name parse strategy
2018-11-20 22:47:56 +08:00
Back Yu
b30969704a
Proposal to #2952
2017-11-30 18:12:49 +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
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
d528fafd43
ignore case of tag and fixed bug for columName
2016-06-03 22:06:43 +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
99c03a2b9c
fix the nil judge
2014-08-08 13:16:51 +08:00
astaxie
b1b4dbb0e4
fix the nil judge
2014-08-08 12:02:44 +08:00
astaxie
77e1f26dd4
Merge pull request #728 from nizsheanez/null_pointer_panic_improve
...
[orm] improve null pointer panic message
2014-08-08 09:01:51 +08:00
Alexey Sharov
df8c73b23a
improve null pointer panic message
2014-08-07 12:14:10 +07: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
astaxie
c188cbbcb4
update all files License
2014-05-17 02:26:50 +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
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
FuXiaoHei
828a306069
add comments for orm package, done
2014-01-17 23:28:54 +08:00
slene
b644665952
orm set relation column name #259
2013-11-06 22:05:10 +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
41dd6e580d
orm 1. complete QueryRow/QueryRows api 2. QuerySeter.All support *[]Type and *[]*Type
2013-09-09 22:33:41 +08:00
slene
4c061feddf
orm support custom multi unique / index
2013-08-22 21:19:58 +08:00
slene
c38abf35da
orm support auto create db
2013-08-19 22:37:39 +08:00
slene
618cbf1e66
orm string type default will use varchar(255)
2013-08-16 22:24:10 +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
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
bce35c708a
init orm project, beta, unstable
2013-07-30 20:32:38 +08:00