Commit Graph

  • f4e705b749 Fix compile error Jinzhu 2015-02-16 16:42:01 +08:00
  • 3a73206010 Refactor model struct Jinzhu 2015-02-16 16:35:26 +08:00
  • 1726cebc2e update Jinzhu 2015-02-16 12:04:46 +08:00
  • 5d692a6bf2 Try to cache struct fields Jinzhu 2015-02-15 23:01:09 +08:00
  • 6864d5e5bd Add polymorphic_test.go Jinzhu 2015-02-13 11:26:02 +08:00
  • e615aab232 Rename anonymous_struct_test.go to embedded_struct_test.go Jinzhu 2015-02-13 10:57:35 +08:00
  • b3b87d9c45 Fix Preload belongs to relations has same records Jinzhu 2015-02-12 13:46:49 +08:00
  • 0fb4b7d9f0 Merge pull request #366 from rtfb/master Jinzhu 2015-02-12 09:55:13 +08:00
  • 76d1d1e1cc Fix typo: Condiation -> Condition Vytautas Šaltenis 2015-02-11 21:14:34 +02:00
  • 6dc33d6d94 Merge pull request #360 from sendyhalim/scope-add-foreignkey Jinzhu 2015-02-11 19:35:57 +08:00
  • 0ea51c1e1f Update README for Preload Jinzhu 2015-02-11 19:27:58 +08:00
  • 24e0de116a Add inline condition support for Preload Jinzhu 2015-02-11 19:08:42 +08:00
  • 87b23edd3b Fix get PrimaryKeyField with embedded struct Jinzhu 2015-02-11 18:10:59 +08:00
  • aac52fdcf8 Fix Preload with slice of pointer Jinzhu 2015-02-11 17:58:19 +08:00
  • f97e2c088e Make Preload works with has_one, has_many, belongs_to relations Jinzhu 2015-02-11 15:37:04 +08:00
  • dd635a17c2 Preload belongs_to, has_one, has_many relations Jinzhu 2015-02-11 13:43:53 +08:00
  • 3b784c37c4 First try for the Preload feature Jinzhu 2015-02-01 23:19:29 +08:00
  • 8aef600540 Fix association Replace delete wrong records Jinzhu 2015-02-09 21:54:16 +08:00
  • 2c76c4983d Merge pull request #353 from deoxxa/support-scannable-slices Jinzhu 2015-02-09 21:24:29 +08:00
  • 9757958106 Fix pointers for AutoMigrate Jinzhu 2015-02-09 21:14:48 +08:00
  • e4dc4574bf add tests for scannable slice support deoxxa 2015-02-09 09:42:07 +11:00
  • c38eeb9990 Merge d861d8737e0960731158733c0feee8aafd935b42 into b33f30714baeee37211f857f7135c78a394ed8d0 Sendy Halim 2015-02-07 11:11:03 +00:00
  • d861d8737e Update README.md Sendy Halim 2015-02-07 18:08:25 +07:00
  • a8b3e8d3e2 Add Scope.addForeignKey() sendyHalim 2015-02-07 18:04:10 +07:00
  • b33f30714b Fix Error when using custom columns with ignored fields Jinzhu 2015-02-05 17:42:24 +08:00
  • d3ffcfab40 check for IsScanner on slices deoxxa 2015-01-30 21:24:56 +11:00
  • 1888335b6e Add RowsAffected for query Jinzhu 2015-01-28 11:16:29 +08:00
  • 3e9c2d581f Fix duplicated instanceId in edge case Jinzhu 2015-01-26 17:59:31 +08:00
  • e2c989be17 Remove unnecessary IsIgnored check Jinzhu 2015-01-23 08:59:05 +08:00
  • cecbf2663e Merge 9cc7a59fb56fcaa40195c9390c764f403ffc2c7e into 930c7b80a15e7cca3b83717b2d47a1cd0fe7f0c8 Patrick Kohan 2015-01-23 01:00:39 +00:00
  • 930c7b80a1 Merge pull request #345 from rubysolo/patch-1 Jinzhu 2015-01-23 09:00:38 +08:00
  • 60110e6da0 Merge 8502ffd3952fe70bb11d024d2cbc1469de9c3e39 into 5330572c258c16742c3052af3f82f67031112f2e Solomon White 2015-01-22 20:22:53 +00:00
  • 8502ffd395 local import to make testing easier on forks Solomon White 2015-01-22 13:19:33 -07:00
  • b3521ebf49 Merge b7c6c6af131245562aba66bfc192ffc9a35d4bd0 into 5330572c258c16742c3052af3f82f67031112f2e Solomon White 2015-01-22 17:43:53 +00:00
  • b7c6c6af13 Update README.md Solomon White 2015-01-22 10:43:47 -07:00
  • 9cc7a59fb5 reverse commit, which produces a bug Patrick Kohan 2015-01-22 17:31:17 +01:00
  • 594e178926 Merge f2f4ef81cac8a0daf9076575c88d081c3349003e into 5330572c258c16742c3052af3f82f67031112f2e Conrad Pankoff 2015-01-22 07:42:02 +00:00
  • f2f4ef81ca support embedded structs if they support the sql.Scanner interface deoxxa 2015-01-22 18:15:09 +11:00
  • 5330572c25 Fix Exec with raw string Jinzhu 2015-01-20 12:15:24 +08:00
  • f8e4e16e09 Fix Where with string Jinzhu 2015-01-20 11:16:41 +08:00
  • 2069364296 HasColumn with ignored column Jinzhu 2015-01-19 16:23:33 +08:00
  • 726b3b8c9f Don't raise scan error on column index Jinzhu 2015-01-19 15:50:21 +08:00
  • b7554a2cb0 Fix delete many2many associations Jinzhu 2015-01-16 10:15:53 +08:00
  • ebe5f191a9 Fix upper case for primary key Jinzhu 2015-01-16 10:02:04 +08:00
  • 0d0e8d651d Merge branch 'jaytaylor-postgres-quoting' Jinzhu 2015-01-14 07:59:29 +08:00
  • aa8bc02c11 Fix broken test for postgres Jinzhu 2015-01-14 07:59:21 +08:00
  • e3327d0800 Merge pull request #338 from likestripes/is_ignored_fix Jinzhu 2015-01-14 07:58:02 +08:00
  • 73c47b90fe check isIgnored when compiling attrs to update Travis Donia 2015-01-13 17:57:47 -05:00
  • 2166649409 Ensure identifiers are quoted for RETURNING and DROP INDEX statements. Jay Taylor 2015-01-13 15:27:35 -08:00
  • 3aac11abc8 check isIgnored when compiling attrs to update Travis Donia 2015-01-13 17:57:47 -05:00
  • 016e91db20 Merge pull request #336 from bramp/deleted-at-join-issue-335 Jinzhu 2015-01-12 10:50:46 +08:00
  • 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. Andrew Brampton 2015-01-11 13:49:36 -08:00
  • 3500dfa1b6 expose db.New as API Jinzhu 2015-01-06 15:11:41 +08:00
  • 1b4490fd47 Add MIT License file Jinzhu 2015-01-05 08:58:26 +08:00
  • 1e6e785651 Fix return incorrect sql type Jinzhu 2015-01-05 08:43:01 +08:00
  • 61d2ccb764 Merge pull request #327 from xconstruct/master Jinzhu 2015-01-05 07:50:45 +08:00
  • 045b4d6d2a Fix error when chaining empty where conditions Constantin Schomburg 2015-01-04 13:47:25 +01:00
  • 0219fb1cc0 Don't raise error if no record found when find all Jinzhu 2014-12-19 11:46:48 +08:00
  • 6f2e92e136 Merge pull request #318 from galeone/master Jinzhu 2014-12-18 10:05:53 +08:00
  • d60322978a Fixes https://github.com/jinzhu/gorm/issues/317 Paolo Galeone 2014-12-17 22:41:00 +01:00
  • 5c9d3bb352 Merge branch 'galeone-master' Jinzhu 2014-12-13 10:46:25 +08:00
  • 5823670269 Refactor callbck_create Jinzhu 2014-12-13 10:46:16 +08:00
  • e30cf3bbd1 Fix number of columns affected. Is always one. The old parameter was the numer of fields affected Paolo Galeone 2014-12-08 20:33:31 +01:00
  • 907ea93b43 Fixes scan when primary key is not defined in gorm (but is defined db-size). Useful in join tables Paolo Galeone 2014-12-08 19:00:02 +01:00
  • 21f4de584f Use tableName.field or tableName.* in returning string Paolo Galeone 2014-12-08 12:03:42 +01:00
  • 0fa1335555 Avoid Errors in postgres when creating a row without a GORM defined primary key (but defined db-side) Paolo Galeone 2014-12-08 11:33:30 +01:00
  • cbcb88d3d1 Fix set ForeignKey for embedded struct Jinzhu 2014-12-04 11:44:00 +08:00
  • 6d13ae4ead Merge pull request #303 from jnfeinstein/dev_poly Jinzhu 2014-11-28 10:10:47 +08:00
  • 1cb6e5664e Merge pull request #305 from jnfeinstein/master Jinzhu 2014-11-28 08:33:11 +08:00
  • a8492826a8 Fields are only cached when withRelation, so they should only be accessed when withRelation. jnfeinstein 2014-11-27 13:59:49 -08:00
  • 13c1b44804 Merge pull request #300 from jnfeinstein/master Jinzhu 2014-11-26 17:12:16 +08:00
  • 8b451f0084 Add support for polymorphic relationships using the POLYMORPHIC setting. jnfeinstein 2014-11-25 21:23:43 -08:00
  • 1de020dc4d Add test for polymorphic associations. jnfeinstein 2014-11-25 21:22:43 -08:00
  • 7e8c0f7edd Add README.md updates for polymorphism. jnfeinstein 2014-11-25 21:22:31 -08:00
  • 794e1ba20b .Count() should always use ToSnake'd foreign keys. jnfeinstein 2014-11-25 11:42:05 -08:00
  • 83ff8bb0df Merge 7055ad16956e920a5b2d3b7baf898f19242c3e69 into a4e0ef6509b42be2360e339da12c8aaaf94aac12 pjebs 2014-11-25 07:36:31 +00:00
  • d461455cc4 Merge 0d6f01d340ff3792ee61aec1fd5c7b45e95018ee into a4e0ef6509b42be2360e339da12c8aaaf94aac12 Joel Feinstein 2014-11-25 07:33:02 +00:00
  • 0b60e1ec3c Merge 256dbd7142ff91e28a0f844e467bc40cd19a1ed0 into a4e0ef6509b42be2360e339da12c8aaaf94aac12 westonplatter 2014-11-25 07:27:41 +00:00
  • a4e0ef6509 Refactor reuse existing database connection Jinzhu 2014-11-25 15:20:21 +08:00
  • 1d6b59f223 Allow .Open to reuse existing database connections. jnfeinstein 2014-11-22 11:24:26 -08:00
  • ee36367590 Merge b38f14bfbd21d77faea7ac9b052faed8898d93ee into 0e22837c043e3f3405020fbb11ed4115accb5aaf Joel Feinstein 2014-11-25 07:15:46 +00:00
  • 0e22837c04 Merge pull request #297 from westonplatter/readme-add-wrecker Jinzhu 2014-11-25 15:15:08 +08:00
  • a7e63541fd Fix migration tests Jinzhu 2014-11-25 14:41:09 +08:00
  • e9684db42a Show error message if not using addressable value for auto migration Jinzhu 2014-11-25 13:44:14 +08:00
  • 1aaac379ae Fix tests for mysql, postgres Jinzhu 2014-11-24 18:16:07 +08:00
  • 256dbd7142 related to #286. remove CreatedAt field from generated Update SQL Weston Platter 2014-11-23 21:30:34 -07:00
  • e56f82e256 readme. add wrecker master branch badge to readme. Weston Platter 2014-11-23 21:38:42 -07:00
  • b38f14bfbd Allow .Open to reuse existing database connections. jnfeinstein 2014-11-22 11:24:26 -08:00
  • 0d6f01d340 Create empty slice when records are not found. jnfeinstein 2014-11-22 01:43:47 -08:00
  • 7055ad1695 Make Hybrid Library pjebs 2014-11-22 16:51:20 +11:00
  • 84954e6779 Merge pull request #284 from shirou/master Jinzhu 2014-11-21 10:29:55 +08:00
  • e313827f04 fix panic problem when the struct has unexported field. Shirou WAKAYAMA 2014-11-19 12:44:57 +09:00
  • f43456fecf Merge pull request #282 from jnfeinstein/master Jinzhu 2014-11-18 20:34:24 +08:00
  • 429a100856 Add additional methods of specifying the 'select' portion of a query. jnfeinstein 2014-11-17 07:12:32 -05:00
  • 62b447bc9a Create tables with fields in same order as defined in struct ryanss 2014-11-15 23:31:00 -05:00
  • 8482d0a121 Merge pull request #280 from ryanss/master Jinzhu 2014-11-17 17:50:09 +08:00
  • 75819b2bb3 Refactor DefaultValue Jinzhu 2014-11-17 17:38:32 +08:00
  • d3097687f7 Create tables with fields in same order as defined in struct ryanss 2014-11-15 23:31:00 -05:00
  • 064d91335b Add default values support ( https://github.com/jinzhu/gorm/issues/251 ) Paolo Galeone 2014-11-15 18:32:35 +01:00
  • b1d8dc394a Merge 003bf8d0805db346d4aad20fb29319df113f2eee into a405f08f3a81601cf7b77c3c394f7da5881ff0d3 Joel Feinstein 2014-11-15 00:08:13 +00:00