Commit graph

660 commits

Author SHA1 Message Date
go-jet
a2ea1892e5 Go fmt. 2022-08-23 12:38:16 +02:00
go-jet
4e1ff65023 [MySQL] Add NEW alias for the rows to be inserted. 2022-08-23 12:23:46 +02:00
go-jet
c264529e95
Merge pull request #171 from nkonin/fix/ColumnTimez-missing-SET-method
add missing SET method to ColumnTimez interface
2022-08-19 14:51:17 +02:00
Nikita Konin
92254c35df add missing SET method to ColumnTimez interface
it has been already implemented, just missing from interface
2022-08-18 13:23:51 +03:00
go-jet
f93636eab0 Add missing sqlite conditional functions. 2022-08-17 13:03:03 +02:00
go-jet
bdbbc4d58d Merge branch 'develop' of https://github.com/go-jet/jet into develop 2022-08-16 12:49:58 +02:00
go-jet
b4a0964fce Update badge links. 2022-08-16 12:47:52 +02:00
go-jet
879c2eb7e7
Merge pull request #161 from wexder/master
Add postgres json literal
2022-06-06 11:04:40 +02:00
Vladimír Zahradník
11b0a6858a Better json func, and tests 2022-06-04 14:22:33 +02:00
Vladimír Zahradník
0425e8895c add postgres json literal 2022-06-04 14:12:08 +02:00
go-jet
5a0d05273a
Merge pull request #159 from kblomster/mysql-comparison-functions
mysql: export some conditional functions
2022-06-04 12:10:13 +02:00
Karl Blomster
792f89a857
mysql: export some conditional functions
COALESCE, NULLIF, GREATEST and LEAST already existed
and were available in the postgres dialect, but not in MySQL.
2022-06-03 16:11:24 +02:00
dependabot[bot]
e7257ff5fa
Bump github.com/google/uuid from 1.1.1 to 1.3.0
Bumps [github.com/google/uuid](https://github.com/google/uuid) from 1.1.1 to 1.3.0.
- [Release notes](https://github.com/google/uuid/releases)
- [Commits](https://github.com/google/uuid/compare/v1.1.1...v1.3.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>
2022-05-17 21:40:52 +00:00
go-jet
38b6caf41e
Merge pull request #153 from go-jet/develop
Release 2.8.0
2022-05-17 11:45:06 +02:00
go-jet
4b720d6a73 Add multi-tenant table WithPrefix, WithSuffix tests. 2022-05-17 11:10:20 +02:00
go-jet
01f409bab1 Add multi-tenant table WithPrefix, WithSuffix tests. 2022-05-17 11:09:29 +02:00
go-jet
c38d2fd2c3 Update README.md 2022-05-16 11:51:47 +02:00
go-jet
6706f4b228 [Bug] DebugSQL panics with libraries that do not implemente Stringer interface. 2022-05-14 11:17:39 +02:00
go-jet
7567206ac0 Update dependencies. 2022-05-13 14:49:11 +02:00
go-jet
5561de10dd Merge remote-tracking branch 'upstream/master' into develop 2022-05-13 14:20:56 +02:00
go-jet
3b0285cc4b [Bug] Statement Query and Exec methods can not be used with sql.Conn 2022-05-13 14:04:11 +02:00
go-jet
84dbda5948 Improve doc. 2022-05-13 13:46:41 +02:00
go-jet
29c523f381 Generator code cleanup. 2022-05-13 13:45:41 +02:00
go-jet
2101088d0e Add support for EXTRACT time/date function. 2022-05-06 11:54:44 +02:00
go-jet
bc776f947b Add support for CockorachDB. 2022-05-05 13:01:42 +02:00
go-jet
6babd43e3a
Merge pull request #143 from go-jet/dependabot/go_modules/github.com/jackc/pgx/v4-4.16.0
Bump github.com/jackc/pgx/v4 from 4.11.0 to 4.16.0
2022-05-05 11:41:30 +02:00
dependabot[bot]
632a663bad
Bump github.com/jackc/pgx/v4 from 4.11.0 to 4.16.0
Bumps [github.com/jackc/pgx/v4](https://github.com/jackc/pgx) from 4.11.0 to 4.16.0.
- [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.11.0...v4.16.0)

---
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-05-05 09:36:23 +00:00
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