ZhengYang
1f9281c830
minor code refactor
2014-09-11 15:17:48 +08:00
ZhengYang
ccab9a7044
add more sql keywords
2014-09-11 13:48:39 +08:00
astaxie
9013f5c6c7
Merge pull request #808 from ZhengYang/develop
...
more complete support for sql language
2014-09-09 14:21:49 +08:00
Zheng Yang
29b7ff84e1
more complete support for sql language
2014-09-09 14:17:12 +08:00
astaxie
fb0cc55822
update the orm read me
2014-09-09 11:55:28 +08:00
Zheng Yang
38eb29fa7b
err msg spell correction
2014-09-08 18:41:42 +08:00
Zheng Yang
cca0a3f76d
name correction: QueryBuilder instead of QueryWriter
2014-09-08 18:31:32 +08:00
Zheng Yang
f9a9b5a905
new query builder based on driver
2014-09-08 17:56:55 +08:00
Zheng Yang
c667895ce5
added new querybuilder
2014-09-08 17:47:15 +08:00
Zheng Yang
b2cdabb8a0
added query builder for orm
2014-09-08 17:37:01 +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
7ddd20340b
orm: delete the old docs
2014-07-26 23:25:59 +08:00
astaxie
e635e274d4
Merge branch 'master' into develop
2014-07-09 08:43:37 +08:00
sandysong
707c951302
修正Detect Engine错误
2014-07-04 16:57:37 +08:00
astaxie
fefd8ddb5b
beego: update licence& fix #669
2014-07-03 23:40:21 +08:00
astaxie
17a9c3c3a9
ORM:revert default value
2014-07-01 09:30:08 +08:00
astaxie
8946f816f9
orm:change the models_test default value
2014-07-01 00:30:05 +08:00
astaxie
34936dde35
Merge branch 'master' into develop
2014-06-30 23:50:45 +08:00
astaxie
0f170a80da
update the comments fix #658
2014-06-25 10:39:37 +08:00
Bin Wang
7b7a95677a
Generate default value while run ORM cmd tool
2014-06-22 10:52:14 +08:00
JessonChan
06f4bf493d
ignore nil time
2014-06-10 22:10:58 +08:00
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