Commit Graph

12309 Commits

Author SHA1 Message Date
Lukas Eder
402d9101d9 [jOOQ/jOOQ#9506] Various improvements
This includes:

- Add a default schema Settings
- Add create schema if not exists logic and Settings
- Fix issues in Mojos
2023-06-14 21:32:21 +02:00
Lukas Eder
25f023ebe5 [jOOQ/jOOQ#9506] Various improvements
This includes:

- Commits::add should return this
- Add Settings.migrationHistorySchema
- Add some DEBUG logging
- Add a jOOQ-migrations-maven module draft
- Cache AbstractNode.root to avoid excessive recursive root() lookups
- [jOOQ/jOOQ#15201] Rename changelog to history
- [jOOQ/jOOQ#15201] Removal of Commits.commit(String)
2023-06-14 15:52:43 +02:00
Lukas Eder
4d5147ec52 [jOOQ/jOOQ#15201] Remove org.jooq.impl.Migrations
Remove static constructors in org.jooq.impl.Migrations. All constructors should be offered via org.jooq.Migrations
2023-06-14 10:52:09 +02:00
Lukas Eder
bbb04e2848 [jOOQ/jOOQ#9506] A Commits graph must be closed (i.e. a single graph)
All nodes in the graph must share the same root node.
2023-06-14 10:39:43 +02:00
Lukas Eder
8002bdc39f [jOOQ/jOOQ#9506] Add a new Commits::current
The term current should refer to the currently installed version in
the database as per the changelog.
2023-06-14 10:33:46 +02:00
Lukas Eder
45ae47c441 [jOOQ/jOOQ#9506] Rename current to latest 2023-06-14 10:09:17 +02:00
Lukas Eder
9d20ee8ab4 [jOOQ/jOOQ#9506] Update CHECK constraint and generated class 2023-06-13 19:39:31 +02:00
Lukas Eder
d074b53ba2 [jOOQ/jOOQ#9506] Add Commits::current
- If all branches have been merged, then there's a notion of a current commit, which is the last commit in the graph. In the future, there will also be labeled branches and a default branch, which will then always contain a current commit.

The current commit is necessary to be able to migrate somewhere by default (if no target commit ID is given)
2023-06-13 17:28:00 +02:00
Lukas Eder
9448c9c399 [jOOQ/jOOQ#9506] Various improvements:
- Implement a file based migration draft
- Throw DataMigrationValidationException if files are wrongly named
- Throw this exception also when loading the XML content
- Update generated code (move it to the top level)
- [jOOQ/jOOQ#15210] No need for CHANGELOG.rename() yet
- [jOOQ/jOOQ#15207] Turn off default schema/catalog
- Added tag support to API and XML configuration
- Make Commits::iterator unmodifiable
2023-06-13 16:38:55 +02:00
Lukas Eder
e3e6272afd [jOOQ/jOOQ#15218] NullPointerException in AbstractMeta::lookupTable, when there is no DefaultCatalog 2023-06-13 11:18:18 +02:00
Lukas Eder
6dc26fb10c [jOOQ/jOOQ#15195] H2 dialect should cast binary data of unknown length
as VARBINARY, not as BINARY
2023-06-13 11:01:28 +02:00
Lukas Eder
da073d8de0 [jOOQ/jOOQ#15212] Add <genericConverter/> and <genericBinding/> to allow
for passing T and U types to custom Converter and Binding instances
2023-06-13 09:58:50 +02:00
Lukas Eder
97311cafda [jOOQ/jOOQ#15209] Support ad-hoc compilation of programmatic objects in the code generator
- Add support for GeneratorStrategy
2023-06-12 17:26:09 +02:00
Lukas Eder
21da371056 [jOOQ/jOOQ#15207] Re-generate more jOOQ-meta schemas 2023-06-12 16:15:51 +02:00
Lukas Eder
e0548e3491 [jOOQ/jOOQ#15207] Re-generate jOOQ-meta schemas for Derby, HSQLDB, and MySQL 2023-06-12 12:04:43 +02:00
Lukas Eder
bd56a44932 [jOOQ/jOOQ#15207] Add a configuration flag to avoid generating
DefaultCatalog and DefaultSchema
2023-06-12 11:09:25 +02:00
Lukas Eder
c7e9a2c2af [#15210] Add code generation flags to avoid overrides of as() methods or rename() methods 2023-06-12 08:35:21 +02:00
Lukas Eder
83e30567b1 [jOOQ/jOOQ#15202] Add missing Experimental annotation to migrations API types 2023-06-09 15:29:39 +02:00
Lukas Eder
41c5b88d53 [jOOQ/jOOQ#15196] Deprecate inconsistent DSL.jsonObject(Field...) and
DSL.jsonbObject(Field...) overloads
2023-06-09 13:57:56 +02:00
Lukas Eder
ca1ff4e500 [jOOQ/jOOQ#15190] Avoid repeating ORDER BY expressions in DENSE_RANK 2023-06-08 17:38:31 +02:00
Lukas Eder
7c72fe155b [jOOQ/jOOQ#8439] PostgreSQL: array(<domain over UUID>) causes exception 2023-06-08 17:38:19 +02:00
Lukas Eder
ac9aa44b09 [jOOQ/jOOQ#15190] DISTINCT .. WITH TIES emulation renders too many DENSE_RANK() OVER (ORDER BY ...) clauses 2023-06-07 18:05:09 +02:00
Lukas Eder
6d94ccea9b [jOOQ/jOOQ#12052] Upgrade to DuckDB 0.8.0 2023-06-07 17:26:45 +02:00
Lukas Eder
7935620db0 [jOOQ/jOOQ#15188] SelectQueryImpl::toSQLReferenceLimitWithWindowFunctions should use QUALIFY to emulate LIMIT where possible 2023-06-07 17:26:35 +02:00
Lukas Eder
f886cd3ec0 [jOOQ/jOOQ#6542] Re-write the README 2023-06-07 13:12:15 +02:00
Lukas Eder
5e996c0b34 [jOOQ/jOOQ#15183] Compilation error in generated DAO code when
visibility of a field is changed to private
2023-06-07 13:12:08 +02:00
Lukas Eder
9ed57f8600 [jOOQ/jOOQ#9635] Remove pro only code from OSS edition 2023-06-07 12:11:43 +02:00
Lukas Eder
c28a1eb0a1
[jOOQ/jOOQ#6542] Re-write the README
Added a gif of some type safe refactoring
2023-06-07 11:56:05 +02:00
Lukas Eder
1bb6b458a9
[jOOQ/jOOQ#6542] Re-write the README 2023-06-07 11:28:31 +02:00
Lukas Eder
fdef26edfc [jOOQ/jOOQ#6542] Re-write the README 2023-06-07 11:22:28 +02:00
Lukas Eder
bbaaba003e [jOOQ/jOOQ#9635] Add missing annotations 2023-06-06 17:28:07 +02:00
Lukas Eder
1cf3b338d5 [jOOQ/jOOQ#9635] Add DSL.noTable() for optional, dynamic joins 2023-06-06 15:40:17 +02:00
Lukas Eder
f01dd879cc [jOOQ/jOOQ#15160] Add parser support for Teradata specific analytic functions 2023-06-05 15:21:59 +02:00
Lukas Eder
886479a4b0 [jOOQ/jOOQ#15171] Upgrade various dependencies 2023-06-02 14:52:52 +02:00
Lukas Eder
25897d1ebf [jOOQ/jOOQ#15168] NullPointerException in code generator when omitting
<target> directory
2023-06-02 12:43:46 +02:00
Lukas Eder
3b347a0307 [jOOQ/jOOQ#15162] Support parsing SQL Server computed column syntax 2023-06-01 16:37:18 +02:00
Lukas Eder
102623d3e5 [jOOQ/jOOQ#15156] Add Context.inScope(QueryPart): boolean 2023-06-01 12:28:22 +02:00
Lukas Eder
37926b5bbc [jOOQ/jOOQ#14306] Don't eagerly call ExecuteListener::end anymore
Before fixing this issue, there was a nested ExecuteListener lifecycle, which needed to be ended eagerly. This is no longer true, now that we re-use the DML statement's ExecuteListener lifecycle to fetch the ResultSet from the RETURNING clause.
2023-06-01 12:28:08 +02:00
Lukas Eder
56170a3de6 [jOOQ/jOOQ#15154] Fix various Javadoc links 2023-05-31 15:46:22 +02:00
Lukas Eder
3cabeb65ad [jOOQ/jOOQ#15154] Fix various Javadoc links 2023-05-31 15:22:42 +02:00
Lukas Eder
d62ac49e60 [jOOQ/jOOQ#15149] PostgresDatabase and subtypes may produce wrong table comments in presence of stored functions 2023-05-31 14:36:52 +02:00
Lukas Eder
f7dee15cee [jOOQ/jOOQ#13947] Support CockroachDB 23 user defined functions - WIP
- Add runtime support
2023-05-31 13:52:37 +02:00
Lukas Eder
97c56d2d53 [jOOQ/jOOQ#13947] Support CockroachDB 23 user defined functions - WIP
- Fix array type support
2023-05-31 12:17:59 +02:00
Lukas Eder
099580c718 [jOOQ/jOOQ#13947] Support CockroachDB 23 user defined functions - WIP 2023-05-31 11:44:36 +02:00
Lukas Eder
86a1ff24c0 [jOOQ/jOOQ#15003] Add SQLDialect.COCKROACHDB_23 2023-05-30 14:35:13 +02:00
Lukas Eder
89e68f76ab [jOOQ/jOOQ#15142] Support parsing T-SQL's named DEFAULT constraints in CREATE TABLE 2023-05-30 14:34:57 +02:00
Lukas Eder
ae0a39200a [jOOQ/jOOQ#15003] Add SQLDialect.COCKROACHDB_23 2023-05-30 13:42:55 +02:00
Lukas Eder
c2c5cd72af [jOOQ/jOOQ#3862] Improve Javadoc on DSLContext.executeInsert(), executeUpdate(), and executeDelete() about optimistic locking not applying 2023-05-30 10:56:54 +02:00
Lukas Eder
9b969d41cf [jOOQ/jOOQ#15115] Improve error message when unversioned, row based
optimistic locking doesn't work with DAOs and POJOs
2023-05-30 10:02:29 +02:00
Lukas Eder
1b1808558e [jOOQ/jOOQ#14997] Use awaitSingle instead of awaitFirstOrNull in transactionCoroutine to correctly sequence transaction script 2023-05-26 15:42:14 +02:00