Jinzhu
1546f8a4a1
Test CreateWithNoGORMPrimayKey
2020-05-31 12:52:49 +08:00
Jinzhu
1e7eb12cba
Test empty struct
2020-05-31 11:19:45 +08:00
Jinzhu
536e4d34b0
Add test for AlterColumn
2020-05-31 11:01:06 +08:00
Jinzhu
d81179557d
Add tests for Tables
2020-05-31 10:24:49 +08:00
Jinzhu
24285060d5
Fix RenameColumn for mssql, DropColumn for sqlite
2020-05-31 09:03:51 +08:00
Jinzhu
58bc0f51c1
Fix mssql rename index, has column
2020-05-31 07:57:13 +08:00
Jinzhu
2b56fa0472
Fix Scanner tests on mssql
2020-05-31 01:21:16 +08:00
Jinzhu
7b6b9c4d22
Add tests for Columns
2020-05-31 00:42:52 +08:00
Jinzhu
7c0de9199c
Test Migrate Indexes
2020-05-30 22:43:41 +08:00
Jinzhu
028c9d6e17
Test Updates
2020-05-30 17:01:28 +08:00
Jinzhu
05e1af3bfb
Test Upsert
2020-05-30 14:28:42 +08:00
Jinzhu
cc07ee0444
Support mssql merge
2020-05-30 13:22:15 +08:00
Jinzhu
c07a08d88b
Support mssql
2020-05-30 10:50:56 +08:00
Jinzhu
d05128be78
OnConflict support for mysql
2020-05-29 22:34:35 +08:00
Jinzhu
a992c1ea38
Fix check has column, index for sqlite
2020-04-12 13:22:52 +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
1403ee70c3
Make Query works
2020-03-03 14:18:12 +08:00
Jinzhu
bc5ceff82f
Explain SQL for dialects
2020-02-23 12:41:13 +08:00
Jinzhu
a67be2a1f1
Refactor reorder migrator models
2020-02-23 08:54:13 +08:00
Jinzhu
1d803dfdd9
Add migrator tests for mssql
2020-02-23 01:02:07 +08:00
Jinzhu
ce84e82c9e
Add migrator tests for postgres
2020-02-23 00:40:06 +08:00
Jinzhu
1895d281bf
Add migrator tests for mysql
2020-02-22 23:08:20 +08:00
Jinzhu
6d58b62fd4
Add sqlite migration tests
2020-02-22 20:57:29 +08:00
Jinzhu
215f5e7765
Add Raw, Row, Rows
2020-02-22 19:41:01 +08:00
Jinzhu
fab7d96da5
Add DataTypeOf for dialector
2020-02-22 17:53:57 +08:00
Jinzhu
98ad29f2c2
Add Selects, Omits for statement
2020-02-16 13:45:27 +08:00
Jinzhu
0160bab7dc
Add clause tests
2020-02-05 18:28:58 +08:00
Jinzhu
d52ee0aa44
Work on create callbacks
2020-02-03 10:40:03 +08:00
Jinzhu
728c0d4470
Add callbacks
2020-02-02 20:05:10 +08:00
Jinzhu
d833efe8b9
Work on clauses
2020-02-02 19:11:17 +08:00
Jinzhu
8cb15cadde
Improve test structure
2020-02-02 08:35:01 +08:00
Jinzhu
f0d514e330
Cleanup
2020-01-28 16:22:07 +08:00
jaden
79a77d771d
go.mod: remove unnecessary dependences through upgrade go-mssqldb ( #2795 )
...
* go.mod: remove unnecessary dependences through upgrade go-mssqldb
$ go get -v -u github.com/denisenkom/go-mssqldb && go mod tidy -v
go: finding github.com/denisenkom/go-mssqldb latest
go: finding github.com/golang-sql/civil latest
go: finding golang.org/x/crypto latest
unused cloud.google.com/go
unused gopkg.in/check.v1
unused gopkg.in/yaml.v2
* mssql: use SCOPE_IDENTITY() if OUTPUT not possible
* go-mssqldb: find a up-to-date version pass test -race
2019-12-06 22:22:28 +08:00
Jinzhu
11e2819f44
Extract parseInt
2019-12-05 23:13:54 +08:00
zaneli
23f6840776
Add limit and offset parse error
2019-11-27 11:21:05 +09:00
Alex Stockwell
820b5f244a
MSSQL Create() fix: Add LastInsertIDReturningSuffix to dialect ( #2690 )
...
* MSSQL Create() fix: Add LastInsertIDReturningSuffix to dialect
Per https://github.com/denisenkom/go-mssqldb/issues/355
* MSSQL Create() fix: Added OUTPUT query to Create() builder
2019-10-17 22:54:11 +08:00
Christian Muehlhaeuser
0c98e7d712
Fixed import formatting to match goimports ( #2568 )
2019-09-12 22:17:31 +08:00
zaneli
09a868b381
Handle syntax to specify an index prefix length
2019-04-20 01:04:23 +09:00
Eyal Posener
123d4f50ef
lock TagSettings structure when modified ( #1796 )
...
The map is modified in different places in the code which results in race conditions
on execution.
This commit locks the map with read-write lock when it is modified
2018-09-10 07:11:00 +08:00
Louis Brauer
dbb25e9487
Adding json type for mssql dialect, similar to postgres.Jsonb ( #1934 )
...
* Adding json type for mssql dialect, similar to postgres.Jsonb
* Adding proper comments
2018-07-27 07:30:57 +08:00
ia
1907bff373
all: gofmt ( #1956 )
...
Run standard gofmt command on project root.
- go version go1.10.3 darwin/amd64
Signed-off-by: ia <isaac.ardis@gmail.com>
2018-06-25 13:06:58 +08:00
Olga Kleitsa
82eb9f8a5b
included actual sql query to discover fi foreign key with the same name exists in a specific table of the database in use ( #1896 )
2018-05-12 01:29:00 -05:00
Jinzhu
3b2c4b3608
Fix insert with default value for mysql
2018-02-12 17:39:34 +08:00