Commit Graph

1762 Commits

Author SHA1 Message Date
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 0801cdf164 Almost finish Migrator 2020-02-22 13:11:54 +08:00
Jinzhu 0be4817ff9 Finish CreateConstraint 2020-02-22 11:15:51 +08:00
Jinzhu ea0b13f7a3 Refactor ParseTagSetting 2020-02-22 07:59:09 +08:00
Jinzhu ad419855e9 Parse Indexes 2020-02-21 23:51:38 +08:00
Jinzhu 62dcd7896a Add Migrator 2020-02-20 23:04:03 +08:00
Jinzhu 43ce0b8af2 Handle create with default db values 2020-02-20 10:13:26 +08:00
Jinzhu 15ce5b3cdd Add create value converter 2020-02-20 10:12:10 +08:00
Jinzhu cbbf8f3d49 Update schema 2020-02-18 22:56:37 +08:00
Jinzhu 98ad29f2c2 Add Selects, Omits for statement 2020-02-16 13:45:27 +08:00
Jinzhu 18236fa3d7 Add more tests for setter, valuer 2020-02-16 00:37:59 +08:00
Jinzhu faee069a9f Test Field Valuer, Setter 2020-02-15 20:28:03 +08:00
Jinzhu 2cb88dc7c5 Add Field Valuer, Setter 2020-02-15 18:24:37 +08:00
Jinzhu c1afe19728 Add benchmark tests for clause 2020-02-14 00:09:44 +08:00
Jinzhu 1f38ec4410 Finish clauses tests 2020-02-08 23:23:45 +08:00
Jinzhu 0160bab7dc Add clause tests 2020-02-05 18:28:58 +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 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 3cbd233758 Add more tests for parse schema relations 2020-02-02 00:03:56 +08:00
Jinzhu a4a0895a85 Test parse schema relations 2020-02-01 22:26:17 +08:00
Jinzhu 14724ddeae Add tests model definition and basic fields tests 2020-02-01 20:18:32 +08:00
Jinzhu fd9b688084 Implement parse many2many relation 2020-02-01 18:02:19 +08:00
Jinzhu a9c20291e4 Implement guess relation 2020-02-01 15:23:45 +08:00
Jinzhu eea78f3f30 Implement parse relationship architecture 2020-02-01 12:46:52 +08:00
Jinzhu 010dc7e6dd Add namer when generate schema 2020-01-31 14:31:15 +08:00
Jinzhu bc68fde6aa Implement naming strategy 2020-01-31 14:17:02 +08:00
Jinzhu 1079e17caf Implement schema parser 2020-01-31 12:46:16 +08:00
Jinzhu 5959c81be6 Refactor callbacks 2020-01-31 08:44:45 +08:00
Jinzhu e509b3100d Implement callbacks 2020-01-31 06:35:25 +08:00
Jinzhu 9d5b9834d9 Refactor builder 2020-01-30 19:47:00 +08:00
Jinzhu 85bfd175c6 Implement build conditions 2020-01-30 03:03:06 +08:00
Jinzhu b9cce2be6a Add clause, DB API, model definition 2020-01-29 19:22:44 +08:00
Jinzhu 8eae7e4ab9 Add migrator 2020-01-28 23:01:35 +08:00
Jinzhu f0d514e330 Cleanup 2020-01-28 16:22:07 +08:00
Mike Zuev 7180bd0f27 updated go-sql-driver package (#2859) 2020-01-26 23:28:32 +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
misko f616ccd397 1. fix bug : https://github.com/jinzhu/gorm/issues/2700 2019-12-06 11:38:08 +08:00
Dozer 9d2b65f8c9 add query hint support (#2351)
* add query hint support

* remove add extra space

* add test and fix bug

* fix ut

* fix ut
2019-12-06 09:16:51 +08:00
Jinzhu 5490a87fe9 Should use global NowFunc when trace SQL 2019-12-06 00:01:40 +08:00
Jinzhu 11e2819f44 Extract parseInt 2019-12-05 23:13:54 +08:00
Jinzhu 0f387db5b8
Merge branch 'master' into add-limit-offset-parse-error 2019-12-05 23:00:21 +08:00
Shunsuke Otani e8c07b5531 Set nopLogger to DefaultCallback for avoid nil pointer dereference (#2742) 2019-12-05 22:57:15 +08:00
贾一饼 0aba7ff3a0 Beautify callback log output (#2749) 2019-12-05 18:26:16 +08:00
Jinzhu 376a7290d0 Merge branch 'thomas-tacquet-master' 2019-12-05 18:08:59 +08:00
Thomas Tacquet 32ec5c04a6 bump go-sqlite3 to v1.12.0 to fix go1.13 issues 2019-12-05 18:05:31 +08:00