Commit graph

866 commits

Author SHA1 Message Date
go-jet
73d7e4823c Update test. 2023-04-14 12:13:09 +02:00
go-jet
14bd3b6c3b Fix for bug226.
Add struct fieldName to groupKey to have a unique groupKey for each field object.
2023-04-13 10:46:46 +02:00
go-jet
c7962aba71 Add bug226 test. 2023-04-10 20:14:55 +02:00
go-jet
b520a61b6e Test clean up.
Upgrade dependencies.
2023-04-06 11:26:09 +02:00
go-jet
ebfaa62e93 Update tests for the same enum in two different schema. 2023-04-04 12:36:22 +02:00
go-jet
9cf1205acf Update tests for the same enum in two different schema. 2023-04-04 12:35:50 +02:00
go-jet
5e34bef288 Add more UseSchema tests.
Rename newly generated file to avoid potentional conflict with tables named table or views named view.
2023-04-02 13:58:44 +02:00
go-jet
a9aa25416a Test data update. 2023-03-31 14:50:01 +02:00
go-jet
7b36f31cad Include mysql column comments into generated types 2023-03-31 14:43:47 +02:00
go-jet
fa69565dbf Add support for postgres GROUPING SET, ROLLUP and CUBE grouping operators
Add support for mysql WITH ROLLUP grouping operator
Add support for GROUPING operator
2023-03-28 13:16:57 +02:00
go-jet
31dc7b6dd3
Merge pull request #201 from go-jet/dependabot/go_modules/github.com/google/go-cmp-0.5.9
Bump github.com/google/go-cmp from 0.5.8 to 0.5.9
2023-02-10 22:38:58 +01:00
go-jet
ccf45b4fb5
Merge pull request #202 from go-jet/dependabot/go_modules/github.com/stretchr/testify-1.8.1
Bump github.com/stretchr/testify from 1.8.0 to 1.8.1
2023-02-03 17:58:52 +01:00
go-jet
ec3adb3d88
Merge pull request #210 from rangzen/fix-postgres-mutablecolumns-isgenerated
fix generated columns in mutable columns for PostgreSQL
2023-02-01 18:42:35 +01:00
Cedric L'homme
2f10233420 Update testdata 2023-02-01 12:33:51 -05:00
Cedric L'homme
33e86cd04b Fix constant in CockroachDB 2023-02-01 12:33:25 -05:00
Cedric L'homme
5d84197a87 Update submodule jet-test-data 2023-01-31 13:07:36 -05:00
Cedric L'homme
a1088ead17 Move back to test_sample 2023-01-30 15:01:08 -05:00
Cedric L'homme
a4191b4953 fix generated columns in mutable columns for PostgreSQL
Fix https://github.com/go-jet/jet/issues/209.
2023-01-30 10:42:06 -05:00
go-jet
ce3c622fa4
Merge pull request #207 from go-jet/dependabot/go_modules/github.com/lib/pq-1.10.7
Bump github.com/lib/pq from 1.10.5 to 1.10.7
2023-01-24 18:08:12 +01:00
dependabot[bot]
46c8bfcdce
Bump github.com/stretchr/testify from 1.8.0 to 1.8.1
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.8.0 to 1.8.1.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](https://github.com/stretchr/testify/compare/v1.8.0...v1.8.1)

---
updated-dependencies:
- dependency-name: github.com/stretchr/testify
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-22 16:33:06 +00:00
dependabot[bot]
78e7e8904c
Bump github.com/google/go-cmp from 0.5.8 to 0.5.9
Bumps [github.com/google/go-cmp](https://github.com/google/go-cmp) from 0.5.8 to 0.5.9.
- [Release notes](https://github.com/google/go-cmp/releases)
- [Commits](https://github.com/google/go-cmp/compare/v0.5.8...v0.5.9)

---
updated-dependencies:
- dependency-name: github.com/google/go-cmp
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-22 16:32:57 +00:00
go-jet
a389daf005
Merge pull request #203 from go-jet/dependabot/go_modules/github.com/pkg/profile-1.7.0
Bump github.com/pkg/profile from 1.6.0 to 1.7.0
2023-01-22 17:32:12 +01:00
dependabot[bot]
32c12926f9
Bump github.com/lib/pq from 1.10.5 to 1.10.7
Bumps [github.com/lib/pq](https://github.com/lib/pq) from 1.10.5 to 1.10.7.
- [Release notes](https://github.com/lib/pq/releases)
- [Commits](https://github.com/lib/pq/compare/v1.10.5...v1.10.7)

---
updated-dependencies:
- dependency-name: github.com/lib/pq
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-17 21:08:30 +00:00
dependabot[bot]
fd6daeef70
Bump github.com/pkg/profile from 1.6.0 to 1.7.0
Bumps [github.com/pkg/profile](https://github.com/pkg/profile) from 1.6.0 to 1.7.0.
- [Release notes](https://github.com/pkg/profile/releases)
- [Commits](https://github.com/pkg/profile/compare/v1.6.0...v1.7.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-17 17:59:48 +00:00
go-jet
8be2f8b9c3 Update mysql driver to v1.7.0 2023-01-17 18:50:09 +01:00
go-jet
82442967ac Update README.md. 2023-01-17 18:45:20 +01:00
go-jet
48b4725375 Update go-sqlite3 to version v1.14.16 2023-01-17 18:41:04 +01:00
go-jet
ec2fa3cb93
Merge pull request #174 from go-jet/dependabot/go_modules/github.com/jackc/pgx/v4-4.17.2
Bump github.com/jackc/pgx/v4 from 4.16.0 to 4.17.2
2022-12-19 12:27:43 +01:00
dependabot[bot]
e197530036
Bump github.com/jackc/pgx/v4 from 4.16.0 to 4.17.2
Bumps [github.com/jackc/pgx/v4](https://github.com/jackc/pgx) from 4.16.0 to 4.17.2.
- [Release notes](https://github.com/jackc/pgx/releases)
- [Changelog](https://github.com/jackc/pgx/blob/master/CHANGELOG.md)
- [Commits](https://github.com/jackc/pgx/compare/v4.16.0...v4.17.2)

---
updated-dependencies:
- dependency-name: github.com/jackc/pgx/v4
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-17 18:56:45 +00:00
go-jet
88f4935681
Merge pull request #156 from go-jet/dependabot/go_modules/github.com/google/uuid-1.3.0
Bump github.com/google/uuid from 1.1.1 to 1.3.0
2022-12-17 19:55:59 +01:00
go-jet
b80fb5df94
Merge pull request #197 from emarj/custom-types-indexes-pk
Allow custom types as indexes when joining tables
2022-12-17 19:49:52 +01:00
Marco Ronchese
31cddca786 add additional test 2022-12-17 17:21:46 +01:00
Marco Ronchese
68dbbabb99 fixing test 2022-12-17 17:19:34 +01:00
Marco Ronchese
78ed3fdb13 adding test and cleaning up 2022-12-16 23:17:26 +01:00
Marco Ronchese
192826c456 allow custom types as indexes when joining tables 2022-12-16 13:09:46 +01:00
go-jet
4873e43cc5
Merge pull request #194 from realbucksavage/master
Added a global `UseSchema` method to table generation
2022-12-06 11:37:18 +01:00
Jay
9185bb8a76 added order by table_name clause to mysql and postgres query sets 2022-12-05 22:45:45 +05:30
Jay
1bf48d640a Renamed generated schema func to UseSchema. 2022-12-05 17:26:52 +05:30
Jay
04c1a51ba7 Changed SetSchema to UseSchema 2022-12-04 20:33:55 +05:30
Jay
3f9ae1cabb Removed unnecessary EnsureDirPath call 2022-12-04 20:22:07 +05:30
Jay
7db99b10bc Made 'SetSchema' to be generated in a dedicated file for views and tables. 2022-12-02 23:02:44 +05:30
go-jet
c5e3d1ee75
Merge pull request #195 from masterkidan/master
fix: Updating query for types to the target namespace
2022-12-02 16:38:11 +01:00
Mukundan Kidambi
b22ab17b38
fix: Updating query for types to the target namespace 2022-12-02 01:32:14 -08:00
Jay
199bb2a20a corrected 'skip table generation' check 2022-12-01 22:28:28 +05:30
Jay
bda94469ea Corrected an issue where skipping any table skips SetSchema 2022-12-01 17:46:14 +05:30
Jay
882d5562f3 added a check for skipping generation of table SQL builder code 2022-12-01 15:15:35 +05:30
Jay
a792fe6e0a Renamed generated SetSchema to Set<SchemaName>Schema 2022-12-01 12:48:28 +05:30
Jay
471499ea00 Added a global method to table generation (#79) 2022-12-01 11:54:14 +05:30
go-jet
c9e627d333
Merge pull request #184 from yngfoxx/patch-1
Potential security flaw
2022-10-25 12:03:09 +02:00
Stephen Osunrinde
db6ad04024 Removed dsn from generator 2022-10-25 10:53:35 +01:00