Commit Graph

1421 Commits

Author SHA1 Message Date
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
Jinzhu b9a39be9c5 Add Tabler 2015-04-08 11:36:01 +08:00
Jinzhu 2123f31d13 Merge pull request #442 from etcinit/docs
Add an example with time
2015-04-04 20:25:57 +08:00
Eduardo Trujillo 640700d391 Add an example with time 2015-04-03 23:08:35 -04:00
Jinzhu a952601f21 Fix query related resources with customized column name 2015-04-03 16:32:53 +08:00
Jinzhu 03966a1e20 Merge pull request #436 from jaytaylor/master
FoundationDB dialect integration
2015-03-30 14:55:50 +08:00
Jinzhu 14620058ed Merge pull request #438 from jaytaylor/jay/update-columns-skip-associations
Skip saving associations during UpdateColumns(...)
2015-03-30 14:44:41 +08:00
Jinzhu c1969b5c1f Merge pull request #439 from gwTumm/patch-1
Fix type of OwnerType in polymorphism example
2015-03-30 14:23:27 +08:00
Tim Kluge 3bd7cab8d6 Fix type of OwnerType in polymorphism example 2015-03-29 20:47:35 +02:00
Jay Taylor ab48cd222a `UpdateColumns(...)` no longer triggers save of associated records. 2015-03-28 14:15:12 -07:00
Jay Taylor dcc06e22f7 FoundationDB dialect layer and compatibility updates. 2015-03-24 10:35:19 -07:00
Jay Taylor 8389d92f78 Futher clarified error messaging for invalid `plucks'. 2015-03-23 15:11:41 -07:00
Jinzhu 7d16055a5d Don't use instance setting for order_by_primary_key 2015-03-23 11:07:39 +08:00
Jinzhu 1e28551d25 Fix additional SQL type 2015-03-20 17:21:17 +08:00
Jinzhu 4b98b145b1 Fix foreign db name in join table for multi primary keys relations 2015-03-20 11:49:16 +08:00
Jinzhu 94a5ebe5b4 Refactor JoinTableHandler 2015-03-20 11:22:14 +08:00
Jinzhu 9af0563496 Passed all tests 2015-03-19 18:30:35 +08:00
Jinzhu 44b106c8e2 Fix tests 2015-03-19 18:23:54 +08:00