Jinzhu
6e3ac74b7e
Fix preloading all associations together with nested associations, close #4016
2021-01-28 20:18:01 +08:00
Jinzhu
7f198ead0e
Refactor nested preloading associations, close #3970
2021-01-26 16:33:19 +08:00
Jinzhu
e1952924e2
Support named Joins, close #3833
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 ( #3731 )
...
* 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 #3712
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 #3267
2020-08-23 10:45:10 +08:00
Jinzhu
045d5f8538
Fix count with join and no model, close #3255
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 #3193
2020-07-24 08:32:50 +08:00
Jinzhu
a0477f94dd
Allow Omit with Query, close #3165
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
Jinzhu
e2a360b9fa
Add Before/After callbacks
2020-02-23 21:22:35 +08:00
Jinzhu
fa22807e12
Make inesrt into db works
2020-02-23 19:41:29 +08:00
Jinzhu
6d58b62fd4
Add sqlite migration tests
2020-02-22 20:57:29 +08:00
Jinzhu
9d19be0826
Setup clauses tests
2020-02-04 09:51:19 +08:00
Jinzhu
46b1c85f88
Add more clauses
2020-02-04 08:56:15 +08:00
Jinzhu
d833efe8b9
Work on clauses
2020-02-02 19:11:17 +08:00