Samir Faci
c2703558d7
Moving PtrOf to package internal/ptr
2024-10-06 09:04:10 -04:00
Samir Faci
99be328e9d
Replacing several test util function with a generic version
...
ChangeLog:
- updated several test utils with a generic PtrOf
- updated references using iotils (Deprecated) with os equivalent import.
2024-10-05 13:13:55 -04:00
go-jet
6a0798eb06
Merge pull request #387 from safaci2000/feature/enums
...
Adding support for enum model AllValues
2024-09-23 20:03:19 +02:00
go-jet
1c42ff1b4f
Merge pull request #389 from BranislavLazic/add-pg-date-trunc
...
Add Postgres DATE_TRUNC function
2024-09-23 19:47:33 +02:00
Branislav Lazic
dce5fd6552
Add return type switching note
2024-09-23 09:11:53 +02:00
Samir Faci
d3ce39f275
Reverting circleci docker-compose
2024-09-22 16:12:43 -04:00
Samir Faci
4f80e0d36b
Addressing Code review comments
2024-09-22 09:44:13 -04:00
Branislav Lazic
b25b2aa213
Add Postgres DATE_TRUNC function
2024-09-20 09:47:40 +02:00
Samir Faci
eb57b8003f
Migrating circleci images from legacy to update cimg namespace
2024-09-18 12:20:08 -04:00
Samir Faci
42a37c09d0
Adding support for enum model AllValues
...
Fixes #368
ChangeLog:
- Updating test mysql version as it no longer exists.
- Add a simple validation test
2024-09-18 12:16:58 -04:00
go-jet
b835e25665
Merge pull request #377 from realrunner/bug/postgres-array-detection
...
Bug/postgres array detection
2024-08-31 11:20:57 +02:00
Mike Nelson
cf08bcd6f7
spacing
2024-08-28 11:46:35 -06:00
Mike Nelson
52df659318
test
2024-08-28 11:45:44 -06:00
Mike Nelson
882b4311b5
Fix Postgres column array detection
2024-08-28 11:09:16 -06:00
go-jet
02cc2127b8
Merge pull request #374 from azdagron/add-has-default
...
Add HasDefault column metadata
2024-08-17 19:31:23 +02:00
Andrew Harding
b7904cde4e
Add HasDefault column metadata
2024-08-13 14:52:54 -06:00
go-jet
f55edafc0b
Merge pull request #367 from josephbuchma/projection-as-fix
...
fix ProjectionList{}.As method (issue #364 )
2024-07-27 11:30:20 +02:00
Yosyp Buchma
583ecba4a1
refactor: extracted common logic for column aliasing
2024-07-26 23:35:07 +02:00
Yosyp Buchma
c599fca5ea
New method: func (ColumnList) As(tableAlias string) ProjectionList
2024-07-26 14:10:20 +02:00
Yosyp Buchma
fb66fbd31c
fix ProjectionList{}.As method (issue #364 )
2024-07-26 14:10:20 +02:00
go-jet
f37af464f4
Merge pull request #340 from go-jet/dependabot/go_modules/github.com/go-sql-driver/mysql-1.8.1
...
Bump github.com/go-sql-driver/mysql from 1.8.0 to 1.8.1
2024-07-26 13:53:22 +02:00
go-jet
df548e69b6
Merge pull request #361 from mathieuk/chore/export-serializer
...
feat: export CustomExpression and Token for dialects to use
2024-07-14 13:14:58 +02:00
Mathieu Kooiman
6cabfcdc1a
feat: expose CustomExpression+Token in mysql/postgres/sqlite
2024-07-13 17:10:26 +02:00
Mathieu Kooiman
3ec0e2cabd
refactor: NewCustomExpression -> CustomExpression
2024-07-13 17:04:33 +02:00
Mathieu Kooiman
f48970d124
refactor: expose NewCustomExpression for dialects to use
2024-07-12 14:09:17 +02:00
go-jet
093f895db2
Fix failing test.
2024-07-03 11:56:59 +02:00
go-jet
7b4a060da0
Merge pull request #344 from go-jet/dependabot/go_modules/github.com/shopspring/decimal-1.4.0
...
Bump github.com/shopspring/decimal from 1.3.1 to 1.4.0
2024-07-03 11:38:37 +02:00
dependabot[bot]
172a822d96
Bump github.com/shopspring/decimal from 1.3.1 to 1.4.0
...
Bumps [github.com/shopspring/decimal](https://github.com/shopspring/decimal ) from 1.3.1 to 1.4.0.
- [Release notes](https://github.com/shopspring/decimal/releases )
- [Changelog](https://github.com/shopspring/decimal/blob/master/CHANGELOG.md )
- [Commits](https://github.com/shopspring/decimal/compare/v1.3.1...v1.4.0 )
---
updated-dependencies:
- dependency-name: github.com/shopspring/decimal
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-04-12 21:16:21 +00:00
go-jet
b13f6ab08d
Merge pull request #339 from kblomster/expose-binary-operator
...
Export BinaryOperator function
2024-03-28 18:04:01 +01:00
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
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