Commit Graph

56 Commits

Author SHA1 Message Date
Jinzhu 6951be0284 Allow customize clauses 2021-04-28 17:19:30 +08:00
Jinzhu 2055e29eb8 Refactor nested preload all associations 2021-03-14 10:42:58 +08:00
ruozhixian c575a4e719 support to preload all children in multiple levels associations 2021-03-11 16:36:49 +08:00
Jinzhu a948c84607 Revert "Revert "Don't override the from clauses, close #4129" close #4139"
This reverts commit d6c23586ae.
2021-03-05 22:19:34 +08:00
Jinzhu d6c23586ae Revert "Don't override the from clauses, close #4129" close
This reverts commit 664755270d.
2021-03-05 19:42:54 +08:00
Jinzhu 664755270d Don't override the from clauses, close 2021-03-04 19:16:08 +08:00
Jinzhu 42999e9809 Fix overwrite preloading associations, close 2021-03-04 18:28:32 +08:00
Jinzhu 4373aa01ab Don't call AfterFind hooks if no record found, close 2021-02-07 12:44:59 +08:00
Jinzhu 6e3ac74b7e Fix preloading all associations together with nested associations, close 2021-01-28 20:18:01 +08:00
Jinzhu 7f198ead0e Refactor nested preloading associations, close 2021-01-26 16:33:19 +08:00
Jinzhu e1952924e2 Support named Joins, close 2020-12-07 10:31:06 +08:00
Jinzhu dec8748512 Refactor QueryFields Option 2020-11-20 15:44:39 +08:00
Luis Guillermo Gómez 47ffd0bef4
Select all fields in SQL queries avoiding the SELECT * FROM ()
* Select all fields in SQL queries avoiding the SELECT * FROM

* Select table name with fields in SQL queries

* Use QueryFields to execute the SQL query with all fields of the table
2020-11-20 15:38:25 +08:00
Jinzhu 9df9f7688b Change UpdatingColumn to SkipHooks 2020-11-17 17:49:43 +08:00
Jinzhu a9f54d53fb Don't preload when there are any error happened 2020-11-16 12:23:13 +08:00
Jinzhu 560d303e71 Fix Scan with soft delete, close 2020-11-04 11:03:22 +08:00
Jinzhu ce8853e7a6 Add GormValuer interface support 2020-08-27 15:03:57 +08:00
Jinzhu 3a97639880 Fix unordered joins, close 2020-08-23 10:45:10 +08:00
Jinzhu 045d5f8538 Fix count with join and no model, close 2020-08-13 12:18:36 +08:00
Jinzhu dc299b900f Use specified table when preloading data with Join 2020-07-31 14:47:47 +08:00
Jinzhu 69d8111893 Fix panic when using invalid data, close 2020-07-24 08:32:50 +08:00
Jinzhu a0477f94dd Allow Omit with Query, close 2020-07-19 21:48:58 +08:00
Jinzhu a8655f7947 Fix auto select with smaller struct for slices 2020-07-09 12:15:35 +08:00
Jinzhu 9075b33620 Query with smaller struct 2020-07-01 08:56:21 +08:00
Jinzhu 5883490aa7 Select, Omit, Preload supports clause.Associations 2020-06-20 17:21:01 +08:00
Jinzhu 9f19378304 Grow SQL capacity to reduce allocation 2020-06-08 20:23:47 +08:00
Jinzhu aaf0725771 Refactor for performance 2020-06-08 17:21:26 +08:00
Jinzhu 1490a062db Refactor codebase and add benchmark test 2020-06-05 23:26:56 +08:00
Jinzhu 163200d05f Test Hooks 2020-06-05 20:24:15 +08:00
Jinzhu eda2f023b0 Add Distinct support 2020-06-05 19:19:12 +08:00
Jinzhu e986371a42 Rename package name 2020-06-02 09:18:01 +08:00
Jinzhu 4e147e1256 Test SubQuery 2020-06-01 21:26:23 +08:00
Jinzhu 1559fe24e5 Add more updates test 2020-06-01 19:41:33 +08:00
Jinzhu befef0c9a9 Improve Hooks 2020-06-01 00:12:20 +08:00
Jinzhu 5b1d3e4a77 Test Joins 2020-05-31 20:21:52 +08:00
Jinzhu 749ca37eb0 Add sql builder test 2020-05-31 19:23:32 +08:00
Jinzhu db428f221f Fix postgres tests 2020-05-30 00:18:22 +08:00
Jinzhu 55074213bc Add SoftDelete support 2020-05-29 07:35:45 +08:00
Jinzhu 5be642a435 Add ScanRows support 2020-05-26 23:13:05 +08:00
Jinzhu 51c5be0503 Finish Scan support 2020-05-26 21:30:17 +08:00
Jinzhu cbc4a81140 Add Count tests 2020-05-24 11:35:19 +08:00
Jinzhu 42aae57240 Test Preload for BelongsTo/HasOne/HasMany 2020-05-14 14:41:33 +08:00
Jinzhu b549f9bb9a Implement preload support 2020-05-14 12:19:12 +08:00
Jinzhu 41697d58d3 Handle preload 2020-05-07 10:03:48 +08:00
Jinzhu 9dfed613db Test inner joins 2020-04-29 23:47:18 +08:00
Jinzhu 50aa9be4f1 Add joins support 2020-04-15 09:45:43 +08:00
Jinzhu a145d7e019 Refactor structure 2020-03-09 14:25:50 +08:00
Jinzhu b0e1bccf4a Support scan into map, slice, struct 2020-03-04 11:33:50 +08:00
Jinzhu 1403ee70c3 Make Query works 2020-03-03 14:18:12 +08:00
Jinzhu 5ccd76f76c Setup Transaction 2020-02-23 23:28:59 +08:00