Commit Graph

  • 14ea47c280 fix minor grammar issues and broken header link in README.md Benjamin Ruston 2014-04-19 13:04:56 +01:00
  • 912bca0d1a Merge pull request #1 from jinzhu/master Pavel Larkin 2014-04-18 17:14:19 -04:00
  • 9d73acb064 Use correct order during multiple inheritance via anonymous fields lame-nickname 2014-04-12 14:52:40 +02:00
  • 7a334f648f Add model inheritance via struct's anonymous fields lame-nickname 2014-04-11 21:23:46 +02:00
  • 65137121ff Merge pull request #90 from xdmnl/master Jinzhu 2014-04-11 16:19:46 +08:00
  • 2b7306aca1 Fix typos Xavier Dumesnil 2014-04-11 09:58:23 +02:00
  • 0c5e401e1e Merge pull request #89 from dukex/patch-1 Jinzhu 2014-04-11 09:55:24 +08:00
  • 5e62e7fdad Include scope.TableName() in ORDER statement for First() & Last() Xavier Dumesnil 2014-04-10 16:29:09 +02:00
  • 98e9670b8e fixed example code Duke 2014-04-10 03:49:00 -03:00
  • 1a5a4b707d Use offical gorm package in tests Jinzhu 2014-04-06 18:04:10 +08:00
  • fdf369b792 Merge bcb1ca67c0e22470fa12c2d3afd50401f5c32b1d into 22cf9719bf2a7306dd19748be83cebf96a6d55fd Paolo Galeone 2014-04-06 02:12:00 +00:00
  • bcb1ca67c0 Add support for primary key different from id Paolo Galeone 2014-04-02 10:59:07 +02:00
  • 0e8acb5648 Merge fdd9a528005b9e243c8af1ba0ee202f9b413f0e0 into 22cf9719bf2a7306dd19748be83cebf96a6d55fd Paolo Galeone 2014-04-06 02:02:02 +00:00
  • fdd9a52800 Add getPrimaryKey: analize the tag string in the struct fields and find the one marked as primaryKey Paolo Galeone 2014-04-02 11:00:07 +02:00
  • 1dae64912e Merge c67fa6bb0944611cf69675e73ae057f350297406 into 22cf9719bf2a7306dd19748be83cebf96a6d55fd Paolo Galeone 2014-04-06 01:13:50 +00:00
  • c67fa6bb09 add Tests for update a struct Paolo Galeone 2014-04-06 03:12:39 +02:00
  • 26ccbe1740 Add tests Paolo Galeone 2014-04-03 11:58:49 +02:00
  • 2eb6a38fce Fixes getPrimaryKey for non struct type Paolo Galeone 2014-04-03 11:58:28 +02:00
  • 1fc176d679 Format code with gofmt Paolo Galeone 2014-04-03 09:46:51 +02:00
  • 3d642c1987 Add primaryKey field to scope and uses getPrimaryKey to find the one marked in that way, if present. Otherwise fallback to id Paolo Galeone 2014-04-02 11:00:17 +02:00
  • e16601cdc0 Add getPrimaryKey: analize the tag string in the struct fields and find the one marked as primaryKey Paolo Galeone 2014-04-02 11:00:07 +02:00
  • 5574d47f1f Update README.md Paolo Galeone 2014-04-02 10:59:07 +02:00
  • 22cf9719bf update test Jinzhu 2014-03-26 11:02:17 +08:00
  • 663c06cfb1 Add test for anonymous scanner Jinzhu 2014-03-26 10:28:34 +08:00
  • 1949baf5c8 Test Related with search conditions Jinzhu 2014-03-26 08:48:40 +08:00
  • d7d9e24e1e Add test for anonymous field Jinzhu 2014-03-26 08:26:45 +08:00
  • 6d48c9357d Merge pull request #77 from tstranex/master Jinzhu 2014-03-17 19:45:14 +08:00
  • 42448cb5d6 Add DB.CommonDB() instead of DB.Tx(), as discussed in the PR thread. Timothy Stranex 2014-03-17 12:08:44 +02:00
  • a336f51444 Add DB.Tx() method to provice access to the underlying sql.Tx instance. Timothy Stranex 2014-03-16 18:24:32 +02:00
  • d232c69369 Fix exception in mysql Jinzhu 2014-03-16 10:57:38 +08:00
  • e6c953dd4c Support custom types from base types Jinzhu 2014-03-16 09:28:43 +08:00
  • 4969fc9cb5 Remove unused Scanner type from dialect Jinzhu 2014-03-16 07:50:57 +08:00
  • be5cd20731 Merge 27a03477f4f63b4cbdc8afe41a27ec73e7b07bfd into dc2f27401eb44bb575423b467709f8f529dd9002 Timothy 2014-03-15 20:04:17 +00:00
  • 27a03477f4 Prevent panic for fields that implement the sql.Scanner interface but are not structs. Timothy Stranex 2014-03-15 21:55:40 +02:00
  • 71f9b480da Merge 9b869d7376a9f2dbb3d9865b7eaaf790264bfa26 into dc2f27401eb44bb575423b467709f8f529dd9002 phanle 2014-03-15 02:50:32 +00:00
  • dc2f27401e Test search data using time with zone Jinzhu 2014-03-15 10:41:12 +08:00
  • 844a0ddfcc update tests for time with zone Jinzhu 2014-03-15 10:31:26 +08:00
  • 7bbf71fb29 Add tests to make sure time with zone won't be changed after save Jinzhu 2014-03-15 10:17:43 +08:00
  • 65e594e2d6 Fix README Jinzhu 2014-03-15 09:05:08 +08:00
  • 1086009fce Check if value is struct before check Field Jinzhu 2014-03-11 10:08:16 +08:00
  • 0011f2167e Merge 7f9135a8a3b3f8c8157e4d5383988c84a1e65c46 into 24d527670b0d64a094c915522cad3f612eb02fed 铁哥 2014-03-08 12:35:24 +00:00
  • 24d527670b Use the same database for Related Jinzhu 2014-03-07 19:08:33 +08:00
  • 7f9135a8a3 Update callback.go 铁哥 2014-03-03 22:30:28 +08:00
  • 9b869d7376 Timestamp should always be saved in UTC. Ted Young 2014-02-21 14:20:43 -08:00
  • 0156c26cfa Merge pull request #64 from fuzzac/master Jinzhu 2014-02-21 10:29:23 +08:00
  • dfb75dc79d Fixed double logging of UPDATE and DELETE commands. unknown 2014-02-19 14:51:14 -08:00
  • 2c33502503 Add tests for updated_at will be updated when update value with Assign Jinzhu 2014-02-18 10:03:14 +08:00
  • c25f26149e Fix comparing uncomparable type error Jinzhu 2014-01-30 16:41:10 +08:00
  • 829158ed2f Format document Jinzhu 2014-01-29 19:20:06 +08:00
  • 91e937bac1 Add some documents Jinzhu 2014-01-29 19:14:37 +08:00
  • 5eed96457b rename couple of scope related methods Jinzhu 2014-01-29 12:00:57 +08:00
  • 241b6bc3b9 refact Jinzhu 2014-01-29 10:35:28 +08:00
  • b713479174 change callback names Jinzhu 2014-01-29 10:28:20 +08:00
  • e2897f0c9b clone callback when call Callback Jinzhu 2014-01-29 10:25:58 +08:00
  • 31247c577d update method CombinedConditionSql Jinzhu 2014-01-29 08:55:45 +08:00
  • d4d6618e7b Create gh-pages branch via GitHub Jinzhu 2014-01-28 02:46:54 -08:00
  • 036df5f46b Move scope_database to scope.go Jinzhu 2014-01-28 17:09:43 +08:00
  • 6f1dd5fae3 API for search Jinzhu 2014-01-28 16:56:51 +08:00
  • 15583e6017 rename some files Jinzhu 2014-01-28 16:29:42 +08:00
  • f1d990e92a rename scope.quote to scope.Quote Jinzhu 2014-01-28 16:22:41 +08:00
  • 4c368be254 rename gorm_test to main_test Jinzhu 2014-01-28 16:21:02 +08:00
  • a2edf56c58 Remove unused codes Jinzhu 2014-01-28 16:06:22 +08:00
  • 2adbc4b8a6 move all code to scope Jinzhu 2014-01-28 15:54:19 +08:00
  • 05ce3d3933 related with plugin system Jinzhu 2014-01-28 12:28:44 +08:00
  • ae68c0fb47 make count works Jinzhu 2014-01-28 11:38:53 +08:00
  • 5fd2e0d54f make pluck works Jinzhu 2014-01-28 11:37:32 +08:00
  • 7a99f37ba4 Make exec works with plugin system Jinzhu 2014-01-28 10:29:12 +08:00
  • 7bebf685f4 refact Jinzhu 2014-01-28 10:23:31 +08:00
  • 275de4f133 Add method inlineCondition Jinzhu 2014-01-28 10:01:53 +08:00
  • 6e848fc987 move row, rows, scan to scope Jinzhu 2014-01-28 09:48:44 +08:00
  • 549d7a8af2 make first, last works with plugin system Jinzhu 2014-01-28 09:30:30 +08:00
  • db68e7a8fe make callback query works Jinzhu 2014-01-28 09:25:30 +08:00
  • 048b8b6abe make update column works with new plugin system Jinzhu 2014-01-28 08:27:12 +08:00
  • 506d14a2f2 make callback deletes works Jinzhu 2014-01-27 22:36:08 +08:00
  • eab146a275 Add getter setter for scope Jinzhu 2014-01-27 11:56:04 +08:00
  • 23feade663 use callback update when save Jinzhu 2014-01-27 11:06:13 +08:00
  • 3981baf65d Make callback create pass all tests Jinzhu 2014-01-27 10:47:37 +08:00
  • ee6a6827a8 implement callback shared Jinzhu 2014-01-27 08:26:59 +08:00
  • 7b8e91377b callback create.go Jinzhu 2014-01-26 21:23:53 +08:00
  • 8dd7b4ed91 make callback create works Jinzhu 2014-01-26 19:34:06 +08:00
  • 261ece5696 Make callback delete works Jinzhu 2014-01-26 17:10:33 +08:00
  • 4985d7bd96 Add scope_condition.go Jinzhu 2014-01-26 14:55:41 +08:00
  • 6775ecaf13 delete unused callbacks/create.go Jinzhu 2014-01-26 14:28:35 +08:00
  • 10fcb0c88e update scope.go Jinzhu 2014-01-26 14:18:21 +08:00
  • 79cacf7f09 improve scope.go Jinzhu 2014-01-26 13:51:23 +08:00
  • 34122c12d1 Add callback query Jinzhu 2014-01-26 12:49:10 +08:00
  • 12c3df1f47 Add callback update Jinzhu 2014-01-26 12:46:04 +08:00
  • 973acd6339 Add callback create, delete Jinzhu 2014-01-26 12:41:37 +08:00
  • 192ed06ad8 Add tests for replace, remove callback Jinzhu 2014-01-25 20:04:01 +08:00
  • a8b13f015f Make callback.go works Jinzhu 2014-01-25 19:35:21 +08:00
  • ff70578eeb Add callback.go Jinzhu 2014-01-24 21:52:26 +08:00
  • 45edecd13b Merge branch 'master' into plugin_system Jinzhu 2014-01-23 16:43:41 +08:00
  • 6bb7c8b744 Add callback.go Jinzhu 2014-01-23 16:43:39 +08:00
  • 2409c26710 Ignore association with sql tag Jinzhu 2014-01-23 08:50:39 +08:00
  • 950518ae24 Merge branch 'master' into plugin_system Jinzhu 2014-01-22 19:02:05 +08:00
  • 0459aa89db Don't use goroutine to print log Jinzhu 2014-01-22 09:05:43 +08:00
  • 71e7b37bdf Merge pull request #46 from leebrooks0/master Jinzhu 2014-01-05 05:59:57 -08:00
  • 1019783c90 Added installation note to the docs Lee Brooks 2014-01-05 15:07:50 +02:00
  • d8f7d4a243 update tests Jinzhu 2014-01-05 09:37:15 +08:00
  • 30e1b07f7e Refact logger Jinzhu 2014-01-04 17:36:58 +08:00