Jinzhu
e1952924e2
Support named Joins, close #3833
2020-12-07 10:31:06 +08:00
Jinzhu
1ef1f0bfe4
Fix Count with complicated Select, close #3826
2020-12-06 14:30:42 +08:00
Jinzhu
0c12a4c360
Add CreateBatchSize option
2020-12-02 14:59:50 +08:00
Jinzhu
6950007d6a
Fix failed to parse relations when using goroutinue, close #3790
...
commit ee0ec43e8dfa85c1c1a562c2d0d47776cf8abd92
Author: Jinzhu <wosmvp@gmail.com>
Date: Fri Nov 27 14:31:57 2020 +0800
Fix failed to parse relations when using goroutinue, close #3790
commit 590e73ff95
Author: rokeyzhao <rokeyzhao@tencent.com>
Date: Thu Nov 26 20:27:55 2020 +0800
test: no cache preload in goroutine
2020-11-27 14:32:20 +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
Deviller
d66af581b4
Fix Association.Replace() error returning ( #3766 )
...
* Fix Association.Replace() error returning
* Fallback to gorm.Model at TestAssociationNotNullClear()
2020-11-19 19:24:34 +08:00
Jinzhu
54b80b18bc
Allow to omit fields in associations, close #3752
2020-11-17 21:49:40 +08:00
Jinzhu
50df9da6a1
Allow to skip associations when creating join table for many2many, close #3605
2020-11-17 20:24:08 +08:00
Jinzhu
26504f5cae
Use NewDB to replace WithConditions for Session
2020-11-17 16:28:37 +08:00
Jinzhu
f6e1786ca2
Add skip hooks support
2020-11-17 15:19:58 +08:00
Jinzhu
f5c2126c29
Fix FindInBatches tests
2020-11-17 13:14:34 +08:00
Jinzhu
320f33061c
Fix FindInBatches to modify the query conditions, close #3734
2020-11-17 11:19:04 +08:00
Jinzhu
a8db54afd6
Add CreateInBatches supports
2020-11-16 21:42:30 +08:00
Jinzhu
62be27d3ca
Add OnConflict UpdateAll support
2020-11-16 20:22:08 +08:00
Jinzhu
fcf2ab6c0e
Add deleted_at check when soft deleting, fix #3720
2020-11-05 11:20:08 +08:00
Jinzhu
560d303e71
Fix Scan with soft delete, close #3712
2020-11-04 11:03:22 +08:00
Jinzhu
c915471169
Support Expression for OrderBy clause
2020-11-03 10:30:05 +08:00
Jinzhu
a8141b6cc9
Fix DeletedAt marshal and unmarshal, close #3693
2020-10-30 18:15:07 +08:00
Jinzhu
4009ec5816
Fix call hook methods when updating with struct
2020-10-27 18:14:36 +08:00
Jinzhu
0aef8acc11
Add smart auto migrate tests
2020-10-22 16:36:27 +08:00
Jinzhu
231aba53c5
Fix count with order by
2020-10-22 11:28:43 +08:00
Jinzhu
5fee5b1b24
Add option tag support for index
2020-10-21 20:18:21 +08:00
Jinzhu
33a11767ea
Upgrade test go.mod dependencies
2020-10-20 19:13:31 +08:00
Jinzhu
9b2181199d
Fix soft delete with OrCondition, close #3627
2020-10-19 14:50:11 +08:00
Jinzhu
3d846957cd
Compatible with tag notNull
2020-10-09 17:42:28 +08:00
Jinzhu
7faf1ca80f
Fix Select with AS, close #3581 , #3567
2020-10-09 11:52:12 +08:00
Jinzhu
dbc6b34dce
Add detailed error information when missing table name
2020-09-29 15:43:31 +08:00
Jinzhu
ba253982bf
Fix Pluck with Time and Scanner
2020-09-24 20:08:24 +08:00
Jinzhu
c0de3c5051
Support FullSaveAssociations Mode, close #3487 , #3506
2020-09-24 19:29:15 +08:00
Jinzhu
5228735915
Don't build IN condition if value implemented Valuer interface, #3517
2020-09-24 15:00:13 +08:00
Jinzhu
1a526e6802
Fix NamingStrategy with embedded struct, close #3513
2020-09-24 11:32:38 +08:00
Jinzhu
d002c70cf6
Support named argument for struct
2020-09-17 21:52:41 +08:00
Jinzhu
a932175ccf
Refactor cascade delete associations
2020-09-15 14:28:26 +08:00
Jinzhu
ed1b134e1c
Fix use uint to for autoCreateTime, autoUpdateTime
2020-09-11 17:33:31 +08:00
Jinzhu
02fb382ec0
Support scan into int, string data types
2020-09-11 15:01:02 +08:00
Jinzhu
e583dfa196
Allow negative number for limit
2020-09-11 11:54:21 +08:00
Jinzhu
b8a74a80d7
Fix embedded struct with default value, close #3451
2020-09-11 11:18:54 +08:00
Jinzhu
70a7bd52ca
Support delete associations with Select when deleting
2020-09-10 21:46:18 +08:00
Jinzhu
2242ac6c0e
Fix tests & refactor for PR #3429
2020-09-09 10:31:48 +08:00
caelansar
aceb3dad3b
correct generated sql
2020-09-08 21:28:04 +08:00
Jinzhu
c70c097e88
Refactor format SQL for driver.Valuer
2020-09-08 19:11:29 +08:00
Jinzhu
c9d5c0b07a
Fix create database foreign keys for same type having has many/one & many2many relationships, close #3424
2020-09-08 18:25:29 +08:00
Jinzhu
05794298bd
Fix Save with specified table, close #3396
2020-09-06 12:22:08 +08:00
Jinzhu
d8ddccf147
Don't marshal to null for associations after preloading, close #3395
2020-09-04 19:09:51 +08:00
Jinzhu
28121d4455
Fix panic when batch creating from slice contains invalid data, close #3385
2020-09-03 20:59:41 +08:00
Jinzhu
dd0d74fad0
Fix transaction on closed conn when using prepared statement, close #3380
2020-09-03 19:16:55 +08:00
Jinzhu
3cd81ff646
Fix query with specified table and conditions, close #3382
2020-09-03 18:42:32 +08:00
Jinzhu
cf31508095
Fix tests_all.sh
2020-09-03 15:02:04 +08:00
Jinzhu
3cc7a30712
Fix tests/go.mod
2020-09-03 13:28:37 +08:00
Jinzhu
98e15e0b95
Setup DB's ConnPool in PrepareStmt mode, fix #3362
2020-09-03 12:54:26 +08:00