Rohan Allison
ded91a21fe
Update README with clear explanation of transaction db handle
2015-06-16 23:28:54 -05:00
Rohan Allison
64f61aaaf9
Update README for revertable transactions
2015-06-15 14:37:58 -05:00
Jinzhu
3c28ceea66
Merge pull request #531 from cortex/patch-1
...
Correct error message
2015-06-15 20:52:06 +08:00
Jinzhu
b110fed642
Merge pull request #527 from yanfali/master
...
Update README.md with more realistic Transaction example
2015-06-15 20:44:21 +08:00
Joakim Lundborg
14dde4b9f2
Correct error message
2015-06-11 16:14:36 +02:00
Yan-Fa Li
5b282263d8
Update README.md with Transaction example
...
- add a more detailed slightly more realistic example for a transaction.
2015-06-09 14:55:20 -07:00
Jinzhu
cde05781a0
Merge pull request #518 from bojan-embroker/master
...
Fix Create when dialect does not support last inserted id
2015-06-08 09:45:09 +08:00
Jinzhu
b3d62fafc3
Merge pull request #520 from crystalin/master
...
Support for preload of Struct Ptr
2015-06-08 09:30:37 +08:00
crystalin
f05a6b3794
Support for preload of Struct Ptr
...
This fixes the issue when preloading .Preload("Project.Repositories").Find(&[]User{})
with
type User struct {
Project *Project
}
type Project struct {
Repositories []Repository
}
type Repository struct {
...
}
2015-06-05 12:54:52 +02:00
Bojan Petrovic
d9faa4949c
Fix Create error reporting.
2015-06-04 14:23:57 +02:00
Bojan Petrovic
94f56e646b
Fix Create when dialect does not support last inserted id
2015-06-04 13:47:25 +02:00
Jinzhu
0b8c9f29a9
Find Field by db name also
2015-06-04 12:10:14 +08:00
Jinzhu
3d20aafa40
Merge pull request #514 from smirzaei/master
...
Fixed the "Query callbacks" URL.
2015-06-03 11:17:05 +08:00
Soroush Mirzaei
65b42ad6f3
Fixed the "Query callbacks" URL.
...
Changed it to point to `callback_query.go` instead of `callback_create.go`.
2015-06-01 14:20:23 +04:30
Jinzhu
4fd6e62a02
Add unsigned support for mysql
2015-06-01 14:02:15 +08:00
Jinzhu
58f379b098
Add auto migration
2015-06-01 11:17:51 +08:00
Jinzhu
331d8ceabd
Don't overwrite primary key if already it is already exist
2015-06-01 11:09:58 +08:00
Jinzhu
b96ca76e59
Set table name handler
2015-05-27 12:19:48 +08:00
Jinzhu
cbebcf6d6f
Quote db name when create primary keys
2015-05-22 11:13:14 +08:00
Jinzhu
c2dda88f9a
Use Get to replace InstanceGet
2015-05-19 16:58:33 +08:00
Jinzhu
dc55c59b84
Fix use SQL as table name
2015-05-19 10:43:32 +08:00
Jinzhu
371cd41204
Merge pull request #488 from tuvistavie/master
...
Add examples for join.
2015-05-14 11:42:29 +08:00
Daniel Perez
2adfd70bb5
Add examples for join.
2015-05-13 14:20:20 +09:00
Jinzhu
5af077cd2d
Handle []string for Select
2015-05-11 15:17:35 +08:00
Jinzhu
edecbde19d
Merge pull request #479 from nguyendangminh/patch-1
...
Update README.md
2015-05-11 15:02:08 +08:00
Jinzhu
826e384f32
Merge pull request #483 from xconstruct/fix_ignore_where
...
Fix including ignored field in Where condition
2015-05-11 15:01:39 +08:00
Constantin Schomburg
a0c527f1cc
Fix including ignored field in Where condition
2015-05-09 13:12:13 +02:00
Nguyen Dang Minh
a4a29d6025
Update README.md
...
The line:
// db := gorm.Open("postgres", dbSql)
should be
// db, _ := gorm.Open("postgres", dbSql)
2015-05-02 16:19:54 +07:00
Jinzhu
25772352c2
Merge pull request #468 from nicholasf/master
...
Simpler (and correct) example for showing how to declare foreign keys.
2015-05-02 10:44:26 +08:00
Jinzhu
94643a48c1
Merge pull request #476 from Femaref/quote_columns
...
Quote the primary column name when doing queries
2015-05-02 10:43:18 +08:00
Femaref
fa696b0e2f
Quote the primary column name when doing queries
...
Postgresql requires certain column names to be quoted.
When unquoted, all upper-case characters will be converted to lower-case,
and column names like 'typeID' will result in a query on 'typeid'.
2015-04-26 16:34:52 +02:00
nicholasf
a9aef2dd90
Simpler (and correct) example for showing how to declare foreign keys.
...
Impact: Trivial.
2015-04-22 12:54:19 -07:00
Jinzhu
3c2915a9df
Add Nested Preloading to README
2015-04-22 15:38:22 +08:00
Jinzhu
7693c093a9
Refactor Preload
2015-04-22 15:36:10 +08:00
Jinzhu
7ef8b06cb4
Fix tests with mysql
2015-04-22 14:28:50 +08:00
bom_d_van
9e9367e815
refactor preload and its tests
2015-04-21 16:52:18 +08:00
bom_d_van
6d58dc9f4e
support nested preloading
2015-04-21 16:52:18 +08:00
Jinzhu
055bf79f8b
Don't call method if value is nil
2015-04-21 11:24:48 +08:00
Jinzhu
ef4299b398
Add RowQuery callback
2015-04-17 18:27:20 +08:00
Jinzhu
4fbc9d2a8f
Remove foundationdb from tests all script because it is not downloadable from offical site
2015-04-17 14:52:59 +08:00
Jinzhu
0e2cd4475f
Only load Fields when defined preload
2015-04-16 18:42:35 +08:00
Jinzhu
e3d70302f3
Merge pull request #457 from li3p/master
...
look up the Field.Name in Scope.SetColumn
2015-04-16 18:41:37 +08:00
bom_d_van
681aa90995
simplify clone
2015-04-16 17:36:55 +08:00
bom_d_van
5aca010140
ignore empty dialect in TestManyToManyWithMultiPrimaryKeys
2015-04-16 17:36:22 +08:00
li3p
f9bd6bcc64
look up the Field.Name at Scope.SetColumn
2015-04-16 14:28:55 +08:00
li3p
7966cde514
look up the Field.Name at Scope.SetColumn
2015-04-16 14:08:13 +08:00
Jinzhu
d61af54b96
Add default model struct
2015-04-13 10:09:00 +08:00
Jinzhu
1eb1ed091f
Test ManyToMany relations with multi primary keys
2015-04-10 16:55:53 +08:00
Jinzhu
67266ebdb3
Fix create join table with multi primary keys
2015-04-09 15:51:47 +08:00
Jinzhu
e2eef50fb4
Add SetTableNameHandler
2015-04-08 14:56:03 +08:00