Commit graph

893 commits

Author SHA1 Message Date
dependabot[bot]
523f780b02
Bump github.com/go-sql-driver/mysql from 1.8.0 to 1.8.1
Bumps [github.com/go-sql-driver/mysql](https://github.com/go-sql-driver/mysql) from 1.8.0 to 1.8.1.
- [Release notes](https://github.com/go-sql-driver/mysql/releases)
- [Changelog](https://github.com/go-sql-driver/mysql/blob/v1.8.1/CHANGELOG.md)
- [Commits](https://github.com/go-sql-driver/mysql/compare/v1.8.0...v1.8.1)

---
updated-dependencies:
- dependency-name: github.com/go-sql-driver/mysql
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-26 21:49:42 +00:00
Karl Blomster
1d310624d8
Export BinaryOperator function 2024-03-26 15:49:17 +01:00
go-jet
1fd423bf8b Update dependencies. 2024-03-24 13:25:08 +01:00
go-jet
c6fccc3348 Update dependencies. 2024-03-24 13:12:07 +01:00
go-jet
39de87671e Additional tests for 'ON CONFLICT DO NOTHING without conflict target does not appear in generated SQL' bug. 2024-03-24 13:02:23 +01:00
go-jet
60d8f15513
Merge pull request #335 from BillBuilt/on-conflict-do-nothing-without-conflict-target
ON CONFLICT DO NOTHING without a conflict target is valid SQL
2024-03-24 12:41:35 +01:00
bill matlock
0d250f5b41 ON CONFLICT DO NOTHING without a conflict target is valid SQL as far as Postgres is concerned. 2024-03-18 16:38:28 -04:00
go-jet
0918e5503e Add support for prepared statement caching. 2024-03-07 18:01:31 +01:00
go-jet
1b63280b74 Skip UUID_TO_BIN test for MariaDB. 2024-02-27 11:23:34 +01:00
go-jet
16d0e57441 Add UUID_TO_BIN integration test. 2024-02-27 11:11:37 +01:00
go-jet
4094029bfb Skip range test for cockroachdb. 2024-02-27 10:58:21 +01:00
go-jet
43fc77ba99 Range expression update
* Add Int4 and Int8 integer expression to distinguish int4range and int8range types
* Add range functions to range expressions to avoid go template appearing in sql
* Compact range integration tests and add range update tests
2024-02-27 10:48:57 +01:00
go-jet
9d45aaaba5
Merge pull request #327 from go-jet/dependabot/go_modules/golang.org/x/crypto-0.17.0
Bump golang.org/x/crypto from 0.6.0 to 0.17.0
2024-02-26 11:56:26 +01:00
dependabot[bot]
084f62a475
Bump golang.org/x/crypto from 0.6.0 to 0.17.0
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.6.0 to 0.17.0.
- [Commits](https://github.com/golang/crypto/compare/v0.6.0...v0.17.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-02-26 10:52:25 +00:00
go-jet
55ed439358 Update Readme. 2024-02-26 11:40:23 +01:00
go-jet
7b9a60876e Lower go.mod version. 2024-02-26 11:35:54 +01:00
go-jet
f9f82680fe
Merge pull request #307 from ag5/feature/daterange
Feature/daterange
2024-02-26 11:29:21 +01:00
Sarkan
893567daca
Range types implemented
plus and minus infinity keyword tests implemented

range table tests added

skip cockroach db added

select test case added for range fields

generator modified to generate correct types

generator tests modified to include sample range table

model and template generators modified to support range fields

returning the T in UPPER and LOWER functions

raw ranges implemented

bounds set as optional

dep modified

dependencies modified and issue fixed

range expression with templates implemented

rangeExpression change to make it more type safe

third parameter of constructor function fixed

literals removed, functions added

tests modified

constructor functions used for creating range expressions

NumRange converted to a constructor function from literal

range_lower and range_upper renamed to lower_bound and upper_bound

range literal removed

PlusInfinity and MinusInfinity implemented

int4 and int8 castings added

issues fixed and tests checked

number, ts, tstz literal and cast implemented

date range literal expression modified and raw function used

parent type converted from RangeExpression to Expression

range type implemented for postgres

range column type, function and literal expression implemented

CONTAINS and OVERLAP operations added for range expressions

range expressions implemented
2024-02-25 01:20:36 +01:00
go-jet
a9cbf94d68
Merge pull request #325 from realbucksavage/master
mysql: added a helper to compare UUID strings with uuid_to_bin
2024-02-23 17:27:00 +01:00
Jay
33ec120437 replaced the UUIDToBin functions with a singular UUID_TO_BIN 2024-02-22 17:23:14 +05:30
Jay
09fe45b09c mysql: added a helper to compare UUID strings with uuid_to_bin 2024-02-20 23:56:11 +05:30
go-jet
493d3a4a25
Merge pull request #309 from jupp0r/feature/optimize-mysql-generator-performance
Improve performance of mysql generator
2024-02-19 11:33:57 +01:00
Jupp Mueller
bffec36917
Improve performance of mysql generator
This change improves performance for generating mysql models
for databases with large number of tables. In my local testing
for a database with about 1000 tables and 140k columns, generation
time was reduced from about 1h to less than one second.
2024-02-17 05:35:56 -08:00
go-jet
61841dcfbe
Merge pull request #316 from go-jet/dependabot/go_modules/github.com/google/uuid-1.6.0
Bump github.com/google/uuid from 1.3.0 to 1.6.0
2024-02-17 13:06:10 +01:00
go-jet
6b098b8e41 Replace invalid character from the go identifiers with description string. 2024-02-17 12:46:00 +01:00
go-jet
255f4a8eaf Add support for expression in OFFSET clause. 2024-02-13 14:01:13 +01:00
go-jet
dab153a739 Add support for NULLS_FIRST and NULLS_LAST sorting order. 2024-02-10 14:03:31 +01:00
dependabot[bot]
12faa55c52
Bump github.com/google/uuid from 1.3.0 to 1.6.0
Bumps [github.com/google/uuid](https://github.com/google/uuid) from 1.3.0 to 1.6.0.
- [Release notes](https://github.com/google/uuid/releases)
- [Changelog](https://github.com/google/uuid/blob/master/CHANGELOG.md)
- [Commits](https://github.com/google/uuid/compare/v1.3.0...v1.6.0)

---
updated-dependencies:
- dependency-name: github.com/google/uuid
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-02-07 21:22:43 +00:00
go-jet
0fc51cf402
Merge pull request #230 from go-jet/dependabot/go_modules/github.com/go-sql-driver/mysql-1.7.1
Bump github.com/go-sql-driver/mysql from 1.7.0 to 1.7.1
2024-02-07 11:28:19 +01:00
go-jet
f5f744a884
Merge pull request #253 from go-jet/dependabot/go_modules/github.com/jackc/pgconn-1.14.1
Bump github.com/jackc/pgconn from 1.14.0 to 1.14.1
2024-02-07 11:27:49 +01:00
go-jet
a46f5c1bd6 Update circle.ci postgres image. 2024-02-07 11:18:29 +01:00
go-jet
c19b3e7ae1 Update circle.ci postgres image. 2024-02-07 11:15:36 +01:00
go-jet
e51ddd5506 Add support for FETCH FIRST clause. 2024-02-07 11:07:50 +01:00
go-jet
e03773a79e Update README.md 2024-02-05 11:33:26 +01:00
go-jet
44e1b7f4d9 Fix circle.ci 2024-02-04 18:59:43 +01:00
go-jet
64ad9de99e Fix circle.ci 2024-02-04 18:56:37 +01:00
go-jet
2eaa75345c [sqlite] Generated columns additional tests. 2024-02-04 18:45:48 +01:00
go-jet
71fb1c7cd1 Add support for sqlite generated columns. 2024-02-04 18:35:26 +01:00
go-jet
23cb5dcfbc Set status code if tests init command fails. 2024-02-01 17:46:11 +01:00
go-jet
1cbbf495db Update circle.ci config. 2024-02-01 17:36:12 +01:00
go-jet
7f48e9fb67 Add support for materialized views. 2024-02-01 15:20:49 +01:00
go-jet
b6d57075e8 Additional tests for row lock UPDATE OF use case. 2024-02-01 14:43:12 +01:00
go-jet
5cbaa90992
Merge pull request #288 from mattdowdell/rowlock-of
Add support for OF in row lock clauses
2023-12-01 12:37:40 +01:00
Matthew Dowdell
f16f0b5e5d Add support for OF in row lock clauses
This adds support for statements such as `SELECT ... FOR UPDATE OF table NOWAIT` where `OF table`
could not be specified previously. Fixes #285.
2023-11-30 07:52:54 +00:00
go-jet
6a13530ec1
Merge pull request #274 from josephbuchma/faster-mysql-db-info-querying
10x mysql db info querying speedup
2023-09-20 19:16:47 +02:00
Yosyp Buchma
dd8d043cb8 moved mysql connection pool config to openConection func 2023-09-20 13:13:50 +03:00
Yosyp Buchma
f472becd89 simplified concurrent querying 2023-09-19 20:56:54 +03:00
Yosyp Buchma
ffabf8b26e coalesce pk.IsPrimaryKey 2023-09-19 20:56:21 +03:00
Yosyp Buchma
98dfce2ae5 Concurrent GetTableColumnsMetaData for MySQL 2023-09-18 17:48:35 +03:00
Yosyp Buchma
db808f136b Faster MySQL GetTableColumnsMetaData query 2023-09-18 17:35:11 +03:00