Commit Graph

2431 Commits

Author SHA1 Message Date
Jinzhu e64785573d Add helper methods to check user, pet 2020-05-23 18:05:26 +08:00
Jinzhu bb68f0d6b3 Refactor tests 2020-05-23 16:08:50 +08:00
Jinzhu 72460df1bd Fix associations find 2020-05-23 11:57:28 +08:00
Jinzhu 0f21272c7f Finish implement association support 2020-05-20 23:44:50 +08:00
Jinzhu 20cb57b1ac Add association Delete support 2020-05-20 02:03:43 +08:00
Jinzhu 922a8efc53 Generate Query Conds for Relationship 2020-05-19 21:50:06 +08:00
Jinzhu 59365b776b Refacotr Preload 2020-05-18 13:07:11 +08:00
Jinzhu f999240e10 Define association API, add conds to when preloading 2020-05-14 20:54:50 +08:00
Jinzhu 92b812408c Test many2many associations 2020-05-14 15:05:04 +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 8def7be583 Add context to logger 2020-05-05 21:28:38 +08:00
Jinzhu 9dfed613db Test inner joins 2020-04-29 23:47:18 +08:00
Jinzhu 85246682c8 Test update associations 2020-04-29 22:15:05 +08:00
Jinzhu 70d60ef72f Fix create join table 2020-04-29 20:37:06 +08:00
Jinzhu 85f3174467 Test has many associations 2020-04-22 09:38:32 +08:00
Jinzhu 43a814ae70 Add bulk create associations tests 2020-04-20 11:47:29 +08:00
Jinzhu 7bcd95d4b8 Add save associations for bulk create 2020-04-19 23:11:56 +08:00
Jinzhu 158bacefbe Add save has many relations 2020-04-19 14:29:31 +08:00
Jinzhu 952df527db Test create polymorphic has one 2020-04-17 08:40:11 +08:00
Jinzhu fb44625c33 Save HasOne association 2020-04-17 08:23:47 +08:00
Jinzhu 56ca9a87e0 Add permission check when create associations 2020-04-16 10:29:18 +08:00
Jinzhu 345ff7577c Save before associations 2020-04-15 23:58:26 +08:00
Jinzhu b4b249ddcb Refactor test files 2020-04-15 19:13:36 +08:00
Jinzhu 50aa9be4f1 Add joins support 2020-04-15 09:45:43 +08:00
Jinzhu a992c1ea38 Fix check has column, index for sqlite 2020-04-12 13:22:52 +08:00
Jinzhu e1bcca6b33 Compatible with tag PRIMARY_KEY 2020-04-12 13:16:15 +08:00
Jinzhu a46d48ccb3 Add tests for controlling field permission with tag 2020-04-08 08:32:28 +08:00
Jinzhu 29cd35219f Add creatable, updatable, readable permission 2020-04-08 08:15:00 +08:00
Jinzhu d39bdc3513 Fix create index 2020-04-03 07:57:52 +08:00
Jinzhu 511bd66490 Fix print code lines 2020-04-03 07:15:30 +08:00
Jinzhu be537f29ec [migrator] Use full data type when add column 2020-03-30 09:31:02 +08:00
Jinzhu 3a126233bf Fix select with * 2020-03-23 22:40:12 +08:00
Jinzhu 477efab8cd Refactor logger 2020-03-14 19:00:41 +08:00
Jinzhu f7f633590f Fix tests with mysql, postgres 2020-03-12 13:05:22 +08:00
Jinzhu af080e6773 Fix primary key tag 2020-03-12 08:39:42 +08:00
Jinzhu 9e8a4db36b Use *gorm.DB to replace gorm.DB 2020-03-10 08:39:33 +08:00
Jinzhu 2a0c3e39f2 AddVar accept writer 2020-03-09 17:59:54 +08:00
Jinzhu 504f42760a Refactor clause Writer 2020-03-09 17:07:00 +08:00
Jinzhu 3aa1891068 Add sync pool 2020-03-09 15:32:55 +08:00
Jinzhu a145d7e019 Refactor structure 2020-03-09 14:25:50 +08:00
Jinzhu 078ba75b9c Add QuoteTo method 2020-03-08 23:30:16 +08:00
Jinzhu 5fce17543a Add Joins 2020-03-08 19:12:33 +08:00
Jinzhu a158d1ada0 Add GroupBy test 2020-03-08 18:05:22 +08:00
Jinzhu ce0e6f9f33 Add Delete test 2020-03-08 14:51:52 +08:00
Jinzhu 2da0ad5bed Add more tests for Update 2020-03-08 13:24:08 +08:00
Jinzhu cbd55dbcd5 Add Update test 2020-03-07 15:20:09 +08:00
Jinzhu 0c34123796 Add Limit, Offset 2020-03-04 23:56:42 +08:00
Jinzhu 9f7f4b430e Refactor find slice 2020-03-04 22:16:39 +08:00