Commit Graph

13507 Commits

Author SHA1 Message Date
Lukas Eder
45e88c729a [jOOQ/jOOQ#9506] Predicate::not was added in JDK 11 only 2024-11-22 09:37:09 +01:00
Lukas Eder
22b746b012 [jOOQ/jOOQ#17660] DatePart Javadoc should clarify that @Support doesn't
mean the DatePart is supported on all functions
2024-11-22 09:30:06 +01:00
Lukas Eder
dc4a45e59f [jOOQ/jOOQ#17634] Compilation errors in generated POJO code when
generating <immutableInterfaces/> on a table accepting UDTs
2024-11-22 08:54:08 +01:00
Lukas Eder
a38317ab5e [jOOQ/jOOQ#17652] Accept CONSTRAINT_INDEX_ as a possible system index name prefix in H2 2024-11-21 17:16:54 +01:00
Lukas Eder
5fb18bfaf5 [jOOQ/jOOQ#17647] Diff should ignore implicit NOT NULL constraints on
PRIMARY KEY columns
2024-11-21 17:10:52 +01:00
Lukas Eder
b72e6382a8 [jOOQ/jOOQ#9506] Could also be a bug 2024-11-21 16:32:14 +01:00
Lukas Eder
2406f7ec50 [jOOQ/jOOQ#9506] [jOOQ/jOOQ#17646] Diff should ignore constraint changes where (synthetically) named constraint is replaced by an equivalent unnamed constraint.
Users may use unnamed constraints in migration scripts. When comparing the schema with the existing schema in the database, we must ignore the database's synthetic constraint names.
2024-11-21 16:30:45 +01:00
Lukas Eder
6c957454fd [jOOQ/jOOQ#17642] Interpreter should show current query when there's an error 2024-11-21 15:39:21 +01:00
Lukas Eder
1dd1205673 [jOOQ/jOOQ#9506] More work on Migrations API:
- Handling of default schema in MigrationImpl::revertUntrackedQueries
- Use Settings.migrationHistorySchema in revertUntrackedQueries
- Improve logic to filter out history table from revertUntrackedQueries
- Set migration default schema as interpreter search path in History
- Suppress exceptions caused by history record re-insertion in case of
DataMigrationRedoLogException
- VersionImpl should apply CREATE SCHEMA IF NOT EXISTS to on init
- Remove weird initialisation of VersionImpl.meta with interpreter
search path
- Implement DefaultMigrationContext::toString
- Automatically set interpreter search path in Maven plugin
- GitCommitProvider should use same content type subdirs (in plural)
- Add commitProvider property to Maven plugin
- Upgrade jgit
- Allow for configuring a basedir within the GitConfiguration#repository
2024-11-21 15:22:34 +01:00
Lukas Eder
f086212738 [jOOQ/jOOQ#9506] More work on Migrations API:
- Don't throw exceptions in HistoryImpl::toString
- LogMojo should log history as well
- Reuse FilePattern::fileComparator also to sort IDs when loading files
- LogMojo should also include HistoryMojo output
- Make CommitType::getId optional for per-SQL-file metadata usage
2024-11-20 17:04:13 +01:00
Lukas Eder
32c51bbc3e [jOOQ/jOOQ#9506] More work on Migrations API:
- Minor improvements
2024-11-20 14:52:43 +01:00
Lukas Eder
e9d8f34ae4 [jOOQ/jOOQ#17637] NullPointerException in interpreter when trying to
work with schema that doesn't exist
2024-11-20 14:52:30 +01:00
Lukas Eder
beb800acda [jOOQ/jOOQ#9506] More work on Migrations API:
This includes:

- Support recursing into directories when calling Commits::load
- Expose Source::file, if available
- [jOOQ/jOOQ#17636] Add a FilePattern.path(File) utility to get a path
relative to the FilePattern::basedir
- Remove weird filename based encoding of messages/tags/parents
- Introduce path based encoding of messages/content type
- Support supplying XML meta data with files
2024-11-20 11:08:52 +01:00
Lukas Eder
627cd642d3 [jOOQ/jOOQ#17633] Wrong exception was suppressed 2024-11-20 11:08:39 +01:00
Lukas Eder
073d1f237e [jOOQ/jOOQ#9506] More work on Migrations API:
- Support a commit author
2024-11-19 17:11:11 +01:00
Lukas Eder
12d1aa31ab [jOOQ/jOOQ#9506] More work on Migrations API:
- Support a commit author
2024-11-19 16:55:32 +01:00
Lukas Eder
2343e3c53d [jOOQ/jOOQ#9506] More work on Migrations API:
- Infer JDBC driver from JDBC URL if not given explicitly
- Better FileData debugging info
- Add HistoryVersion type to add a migratedAt() Instant to a Version
- Add a CleanMojo
- Improve mojo Javadocs
- Rename init node to root
- Make root a reserved ID
2024-11-19 14:08:29 +01:00
Lukas Eder
159b664e9a [jOOQ/jOOQ#17633] DSL.using(String, String, String) should try to load the default driver for the JDBC URL, in case of a No suitable driver found exception 2024-11-19 09:38:43 +01:00
Lukas Eder
405e2bb804 [jOOQ/jOOQ#17632] Use new utility 2024-11-19 09:12:47 +01:00
Lukas Eder
19240b9f9d [jOOQ/jOOQ#17632] Deprecate and move org.jooq.meta.ClassUtils to org.jooq.tools.ClassUtils 2024-11-19 09:10:45 +01:00
Lukas Eder
7e712d72b7 [jOOQ/jOOQ#15906] Fix API generator 2024-11-15 18:09:27 +01:00
Lukas Eder
3ff0670bd6 [jOOQ/jOOQ#15906] Add QOM for Constraint types 2024-11-15 18:01:56 +01:00
Lukas Eder
918d3a3831 [jOOQ/jOOQ#15906] Add QOM for Constraint types 2024-11-15 18:01:49 +01:00
Lukas Eder
6b248fdc87 [jOOQ/jOOQ#17624] Correct order of excludes / includes, copy paste error 2024-11-15 13:24:29 +01:00
Lukas Eder
8ce1f7b81a [jOOQ/jOOQ#9736] Support Firebird and SQLite 2024-11-15 13:24:09 +01:00
Lukas Eder
650e0245a8 [jOOQ/jOOQ#9736] Help the poor Java 8 and 11 compilers 2024-11-15 09:18:20 +01:00
Lukas Eder
ee6db644ea [jOOQ/jOOQ#17624] Add support for per-generation-mode type <includes> and <excludes> matching 2024-11-15 08:54:08 +01:00
Lukas Eder
4339e3ba8d [jOOQ/jOOQ#9736] Support Derby and HSQLDB 2024-11-14 17:07:30 +01:00
Lukas Eder
a9fb1c23d9 Downgrade HSQLDB again (tons of internal errors in integration tests - I've already reported a few. Will investigate this eventually and report more, if they're not duplicates) 2024-11-14 16:20:31 +01:00
Lukas Eder
3623ea198d [jOOQ/jOOQ#9736] Add MySQL support 2024-11-14 15:49:59 +01:00
Lukas Eder
ec256172c5 [jOOQ/jOOQ#9736] InformationSchema, XMLDatabase and XMLGenerator support 2024-11-14 15:43:25 +01:00
Lukas Eder
1859e47554 [jOOQ/jOOQ#9736] Interpreter and DDL export support 2024-11-14 14:35:12 +01:00
Lukas Eder
992554b47d [jOOQ/jOOQ#9736] Fix wrong field indexes 2024-11-14 13:34:36 +01:00
Lukas Eder
e9bf333f64 [jOOQ/jOOQ#9736] Add runtime model for foreign key ON DELETE and ON UPDATE actions
This includes:

- Add ForeignKey API
- Implement MetaImpl
- Add jOOQ-meta API
- Add H2Database implementation
- Add code generation support
2024-11-14 11:47:03 +01:00
Lukas Eder
0069d76453 [jOOQ/jOOQ#17623] Add a new QOM.ForeignKeyRule and allow for using that in ConstraintForeignKeyOnStep methods 2024-11-14 10:32:46 +01:00
Lukas Eder
496e864e8a [jOOQ/jOOQ#17615] Fix Javadoc syntax error 2024-11-14 09:21:33 +01:00
Lukas Eder
a44eca8eb7 [jOOQ/jOOQ#16522] Add alternative setNonKeyToExcluded(),
setNonPrimaryKeyToExcluded(), and setNonConflictingKeyToExcluded()
methods to UPSERT syntax
2024-11-13 15:53:39 +01:00
Lukas Eder
10002ebd93 Upgrade HSQLDB 2024-11-13 15:53:29 +01:00
Lukas Eder
eb9a4368fc [jOOQ/jOOQ#17622] Add TransactionContext.result(): Object to allow for accessing the result of a transactionResult() call from a TransactionListener 2024-11-13 15:53:15 +01:00
Lukas Eder
aa4fe7e936 [jOOQ/jOOQ#17622] Add TransactionContext.result(): Object to allow for accessing the result of a transactionResult() call from a TransactionListener 2024-11-13 15:52:56 +01:00
Lukas Eder
b19b23b193 [jOOQ/jOOQ#17615] Add more Javadoc to Binding and Converter, discussing
when they are invoked
2024-11-13 10:54:32 +01:00
Lukas Eder
8aca2256ec [jOOQ/jOOQ#17610] BINARY, VARBINARY and LONGVARBINARY should be mapped to BLOB in SQLite 2024-11-12 15:42:38 +01:00
Lukas Eder
8ff7c5ffc8 [jOOQ/jOOQ#17600] ORA-22848 thrown if a BLOB or CLOB field is used in
condition part of a query

This includes:

- [jOOQ/jOOQ#17601] Avoid CAST(? AS BLOB) in Oracle and render
TO_BLOB(?) instead
2024-11-12 11:05:07 +01:00
Lukas Eder
d6285384bc [jOOQ/jOOQ#17593] LiquibaseDatabase should forward additional changeLogParameters 2024-11-11 09:49:49 +01:00
Lukas Eder
ccd7b94f6c [jOOQ/jOOQ#17592] Missing Generated annotations on nested Path classes 2024-11-11 09:23:49 +01:00
Lukas Eder
0596e787ac [jOOQ/jOOQ#7406] Updated comments 2024-11-08 14:34:17 +01:00
Lukas Eder
1200fa0fa5 [jOOQ/jOOQ#7406] Add code generation support for SETOF UDT returning
functions in PostgreSQL
2024-11-08 14:31:45 +01:00
Lukas Eder
4ffd806253 [jOOQ/jOOQ#17578] Fix JSONB as BLOB emulation 2024-11-08 08:26:24 +01:00
Lukas Eder
d6e8938ca4 [jOOQ/jOOQ#17580] AbstractRecord::compareTo doesn't produce correct
ordering
2024-11-07 17:01:11 +01:00
Lukas Eder
457c7f1954 [jOOQ/jOOQ#17578] Avoid calling JSONB::toString in jOOQ internals
This includes:

- [jOOQ/jOOQ#17579] PostgresUtils.toPGString() should use JSONB.data() not JSONB.toString()
- [jOOQ/jOOQ#17497] DefaultConverterProvider should use JSONB::data instead of JSONB::toString
2024-11-07 16:37:11 +01:00