Commit Graph

  • d699c85486 Use fmt.Errorf Benjamin Ruston 2014-08-04 19:54:05 +01:00
  • 8308491d9a Fix AutoMigrate with nested Scanner Jinzhu 2014-08-04 14:37:51 +08:00
  • eb26dcc597 Add support for custom column names Vytautas Šaltenis 2014-07-30 22:43:24 +03:00
  • 90106d82c5 Export Relationship Jinzhu 2014-07-31 11:08:26 +08:00
  • df4a00a945 Update README with Associations Jinzhu 2014-07-30 22:50:27 +08:00
  • ba74a9545b Make clear works Jinzhu 2014-07-30 22:15:31 +08:00
  • 5a95050464 Make association replace works Jinzhu 2014-07-30 22:10:12 +08:00
  • db3da2c636 Make association Count works Jinzhu 2014-07-30 21:43:53 +08:00
  • 6c4b635176 Replace BeforeAssociation, AfterAssociation with association type Jinzhu 2014-07-30 21:14:10 +08:00
  • 2356182ea7 Rename joinTable to relationship Jinzhu 2014-07-30 20:59:52 +08:00
  • e1e68debdc improve association Jinzhu 2014-07-30 20:48:36 +08:00
  • efd3b7678b Be able to find many to many relations Jinzhu 2014-07-30 16:22:26 +08:00
  • 9b3be66a77 Refact scope Fields Jinzhu 2014-07-30 15:15:23 +08:00
  • 0d3085393e Add IndirectValue for Scope Jinzhu 2014-07-30 14:58:00 +08:00
  • ba95de5c50 Rename relations to associations Jinzhu 2014-07-30 14:30:21 +08:00
  • 371e6af99e Create join table when run AutoMigrate Jinzhu 2014-07-30 14:20:38 +08:00
  • 14590a65dc Save many to many relations into join table Jinzhu 2014-07-30 14:18:15 +08:00
  • a7aaf151cf Use JoinTable instead of ForeignKey Jinzhu 2014-07-30 11:32:18 +08:00
  • 22cc54a946 Merge 9d73acb064876480e3dd66c4b75ef5df82b59f06 into d7400c2df4ba6eafb8114bc369fd28eacf443dc5 lame-nickname 2014-07-29 10:38:54 +00:00
  • d7400c2df4 Don't sort by primary key if it doesn't exist in First/Last Jinzhu 2014-07-29 18:29:03 +08:00
  • 0c63e57f5c Use tag to set primary key Jinzhu 2014-07-29 18:21:36 +08:00
  • f56e071375 Refact parse SQL tag, set default size to 255 Jinzhu 2014-07-29 17:52:23 +08:00
  • 2bffb43138 Write stub code for Many2Many Jinzhu 2014-07-29 17:28:10 +08:00
  • 62fd13e04e Refact tests Jinzhu 2014-07-29 16:25:38 +08:00
  • 468e54f0ee Refact tests Jinzhu 2014-07-29 12:32:58 +08:00
  • b929a082d7 Fix remove index for sqlite and postgres Jinzhu 2014-07-29 12:02:03 +08:00
  • cb7d545ac0 Refact tests Jinzhu 2014-07-29 10:59:13 +08:00
  • 6a00344355 Fix check HasColumn for sqlite3 Jinzhu 2014-07-26 08:37:45 +08:00
  • 7bad7e7427 Fix check HasColumn for sqlite3 Jinzhu 2014-07-25 18:14:44 +08:00
  • 2d3bcf5297 Refact untils.go Jinzhu 2014-07-25 16:51:54 +08:00
  • 67b9e2a9ad Fix typo Jinzhu 2014-07-25 15:49:10 +08:00
  • 11dc47587c Support inline condition when Delete Jinzhu 2014-07-24 18:30:12 +08:00
  • ae12a1cca5 Merge pull request #170 from chr4/master Jinzhu 2014-07-23 11:28:59 +08:00
  • b78645279c Simplify set field value Jinzhu 2014-07-22 13:32:22 +08:00
  • 4772acb1c4 Add basic support for DEFAULT values Chris Aumann 2014-07-21 23:33:41 +02:00
  • 40c16f3c29 Export method ToSnake and SnakeToUpperCamel Jinzhu 2014-07-21 14:06:54 +08:00
  • 11bfaba497 Update README Jinzhu 2014-07-18 10:16:08 +08:00
  • 74ff71ede5 Add support for sqlite3 hook Jamie Foster 2014-07-15 20:44:09 +03:00
  • 3eb4adafba Extract method FieldByName Jinzhu 2014-07-15 11:48:30 +08:00
  • 8e6c26db47 Merge e0a7c13ef5fbd76e53710fc27eeef90c89611016 into 96db2a1d1568b54d97afb759b6bb2a96f11a704a Guan Ce 2014-07-13 11:08:34 +00:00
  • 96db2a1d15 Merge pull request #165 from rtfb/typos Jinzhu 2014-07-13 19:08:25 +08:00
  • e0a7c13ef5 add comment on creating a global DB variable Guan Ce 2014-07-13 17:05:04 +08:00
  • 6da7e8c64e Fix couple misleading test failure messages Vytautas Šaltenis 2014-07-12 13:33:48 +03:00
  • 78948f1b7f Fix couple cosmetic typos Vytautas Šaltenis 2014-07-12 13:32:53 +03:00
  • 3587dbee4d Fix link to section in README Vytautas Šaltenis 2014-07-12 13:31:12 +03:00
  • dee9520d4e Merge pull request #163 from jimbao/master Jinzhu 2014-07-11 11:00:53 +08:00
  • bbb3b50d0a Don't set primary key is alrady exists Jinzhu 2014-07-11 10:05:28 +08:00
  • d857685771 Fix error when deploying to google app engine Jimmy Wahlberg 2014-07-10 16:15:39 +02:00
  • bdaecff30d Update README Jinzhu 2014-07-09 10:18:07 +08:00
  • 3bd5131132 Support slice of pointers Jinzhu 2014-07-08 10:45:31 +08:00
  • a9ac3e10a7 Support upcase column names Jinzhu 2014-07-04 08:19:11 +08:00
  • 29ac192090 Add Compatibility Mode Jinzhu 2014-07-02 17:47:30 +08:00
  • f355b34ba9 Merge a69602fe1c59c309ebf8807619a01ad6a600e7a2 into 325e6c2ef19c89363353dbff54e47f1cb691c24d Philip Wiebe 2014-07-02 04:00:32 +00:00
  • 325e6c2ef1 Fix tests with go v1.3 Jinzhu 2014-07-02 11:56:37 +08:00
  • a69602fe1c convert all caps properly to snake format. Phil Wiebe 2014-07-01 17:12:10 -04:00
  • 1c1df2318c Fix exception for FirstOrCreate when search condition is nil Jinzhu 2014-07-01 15:55:19 +08:00
  • d17da2bbb5 Merge 648a187acc9266498a2b4f4073baf8c980ad30d6 into 6c5b95e2b262a4379d3bb113117e914be4efe791 Vytautas Šaltenis 2014-06-23 12:15:32 +00:00
  • 6c5b95e2b2 Return query error in FirstOrInit and FirstOrCreate Jinzhu 2014-06-23 20:10:50 +08:00
  • 648a187acc Move tests to the main gorm package Vytautas Šaltenis 2014-06-17 21:08:31 +03:00
  • a89500c855 Add no permission message when fail to create hstore extension Jinzhu 2014-06-14 10:54:14 +08:00
  • 8be30beee9 Fix typo in README Jinzhu 2014-06-13 10:54:37 +08:00
  • 938618a3e2 Refact callback_create Jinzhu 2014-06-12 11:54:47 +08:00
  • d2e526bc2d db.Create() for force insert with predefined primary key Vladimir Garvardt 2014-06-12 00:51:27 +04:00
  • 11f232a200 Fix QuotedTableName Jinzhu 2014-06-10 13:08:19 +08:00
  • d1ed7042b7 Merge 4698547f141637928d51f0a5fa118b7b13876d03 into bab148f90cf31dcd8e8f78e8327c6dc13b4e61af Can Yucel 2014-06-09 00:22:48 +00:00
  • bab148f90c Fix RowsAffected tests Jinzhu 2014-06-09 08:17:20 +08:00
  • 4698547f14 Fix RowsAffected tests for the case LastInsertId is not supported Can Yucel 2014-06-07 21:41:22 -07:00
  • 5f0e640f3d add postgres hstore type support Can Yucel 2014-06-07 16:15:58 -07:00
  • 744cb7dfda Update README Jinzhu 2014-06-05 18:23:22 +08:00
  • f32fa0cb6e Add RowsAffected for DB Jinzhu 2014-06-05 17:58:14 +08:00
  • 319af32c78 Return RecordNotFound error when no record found for slice Jinzhu 2014-06-05 17:15:25 +08:00
  • 0cba662be0 Add method QuotedTableName for Scope Jinzhu 2014-06-03 17:15:05 +08:00
  • 2fff8a7fac Revert "quote table name" Jinzhu 2014-06-03 16:52:55 +08:00
  • a77ee01cec Merge pull request #127 from vgarvardt/master Jinzhu 2014-06-01 19:50:28 +08:00
  • d1dc0ccbef AddUniqueIndex Vladimir Garvardt 2014-06-01 02:35:56 +04:00
  • cdce84fd1a AddIndex for multiple columns Vladimir Garvardt 2014-06-01 02:12:31 +04:00
  • f920e000b2 Merge 88721542e1ce1c3aa581a0c3b5a045ae964067f4 into 38a06bfdaae5dde7519faad908373493cec20211 Shuhao Wu 2014-05-24 01:57:12 +00:00
  • 38a06bfdaa quote table name Jinzhu 2014-05-19 12:08:31 +08:00
  • 88721542e1 Failing test cases. Shuhao Wu 2014-05-23 15:35:30 -04:00
  • 2f8b1842d8 Merge pull request #112 from siesta/timenowset Jinzhu 2014-05-12 18:27:13 +08:00
  • c465d3214f set updated_at and created_at with the same timestamp, prevent record from having slight difference between fields Cihangir SAVAS 2014-05-12 12:52:47 +03:00
  • 452123479e Remove sql string's validation check Jinzhu 2014-04-30 11:53:00 +08:00
  • ddc1f9156a Fix insert empty record into database Jinzhu 2014-04-29 17:42:10 +08:00
  • 1120451108 Use sqlite as default test database Jinzhu 2014-04-29 16:02:18 +08:00
  • a16a5fca58 Only mark those SQL strings has as invalid SQL Jinzhu 2014-04-29 15:51:49 +08:00
  • 3264b82368 Fix auto migration for sqlite Jinzhu 2014-04-29 15:39:06 +08:00
  • 514a32e547 Fix imported package name Jinzhu 2014-04-29 15:21:43 +08:00
  • fb8f10e9d4 Merge cc3ebd34de7b6b9032fb2b706c921415045617de into d6d83b0cdededd98c1758b1c42eb857124dffc33 Paolo Galeone 2014-04-28 20:44:06 +00:00
  • cc3ebd34de Add support to fields with double quotes Paolo Galeone 2014-04-28 22:37:45 +02:00
  • 041c0462fb Merge 912bca0d1ad307dcfd3b17d75608b2b4e4942b7c into d6d83b0cdededd98c1758b1c42eb857124dffc33 Pavel Larkin 2014-04-28 19:17:24 +00:00
  • 47912b182a Merge 912bca0d1ad307dcfd3b17d75608b2b4e4942b7c into d6d83b0cdededd98c1758b1c42eb857124dffc33 Pavel Larkin 2014-04-28 19:07:03 +00:00
  • d6d83b0cde Fix invalid SQL issue Jinzhu 2014-04-28 16:52:01 +08:00
  • 6dc332e04d Include table_schema when query from INFORMATION_SCHEMA for mysql Jinzhu 2014-04-25 09:26:02 +08:00
  • 66e6c9af9f Add method HasTable, HasColumn to dialect Jinzhu 2014-04-25 09:08:48 +08:00
  • 288c8e37af Merge branch 'sunfmin-master' Jinzhu 2014-04-25 07:23:26 +08:00
  • a46d149579 remove package dialect for easier contribution Jinzhu 2014-04-25 07:20:23 +08:00
  • bae042eaef Merge 1ff3c79c75a1dd4bf7a1734a7f9fe10e1bd24169 into fd3ce3b39a456b6968be00c86ca7f3414fcc1f2d Felix Sun 2014-04-24 16:43:34 +00:00
  • 1ff3c79c75 When multiple databases have the same table name and column names, automigrate doesn't work Felix Sun 2014-04-25 00:38:40 +08:00
  • fd3ce3b39a Add method to close gorm db connection Jinzhu 2014-04-24 10:54:27 +08:00
  • 8e3181494d Merge pull request #92 from bruston/patch-1 Jinzhu 2014-04-20 08:30:34 +08:00