338 Commits

Author SHA1 Message Date
Jinzhu
a0477f94dd Allow Omit with Query, close #3165 2020-07-19 21:48:58 +08:00
Jinzhu
90183fadde Allow advanced table with args 2020-07-19 21:30:24 +08:00
Jinzhu
362779575c Fix Select with specific symbol, close #3157 2020-07-17 11:24:24 +08:00
Jinzhu
58e3241544 Fix Select with specific symbol, close #3158 2020-07-17 11:06:20 +08:00
Jinzhu
e83e210971 Update postgres DSN 2020-07-16 17:15:57 +08:00
Jinzhu
1f05cb7e55 Handle Associations with pointer of pointer, close #3130 2020-07-10 22:53:03 +08:00
Jinzhu
d4b462a351 Fix alias keyword with Table, close #3104 2020-07-10 21:11:28 +08:00
Jinzhu
33c48611b6 Fix customize table with Delete, close #3129 2020-07-10 13:08:29 +08:00
Jinzhu
c0319f6eed Test map with named argument for raw sql 2020-07-10 12:52:01 +08:00
Jinzhu
bba569af2b Add NamedArg support 2020-07-10 12:28:24 +08:00
Jinzhu
a8655f7947 Fix auto select with smaller struct for slices 2020-07-09 12:15:35 +08:00
Jinzhu
2ae0653af2 Fix ambiguous column when using same column name in join table, close #3120 2020-07-09 09:03:48 +08:00
Jinzhu
619cd332ec Add index priority supports 2020-07-08 17:59:40 +08:00
Jinzhu
de482f57ff Test raw sql with gorm.Expr 2020-07-06 15:47:33 +08:00
Jinzhu
b5725940e9 Test Select with Update Struct 2020-07-06 11:20:43 +08:00
Jinzhu
9a4941ba70 Test Order/GroupBy 2020-07-06 09:47:14 +08:00
Jinzhu
4e066c9590 Test Or 2020-07-05 12:23:45 +08:00
Jinzhu
1a2fabb34d Test Not 2020-07-05 11:56:12 +08:00
Jinzhu
2416eabd3f Change unique_idnex to UniqueIndex 2020-07-04 00:36:27 +08:00
Jinzhu
8100ac7663 Change default postgres DSN for github action 2020-07-03 09:27:24 +08:00
Jinzhu
2d945a9641 Switch pgx as default driver 2020-07-03 08:54:12 +08:00
SmallTianTian
3c03b6e527
fix no limit no offset. (#3101)
* fix no limit no offset.

* add test for playground.
2020-07-02 18:14:33 +08:00
Jinzhu
63e48191a8 Test failed to save association should rollback, close #3100 2020-07-01 21:28:19 +08:00
Jinzhu
d02b592c6c Better support Count in chain 2020-07-01 10:19:52 +08:00
Jinzhu
9075b33620 Query with smaller struct 2020-07-01 08:56:21 +08:00
Jinzhu
929c0c576c Test Hooks For Slice 2020-06-30 22:47:21 +08:00
Jinzhu
f5566288de Add SetColumn, Changed method 2020-06-30 16:53:54 +08:00
Jinzhu
9bfe306975 Only query with readable fields 2020-06-27 08:04:12 +08:00
Jinzhu
cb5a35a807 Test group with table name 2020-06-26 08:39:18 +08:00
Jinzhu
4eae3fea41 Test group by with multiple columns 2020-06-25 23:37:49 +08:00
Jinzhu
f2b49437fb Test set string field's default value to blank string 2020-06-25 22:48:10 +08:00
Jinzhu
c5feff1591 Fix go.mod 2020-06-25 08:08:37 +08:00
Jinzhu
1b28c187c0 Fix create with default value 2020-06-25 08:00:10 +08:00
Jinzhu
fb56fe993a Add default value test 2020-06-25 06:38:07 +08:00
Jinzhu
3ec7ed1d51 Upgrade default mysql driver 2020-06-24 20:19:28 +08:00
Jinzhu
8ce2dd5548 Update test script 2020-06-24 19:09:19 +08:00
Jinzhu
4a01d4c263 Create join table with ReorderModels 2020-06-24 17:19:11 +08:00
Jinzhu
67bd842645 Update tests all script 2020-06-24 14:56:04 +08:00
Jinzhu
7e1fa4a44d Fix Count after Session 2020-06-23 22:41:41 +08:00
Jinzhu
4201f7bdab Fix create unique index when creating table, close #3081 2020-06-23 22:14:41 +08:00
Hinagiku Soranoba
b733d16f56
Create supports Array / ArrayPtr (#3076)
* add Array / ArrayPtr create tests

* support create using array
2020-06-23 14:38:36 +08:00
Jinzhu
e77e7bb842 Fix nested embedded field with pointer, close #3071 2020-06-23 09:12:57 +08:00
Jinzhu
d0764bead1 Test migrate with comment and check created constraints 2020-06-21 13:59:43 +08:00
Jinzhu
fee1e4aafd Fix create foreign keys for many2many relations 2020-06-21 10:48:23 +08:00
Jinzhu
5883490aa7 Select, Omit, Preload supports clause.Associations 2020-06-20 17:21:01 +08:00
Jinzhu
a1e35bdc94 Support merge batch data some having primary values 2020-06-20 16:52:15 +08:00
Jinzhu
3d8f6f9cf9 Test GroupConditions 2020-06-20 01:55:30 +08:00
Jinzhu
4f19e2a7b3 Test ForeignKeyConstraints 2020-06-20 01:20:18 +08:00
Jinzhu
d4d339f3b5 Handle data type cases 2020-06-19 22:51:46 +08:00
Jinzhu
e3292b3b41 Test with latest driver vesion 2020-06-19 18:44:19 +08:00