Commit graph

833 commits

Author SHA1 Message Date
go-jet
46ed317907
Merge pull request #134 from go-jet/dependabot/go_modules/github.com/lib/pq-1.10.5
Bump github.com/lib/pq from 1.7.0 to 1.10.5
2022-05-05 11:35:38 +02:00
go-jet
4f2b63923c
Merge pull request #131 from go-jet/dependabot/go_modules/github.com/google/go-cmp-0.5.7
Bump github.com/google/go-cmp from 0.5.0 to 0.5.7
2022-04-24 17:30:47 +02:00
go-jet
3ff9241eea
Merge pull request #138 from nkonin/fix/dsn-ignore-tables
fix -ignore-tables, -ignore-enums and -ignore-views when -dsn is present
2022-04-14 10:52:30 +02:00
Nikita Konin
971e2df442 fix -ignore-tables, -ignore-enums and -ignore-views when -dsn is present 2022-04-13 20:47:56 +03:00
go-jet
f17d05e823
Create codeql-analysis.yml 2022-04-10 11:52:50 +02:00
dependabot[bot]
9ac8ebdb99
Bump github.com/lib/pq from 1.7.0 to 1.10.5
Bumps [github.com/lib/pq](https://github.com/lib/pq) from 1.7.0 to 1.10.5.
- [Release notes](https://github.com/lib/pq/releases)
- [Commits](https://github.com/lib/pq/compare/v1.7.0...v1.10.5)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-10 09:43:48 +00:00
dependabot[bot]
192efa3436
Bump github.com/google/go-cmp from 0.5.0 to 0.5.7
Bumps [github.com/google/go-cmp](https://github.com/google/go-cmp) from 0.5.0 to 0.5.7.
- [Release notes](https://github.com/google/go-cmp/releases)
- [Commits](https://github.com/google/go-cmp/compare/v0.5.0...v0.5.7)

---
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>
2022-04-10 09:43:26 +00:00
go-jet
3d6d65fb77
Create dependabot.yml 2022-04-10 11:42:59 +02:00
go-jet
47a554d771
Merge pull request #126 from fourdim/tenant
Add table prefix and suffix for multi-tenant environment support
2022-03-18 11:42:32 +01:00
fourdim
3aca063d57 Update generator tests 2022-03-18 11:18:22 +08:00
fourdim
87cc6c9e93 add table prefix and suffix for multi-tenant environment support
This closes #125.
2022-03-16 22:47:34 +08:00
go-jet
c29f0afd2b
Merge pull request #120 from go-jet/develop
Release 2.7.1
2022-02-14 12:54:08 +01:00
go-jet
9f91fd705a Global AND and OR functions for better indentation of a complex condition in the Go code and in the generated SQL. 2022-02-11 13:09:49 +01:00
go-jet
8ffbe38993 Update Readme. 2022-02-11 12:49:54 +01:00
go-jet
dc557390b0 Test fix. 2022-02-09 13:49:37 +01:00
go-jet
c86903fd1d Additional scan performance improvements
Move typeStack to ScanContext, so it is shared between rows.Scan calls.
Use string.Builder for string concatenations.
Simplify value assign logic.
Move convert value to the last assign step (needs for type conversions are rare).
2022-02-09 12:34:10 +01:00
go-jet
c10244aeab Improve Rows scan performance
ScanContext reused between rows.Scan calls.
Simplified assign value logic.
Use complex destination for Rows test.
2022-02-04 13:03:31 +01:00
go-jet
3e802f8955
Merge pull request #116 from go-jet/develop
Release 2.7.0
2022-01-20 17:41:34 +01:00
go-jet
4f29960378 Add custom function call test. 2022-01-20 17:23:40 +01:00
go-jet
911cab333b Fix TestDeleteWithUsing test. 2022-01-20 17:06:03 +01:00
go-jet
50a1e2f45c Update generator usage. 2022-01-20 16:54:53 +01:00
go-jet
8eed0e209a Fix ident 2022-01-20 16:54:18 +01:00
go-jet
34f84c7170 Rename SetQueryLoggerFunc to SetQueryLogger 2022-01-20 16:51:32 +01:00
go-jet
605f1c8e3d [Postgres] Add order set aggregate functions support. 2022-01-18 19:18:00 +01:00
go-jet
04c14f29bf Add option for generator to ignore tables, views or enums. 2022-01-15 17:43:25 +01:00
go-jet
4955bfc4b5 Add automatic query logger function with additional execution details. 2022-01-12 19:03:50 +01:00
go-jet
7377e078cd Skip complex expression parenthesis wrap for function parameters. 2022-01-10 16:57:57 +01:00
go-jet
a506a96d6a Add DISTINCT operator support 2022-01-10 16:43:17 +01:00
go-jet
6fe9c26d30 [Postgres] Add support for DISTINCT ON clause. 2022-01-06 18:11:26 +01:00
go-jet
5cbf4aac86 Add ability to change alias of all projections in the ProjectionList.
Add ability to exclude list of columns from ProjectionList.
2022-01-05 18:00:20 +01:00
go-jet
392ba63bc5 Add helper method to set ProjectionList alias. 2022-01-04 18:08:06 +01:00
go-jet
038a32b032 Add WITH RECURSIVE statement support 2022-01-04 18:08:06 +01:00
go-jet
001d64f1dc Add BETWEEN operator support. 2022-01-04 17:58:10 +01:00
go-jet
3c866a0b6f Add sub-query column alias bubling tests. 2021-12-28 17:18:10 +01:00
go-jet
01305a138f Add automatic type cast for integer literals
In parameterized statements integer literals, like Int(num), are replaced with a placeholders. For some expressions,
postgres interpreter will not have enough information to deduce the type. If this is the case postgres returns an error.
Int8, Int16, Int32.... functions now will add automatic type cast over a placeholder, so type deduction is always possible.
2021-12-26 17:29:43 +01:00
go-jet
47545ce571 Add WITH RECURSIVE support. 2021-12-26 11:34:57 +01:00
go-jet
02123005c1 [QRM] Prevent recursive scan if destination contains circular dependency. 2021-12-26 11:34:57 +01:00
go-jet
7f54036b1a Remove unused code. 2021-12-24 18:08:05 +01:00
go-jet
c0710bed29 Update go doc. 2021-12-24 17:13:13 +01:00
go-jet
b92af7ca6e Update circle.ci 2021-12-19 18:25:55 +01:00
go-jet
972fc1d9bf Add support for running integration tests with dockerized test databases. 2021-12-17 16:59:43 +01:00
go-jet
4d5abc85c6
Merge pull request #112 from kblomster/generator-mysql-5.7-support
generator: support MySQL 5.7
2021-12-15 11:48:59 +01:00
Karl Blomster
4d404d8853
generator: support MySQL 5.7
MySQL 5.7 does not support CTE's. Refactor the table column metadata
query to avoid the CTE.
2021-12-14 18:22:58 +01:00
go-jet
23aeb02e93 Update issue templates 2021-12-13 12:47:27 +01:00
go-jet
60ffd004c5 Add USING clause support for DELETE statements 2021-12-08 18:14:57 +01:00
go-jet
72e8d7d584 Add FROM clause support for UPDATE statements 2021-12-08 18:13:58 +01:00
go-jet
d335b6cdad
Merge pull request #99 from go-jet/develop
Release 2.6.0
2021-10-25 16:33:21 +02:00
go-jet
97c34fbb54 Update Readme. 2021-10-25 16:24:51 +02:00
go-jet
776f308273 Update Readme. 2021-10-22 18:21:42 +02:00
go-jet
a50d89ff9d Add test for - Special characters are not working in postgres password(for generator)
https://github.com/go-jet/jet/issues/95
2021-10-22 18:08:05 +02:00