Commit Graph

1714 Commits

Author SHA1 Message Date
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
Jinzhu 1011865b91 Merge pull request #380 from rtfb/master
Fix a few typos
2015-02-25 09:08:06 +08:00
Vytautas Šaltenis 59f32f605c Fix a few typos 2015-02-24 21:17:35 +02:00
Jinzhu 1521b794d8 Update README 2015-02-24 22:06:42 +08:00
Jinzhu 10340e6ad7 Support SQL expression 2015-02-24 22:06:35 +08:00
Jinzhu eb480cc085 Modify struct when update association 2015-02-24 18:48:48 +08:00
Jinzhu 0f08058713 Fix quote table name with database 2015-02-24 18:02:22 +08:00
Jinzhu d22cd2e9d7 Update README 2015-02-24 17:11:35 +08:00
Jinzhu 83ee11e184 Don't call callbacks if has error 2015-02-24 16:28:15 +08:00
Jinzhu 5586d04999 Uniq foreign key for Preload 2015-02-24 15:50:02 +08:00
Jinzhu a97a508ec7 Raise error if using unaddressable value 2015-02-23 09:40:39 +08:00
Jinzhu 7934223f99 Better formated logger 2015-02-23 09:26:26 +08:00
Jinzhu 068e774540 Overwrite Select conditions 2015-02-23 08:58:52 +08:00