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
Back Yu
b30969704a
Proposal to #2952
2017-11-30 18:12:49 +08:00
chesedo
82d2ace3bd
Add strong relationship support to orm
2017-01-11 20:16:38 +02: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
miraclesu
99f1e6c8b5
orm: fix golint
2016-04-12 11:00:31 +08:00
miraclesu
e95bef1331
orm: add test case for 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
eaf38bb096
orm: add test case for uint pk read or create
2016-03-23 21:59:09 +08:00
miraclesu
84ae930c64
orm: Add test case for integer pk
2016-03-18 21:58:11 +08:00
miraclesu
dcfcb2789e
orm: inline struct relate test case
2016-03-13 21:04:39 +08:00
astaxie
31f7524dae
fix the golint travis
2016-03-10 21:47:50 +08:00
miraclesu
64e0858d44
orm: add inline struct test case
2016-03-08 22:24:38 +08:00
astaxie
a304bb9c25
Revert "add test case for tidb"
...
This reverts commit f70d2cc373
.
2016-01-17 18:35:11 +08:00
astaxie
f70d2cc373
add test case for tidb
2016-01-17 18:24:29 +08:00
astaxie
797571c85f
fix the ORM test case
2016-01-15 14:36:45 +08:00
astaxie
a069c73b3a
test case bool default value is true
2016-01-15 14:02:08 +08:00
astaxie
fd608d2bf6
disable tidb testing
2016-01-08 19:59:20 +08:00
Pelle Johnsen
906637ae8b
Fix issue with reverse(many) for models with custom pk
...
- Also add test covering the issue
2015-12-15 17:39:08 +01:00
ngaut
c841a77ad6
Orm: Add tidb for query builder
2015-09-17 17:04:23 +08:00
ngaut
c73e0395ed
Orm: Support TiDB
2015-09-17 17:04:23 +08:00
astaxie
68ec133aa8
golint orm
2015-09-12 21:46:43 +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
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
0f170a80da
update the comments fix #658
2014-06-25 10:39:37 +08:00
slene
2ed9b2bffd
orm: add test for unexported struct field
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
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
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
slene
b644665952
orm set relation column name #259
2013-11-06 22:05:10 +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
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
8f5ca303b5
orm fix when use uint as pk
2013-08-30 12:32:05 +08:00
slene
6686d9235c
orm fix create index
2013-08-25 13:50:50 +08:00
slene
4c061feddf
orm support custom multi unique / index
2013-08-22 21:19:58 +08:00
slene
94f7ba8bdf
orm add uint uint32 uint64 auto increment support
2013-08-22 18:35:26 +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
c81bbf9801
orm now use a filed named Id
as default auto primary key, you can ignore orm:"auto"
setting
2013-08-16 21:57:39 +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