Commit Graph

1489 Commits

Author SHA1 Message Date
Andrew Martin 52775992ec golinting 2015-02-17 10:15:34 +11:00
Jinzhu de3f2a5c46 Refactor Fields 2015-02-16 17:47:07 +08:00
Jinzhu 2d866090e4 Fix get scanner type 2015-02-16 17:10:13 +08:00
Jinzhu f4e705b749 Fix compile error 2015-02-16 16:42:01 +08:00
Jinzhu 3a73206010 Refactor model struct 2015-02-16 16:35:26 +08:00
Jinzhu 1726cebc2e update 2015-02-16 12:04:46 +08:00
Jinzhu 5d692a6bf2 Try to cache struct fields 2015-02-15 23:01:09 +08:00
Jinzhu 6864d5e5bd Add polymorphic_test.go 2015-02-13 11:26:02 +08:00
Jinzhu e615aab232 Rename anonymous_struct_test.go to embedded_struct_test.go 2015-02-13 10:57:35 +08:00
Jinzhu b3b87d9c45 Fix Preload belongs to relations has same records 2015-02-12 13:50:16 +08:00
Jinzhu 0fb4b7d9f0 Merge pull request #366 from rtfb/master
Fix typo: Condiation -> Condition
2015-02-12 09:55:13 +08:00
Vytautas Šaltenis 76d1d1e1cc Fix typo: Condiation -> Condition 2015-02-11 21:14:34 +02:00
Jinzhu 6dc33d6d94 Merge pull request #360 from sendyhalim/scope-add-foreignkey
Add Scope.addForeignKey()
2015-02-11 19:35:57 +08:00
Jinzhu 0ea51c1e1f Update README for Preload 2015-02-11 19:27:58 +08:00
Jinzhu 24e0de116a Add inline condition support for Preload 2015-02-11 19:08:42 +08:00
Jinzhu 87b23edd3b Fix get PrimaryKeyField with embedded struct 2015-02-11 18:10:59 +08:00
Jinzhu aac52fdcf8 Fix Preload with slice of pointer 2015-02-11 17:58:19 +08:00
Jinzhu f97e2c088e Make Preload works with has_one, has_many, belongs_to relations 2015-02-11 17:17:27 +08:00
Jinzhu dd635a17c2 Preload belongs_to, has_one, has_many relations 2015-02-11 13:43:53 +08:00
Jinzhu 3b784c37c4 First try for the Preload feature 2015-02-11 09:47:10 +08:00
Jinzhu 8aef600540 Fix association Replace delete wrong records 2015-02-09 21:54:16 +08:00
Jinzhu 2c76c4983d Merge pull request #353 from deoxxa/support-scannable-slices
check for IsScanner on slices
2015-02-09 21:24:29 +08:00
Jinzhu 9757958106 Fix pointers for AutoMigrate 2015-02-09 21:14:48 +08:00
deoxxa e4dc4574bf add tests for scannable slice support 2015-02-09 09:42:07 +11:00
Sendy Halim d861d8737e Update README.md 2015-02-07 18:08:25 +07:00
sendyHalim a8b3e8d3e2 Add Scope.addForeignKey() 2015-02-07 18:04:10 +07:00
Jinzhu b33f30714b Fix Error when using custom columns with ignored fields 2015-02-05 17:42:24 +08:00
deoxxa d3ffcfab40 check for IsScanner on slices 2015-01-30 21:25:11 +11:00
Jinzhu 1888335b6e Add RowsAffected for query 2015-01-28 11:16:33 +08:00
Jinzhu 3e9c2d581f Fix duplicated instanceId in edge case 2015-01-26 17:59:31 +08:00
Jinzhu e2c989be17 Remove unnecessary IsIgnored check 2015-01-23 09:04:07 +08:00
Jinzhu 930c7b80a1 Merge pull request #345 from rubysolo/patch-1
Update README.md
2015-01-23 09:00:38 +08:00
Solomon White b7c6c6af13 Update README.md
fix typo.  :)
2015-01-22 10:43:47 -07:00
Jinzhu 5330572c25 Fix Exec with raw string 2015-01-20 14:55:38 +08:00
Jinzhu f8e4e16e09 Fix Where with string 2015-01-20 11:30:01 +08:00
Jinzhu 2069364296 HasColumn with ignored column 2015-01-19 16:23:33 +08:00
Jinzhu 726b3b8c9f Don't raise scan error on column index 2015-01-19 15:50:21 +08:00
Jinzhu b7554a2cb0 Fix delete many2many associations 2015-01-16 10:15:53 +08:00
Jinzhu ebe5f191a9 Fix upper case for primary key 2015-01-16 10:02:04 +08:00
Jinzhu 0d0e8d651d Merge branch 'jaytaylor-postgres-quoting' 2015-01-14 07:59:29 +08:00
Jinzhu aa8bc02c11 Fix broken test for postgres 2015-01-14 07:59:21 +08:00
Jinzhu e3327d0800 Merge pull request #338 from likestripes/is_ignored_fix
check isIgnored when compiling attrs to update
2015-01-14 07:58:02 +08:00
Travis Donia 73c47b90fe check isIgnored when compiling attrs to update 2015-01-14 07:53:09 +08:00
Jay Taylor 2166649409 Ensure identifiers are quoted for `RETURNING` and `DROP INDEX` statements. 2015-01-13 15:27:35 -08:00
Travis Donia 3aac11abc8 check isIgnored when compiling attrs to update 2015-01-13 17:57:47 -05:00
Jinzhu 016e91db20 Merge pull request #336 from bramp/deleted-at-join-issue-335
Fixes #335 - Added scoped table name to "deleted_at" where clause. This ...
2015-01-12 10:50:46 +08:00
Andrew Brampton fef286a7bc Fixes #335 - Added scoped table name to "deleted_at" where clause. This ensures it works when the deleted_at column is ambigious, for example, during a join. 2015-01-11 13:49:36 -08:00
Jinzhu 3500dfa1b6 expose db.New as API 2015-01-06 15:11:41 +08:00
Jinzhu 1b4490fd47 Add MIT License file 2015-01-05 08:59:18 +08:00
Jinzhu 1e6e785651 Fix return incorrect sql type 2015-01-05 08:43:13 +08:00