73 Commits

Author SHA1 Message Date
Jim Lambert
8223ec445e rename since oracle syntax for sql will never properly validate via sqlint and it will cause false postitive build errors 2020-02-20 07:13:04 -05:00
Jim Lambert
d959159ccf setup gorm schema with privs 2020-02-19 20:49:10 -05:00
Jim Lambert
1051d5502f container build for gorm tests 2020-02-19 20:48:51 -05:00
Jim Lambert
f179e00fcb the instantclient 2020-02-19 20:46:08 -05:00
Jim Lambert
e0d680e011 connection pooling for Ci/CD to wait for oracle to startup... 2020-02-19 20:45:46 -05:00
Jim Lambert
bfd8913892 zipping for space 2020-02-19 08:38:39 -05:00
Jim Lambert
c59387a25a ora instant clients 2020-02-18 16:09:54 -05:00
Jim Lambert
1814f51e0d not needed 2020-02-18 16:09:37 -05:00
Jim Lambert
ef74f2c46e updated for codacy requirements 2020-02-18 11:04:07 -05:00
Jim Lambert
7ee4ea18a8 updated for codacy requirements 2020-02-18 08:02:38 -05:00
Jim Lambert
dea5ee724a refactored/moved into dialect_oracommon.go 2020-02-16 11:36:10 -05:00
Jim Lambert
545a171442 refactored most of the implemenation into OraCommon for embedding by other driver dialects 2020-02-16 11:35:28 -05:00
Jim Lambert
6a35b8fe6e rewrite using OraDialect to describe last inserted id differences 2020-02-15 16:13:31 -05:00
Jim Lambert
6e3204e9f8 rewrite using OraDialect to describe last inserted id differences 2020-02-15 16:13:13 -05:00
Jim Lambert
73d9a67b12 clean up: check error on scan and force compile check that oci8 implements the Dialect interface 2020-02-14 16:49:36 -05:00
Jim Lambert
53225196f4 document the use of CGO 2020-02-14 15:23:26 -05:00
Jim Lambert
fcf28d130a remove dep on matryer/is 2020-02-14 15:21:45 -05:00
Jim Lambert
689be5853e really basic test for the dialect 2020-02-14 15:12:59 -05:00
Jim Lambert
665549e1bc some how-to and why documentation 2020-02-14 15:12:39 -05:00
Jim Lambert
3f9a0298ab usage comment 2020-02-14 10:22:36 -05:00
Jim Lambert
422d37cfb7 changed package name to oci8 - just to skip the whole trademark thing 2020-02-14 10:18:09 -05:00
Jim Lambert
4d4f90d684 Revert "updated list of reserved words"
This reverts commit b126f0ab130941805e7bf534285c922af736edfa.
2020-02-14 09:40:21 -05:00
Jim Lambert
fe0ca50a57 properly handle fields of type 'text' and better handling of numeric type definitions 2020-02-14 09:39:29 -05:00
Jim Lambert
b126f0ab13 updated list of reserved words 2020-02-14 09:39:11 -05:00
Jim Lambert
d3ff7b40bb just mov funcs to top of file 2020-02-13 21:44:40 -05:00
Jim Lambert
42cc290cbd changed package name and a bunch of defect fixes 2020-02-13 21:29:38 -05:00
Jim Lambert
94020a2d29 better name 2020-02-13 21:28:34 -05:00
Jim Lambert
75e26884ef updated list 2020-02-13 21:28:18 -05:00
Jim Lambert
6ce772b948 better name 2020-02-13 21:28:07 -05:00
Jim Lambert
1ca41cc8b5 support quoting reserved words 2020-02-13 07:38:20 -05:00
Jim Lambert
de34a5f3a2 clean up types and deadcode 2020-02-12 14:44:04 -05:00
Jim Lambert
57dda4b080 clean up print stmts 2020-02-12 12:05:24 -05:00
Jim Lambert
b83dc38af2 fix foreign key stuff 2020-02-12 12:01:11 -05:00
Jim Lambert
4061744821 first attempt at a working dialect 2020-02-12 10:32:05 -05:00
Jim Lambert
2f2cc37ccc support for oracle 2020-02-11 11:00:21 -05: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
Giuseppe
706b8f55da Use brackets for quoting (#1736) 2018-02-10 12:28:01 +08:00
Jinzhu
ae509ab237 Port AUTO_INCREMENT false support to mssql 2018-02-10 08:30:05 +08:00
Jinzhu
89a726ce5d Move ModifyColumn implemention to Dialect 2018-02-09 22:58:34 +08:00
daisy1754
38f96c6514 Add handling for empty Jsonb to fix #1649 (#1650) 2018-02-09 21:59:33 +08:00