Commit Graph

1526 Commits

Author SHA1 Message Date
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
Jinzhu 36efd0a561 Fix JoinTableHandler JoinWith 2015-03-19 16:42:13 +08:00
Jinzhu fa753969b1 Fix stack overflow 2015-03-19 16:31:11 +08:00
Jinzhu 6ba0c1661f Refactor JoinTableHandler 2015-03-18 18:26:58 +08:00
Jinzhu c13e2f18f8 New JoinTableHandler 2015-03-18 11:47:11 +08:00
Jinzhu 17b20bcdd8 Merge pull request #426 from willglynn/composite_unique_indexes
Fix creation of composite unique indexes
2015-03-18 08:43:40 +08:00
Will Glynn 87ff58b598 Fix creation of composite unique indexes 2015-03-17 09:04:12 -05:00
Jinzhu a0848909c2 Simplify dialect definitions 2015-03-17 10:40:42 +08:00
Jinzhu faae729b20 Merge pull request #422 from macropodhq/relay-scanner-errors
scanner.Scan() can fail, so the error should be forwarded
2015-03-16 11:40:56 +08:00
deoxxa e77fbed442 scanner.Scan() can fail, so the error should be forwarded 2015-03-16 11:22:31 +11:00
Jinzhu 2989e42d4d Support UpdateColumn with Select and Omit 2015-03-13 11:01:05 +08:00
Jinzhu 187eae8d9c Update with Select and Omit 2015-03-12 18:30:59 +08:00
Jinzhu 5d52826b3d Create with Omit 2015-03-12 18:01:27 +08:00
Jinzhu ad251b9deb Create with Select 2015-03-12 17:47:31 +08:00
Jinzhu da7830ea50 Add SelectAttrs, OmitAttrs 2015-03-12 15:50:38 +08:00
Jinzhu 94adc3e1d8 Export Unscoped Field for search 2015-03-12 15:01:59 +08:00
Jinzhu 6e5d46bf37 Refactor Search API 2015-03-12 14:47:07 +08:00
Jinzhu 9f2959959b Add error if query destination is not supported 2015-03-12 12:11:38 +08:00
Jinzhu 4c815fd2cc Add add limit 1 for Find automatically 2015-03-12 12:01:53 +08:00
Jinzhu df33db6ff9 Save cached model structs globally 2015-03-11 18:33:50 +08:00
Jinzhu b0cf9a9e4b Add Composite Primary Key example 2015-03-11 17:40:54 +08:00
Jinzhu a549b6bd49 Refactor SQL Tag 2015-03-11 17:05:58 +08:00
Jinzhu 49454839bd Support Multi primary keys 2015-03-11 11:28:30 +08:00
Jinzhu 7b9272a15e Update README 2015-03-11 11:15:23 +08:00
Jinzhu 5c38950d9b Merge pull request #409 from huacnlee/skip_add_index_if_exist
Dialect Index first, before AddIndex
2015-03-10 10:12:56 +08:00
Jason Lee 708d85763c Dialect Index first, before AddIndex 2015-03-09 21:33:25 +08:00
Jinzhu 6fed43162f Create Indexes with AutoMigrate 2015-03-09 17:22:16 +08:00
Jinzhu 42f934d60e Fix nil condition 2015-03-06 10:49:26 +08:00
Jinzhu 287ae22ca6 Add method New back 2015-03-04 13:56:47 +08:00
Jinzhu 80576bbbbc Add Table method for JoinTableHandler 2015-03-04 13:56:47 +08:00
Jinzhu 3740a3beaa Merge pull request #396 from ikawaha/fix/hstore_20150302
Fixed a bug that panic occurs when the value is null
2015-03-03 13:47:33 +08:00
Jinzhu 34997385b0 Add HasIndex method for dialect interface 2015-03-02 23:02:40 +08:00
ikawaha 360328b8c6 Fixed a bug that panic occurs when the value is null 2015-03-02 23:20:30 +09:00
Jinzhu 61a878dc2d Fix Related for belongs to association 2015-03-02 15:55:24 +08:00
Jinzhu b3d6025365 Fix preload error when result is empty 2015-03-02 10:52:18 +08:00
Jinzhu b391029188 Fix stack overflow for many to many associations 2015-02-28 19:09:45 +08:00
Jinzhu 4e8d43dd4f Refactor check HasTable, HasColumn 2015-02-28 17:01:27 +08:00
Jinzhu da8fc53c86 Set IsForeignKey for StructField 2015-02-28 15:54:38 +08:00
Jinzhu 22b1a93e03 Add JoinTableHandler test 2015-02-28 14:16:51 +08:00
Jinzhu 6d64e6837b Add JoinTableHandler 2015-02-28 12:05:14 +08:00
Jinzhu aa0a4012be Escaping table names when AddForeignKey 2015-02-28 09:25:05 +08:00
Jinzhu 33e6b14632 Clear value from db after set table name 2015-02-26 16:08:26 +08:00
Jinzhu b5edc9137c Fix clone callback 2015-02-26 14:47:56 +08:00
Jinzhu ce72988e96 Refactoring API for plugin system 2015-02-26 14:40:30 +08:00
Jinzhu 087b7083ad Fix scope Fields with embedded struct 2015-02-25 11:17:33 +08:00
Jinzhu 07af30c548 Fix primary key in embedded struct 2015-02-25 10:57:21 +08:00