Commit Graph

12188 Commits

Author SHA1 Message Date
Lukas Eder
d3e689b79e [jOOQ/jOOQ#15005] Fix generated whitespace 2023-05-02 16:35:50 +02:00
Lukas Eder
c94d9533c0 [jOOQ/jOOQ#15006] Support Oracle 23c's new 64k IN list limit 2023-05-02 16:35:29 +02:00
Lukas Eder
2804ddc2d2 [jOOQ/jOOQ#15005] Refactor generated code
The KotlinGenerator and ScalaGenerator require quite some different constructor design.
2023-05-02 14:29:51 +02:00
Lukas Eder
656e211d42 [jOOQ/jOOQ#15005] Add org.jooq.Path<R>, a type to model join paths
This includes:

- New org.jooq.Path type
- New JOIN method overloads
- Code generation implementation and configuration
2023-05-02 13:12:39 +02:00
Lukas Eder
f1e58301e4
Merge pull request #14996 from jmax01/patch-1
#14995 fix  OffsetDateTimeRange javadoc
2023-05-02 09:05:43 +02:00
Lukas Eder
c42deedaae [jOOQ/jOOQ#14998] Add code generation flag <implicitJoinPathUnusedConstructors/> to offer an option to stop generating unused implicit join path constructors 2023-05-02 08:47:47 +02:00
Jeff Maxwell
191fd401b4
#14995 fix OffsetDateTimeRange javadoc 2023-05-01 12:24:02 -05:00
Lukas Eder
55a74c04d7 [jOOQ/jOOQ#13639] Fix ambiguities of to-many and to-one self path joins 2023-05-01 19:14:49 +02:00
Lukas Eder
ffb9414667 [jOOQ/jOOQ#13639] Fix a few regressions
The new inverse foreign key code generation regressed on
[jOOQ/jOOQ#9758] and [jOOQ/jOOQ#11032]
2023-05-01 16:09:33 +02:00
Lukas Eder
72d7c3c8e8 [jOOQ/jOOQ#13639] to-many joins should be LEFT JOIN 2023-05-01 16:09:12 +02:00
Lukas Eder
ce1835bdb2 [jOOQ/jOOQ#13639] Change the ManyToManyKeyDefinition name
The ManyToManyKeyDefinition is a directed synthetic key, going from table1 to table2 using foreignkey1 and foreignkey2.

In order to improve the code generation experience out of the box, the name of the key should be the one of foreignkey2.
2023-05-01 11:04:45 +02:00
Lukas Eder
47f59ce5d3 [jOOQ/jOOQ#14993] Add a new <matchers/> subelement <foreignKeys/> 2023-05-01 10:33:06 +02:00
Lukas Eder
b096a11858 [jOOQ/jOOQ#13639] Fix code generation error in ScalaGenerator 2023-05-01 10:04:36 +02:00
Lukas Eder
1de1dfcb86 [jOOQ/jOOQ#14985] Fixed wrong pattern matching backport 2023-05-01 08:01:17 +02:00
Lukas Eder
caa3dca7db [jOOQ/jOOQ#14985] Support many-to-many path joins 2023-04-28 17:40:44 +02:00
Lukas Eder
d5577c20db [jOOQ/jOOQ#13639] Implement kotlin and scala code generation 2023-04-28 15:37:15 +02:00
Lukas Eder
2450e35016 [jOOQ/jOOQ#13639] Runtime support for to-many path expressions 2023-04-28 14:28:44 +02:00
Lukas Eder
184f0b9dea [jOOQ/jOOQ#13639] Prevent generating duplicate attributes 2023-04-28 14:28:31 +02:00
Lukas Eder
fa6fb4bb0d [jOOQ/jOOQ#14988] Emulate LATERAL (TableImpl | JoinTable) where not
supported

This includes:

- [jOOQ/jOOQ#14985] Ensuring path joins work with APPLY
- [jOOQ/jOOQ#14985] Ensuring path joins work with LATERAL

In the latter case, we currently just omit the problem of making path
joins work with LATERAL by avoiding wrapping a path in LATERAL. There
might be a better solution for this in the future.
2023-04-28 11:48:41 +02:00
Lukas Eder
185792157d [jOOQ/jOOQ#14985] Allow for specifying explicit path joins
- Support path expressions in table lists
- Support path expressions in CROSS JOIN
- Support path expressions in LEFT SEMI JOIN
- Support path expressions in LEFT ANTI JOIN
2023-04-27 17:29:45 +02:00
Lukas Eder
2ffa09a981 [jOOQ/jOOQ#14985] Allow for specifying explicit path joins
- Handle cosmetic case of avoiding on(noCondition()) renderings
2023-04-27 11:48:13 +02:00
Lukas Eder
0f0b5e4725 [jOOQ/jOOQ#14985] Allow for specifying explicit path joins
- Avoid generating redundant ON conditions
2023-04-27 09:55:32 +02:00
Lukas Eder
cab5e0d78b [jOOQ/jOOQ#14985] Allow for specifying explicit path joins
- Implement this for INNER JOIN and LEFT JOIN
2023-04-26 17:04:48 +02:00
Lukas Eder
49b48887c7 [jOOQ/jOOQ#13639] Add support for to-many path expressions
- Added code generation support
- Added runtime meta data
- Mark the feature as experimental
- Turn off the feature by default, for as long it's experimental
2023-04-26 15:18:09 +02:00
Lukas Eder
55a9488101 [jOOQ/jOOQ#12052] Add DuckDB support - WIP
- Add batch support (see [jOOQ/jOOQ#14784])
2023-04-25 16:24:01 +02:00
Lukas Eder
785e8413a6 [jOOQ/jOOQ#12052] Add DuckDB support - WIP 2023-04-25 14:25:16 +02:00
Lukas Eder
e5c5ca97fe [jOOQ/jOOQ#12052] Add DuckDB support - WIP 2023-04-25 13:35:37 +02:00
Lukas Eder
b75cec9837 [jOOQ/jOOQ#12052] Add DuckDB support - WIP 2023-04-25 10:33:41 +02:00
Lukas Eder
22bff38380 [jOOQ/jOOQ#12052] Add DuckDB support - WIP 2023-04-24 09:07:46 +02:00
Lukas Eder
88c1cf6e85 Re-generated code 2023-04-24 09:04:43 +02:00
Lukas Eder
e0d7f08602 [jOOQ/jOOQ#14975] Upgrade Jackson to 2.15.0 2023-04-24 09:04:19 +02:00
Lukas Eder
52a5abc79d [jOOQ/jOOQ#12052] Add DuckDB support
- Remove stored procedures / functions from tests for now
- Drop indexes explicitly, see
https://github.com/duckdb/duckdb/issues/6737
- Skip T_SPATIAL creation
- No STORED computed columns supported yet
- No constraints on computed columns supported yet
- Work around https://github.com/duckdb/duckdb/issues/7168
- Never fully qualify fields
- Generate jOOQ-meta classes
- Generate integration test classes
- Native * EXCLUDE support
2023-04-21 15:01:08 +02:00
Lukas Eder
e16a82371e [jOOQ/jOOQ#14967] Reactive batch implementations should throw UnsupportedOperationException with a message 2023-04-20 13:30:43 +02:00
Lukas Eder
198e25ee6c [jOOQ/jOOQ#14965] Added failing integration test 2023-04-20 13:11:54 +02:00
Lukas Eder
0d9b30f755 [jOOQ/jOOQ#14960] No-arg DefaultConfiguration() constructor clones default settings twice 2023-04-19 15:27:52 +02:00
Lukas Eder
c8aa64b4c5 [jOOQ/jOOQ#14953] Add Javadoc hints about implementation of JSONB::toString, JSONB::hashCode, and JSONB::equals 2023-04-19 10:26:25 +02:00
Lukas Eder
b5a7847f03 [jOOQ/jOOQ#12052] Add DuckDB support - WIP 2023-04-18 18:43:06 +02:00
Lukas Eder
d48a444abc [jOOQ/jOOQ#14949] Upgrade spring-core dependency to mitigate
CVE-2023-20863
2023-04-18 18:42:55 +02:00
Lukas Eder
10bc1a2ffc [jOOQ/jOOQ#12052] Add DuckDB support - WIP 2023-04-18 18:36:55 +02:00
Lukas Eder
467f91a6ef [jOOQ/jOOQ#11485] Add TC tests 2023-04-17 16:51:14 +02:00
Lukas Eder
31cadc33f6 [jOOQ/jOOQ#14933] Add the missing DSLContext.fetchValue(TableField, Condition) and other overloads 2023-04-17 16:51:02 +02:00
Lukas Eder
48bc47380f [jOOQ/jOOQ#14930] Implement this for PostgreSQL 2023-04-17 11:57:07 +02:00
Lukas Eder
f00caeb8c2 [jOOQ/jOOQ#14930] Implement this for Db2, Oracle 2023-04-17 11:50:54 +02:00
Lukas Eder
1c179e06d6 [jOOQ/jOOQ#14930] Implement this for Firebird, MySQL (et al.) 2023-04-17 11:04:01 +02:00
Lukas Eder
ead855fc00 [jOOQ/jOOQ#14938] Unstable ordering of Derby generated foreign keys 2023-04-14 13:40:04 +02:00
Lukas Eder
98340c6308 [jOOQ/jOOQ#14934] Upgrade liquibase-core to 4.21.0 2023-04-13 15:38:55 +02:00
Lukas Eder
3f6a4ad915 [jOOQ/jOOQ#14932] Add a jooq.codegen.propertyOverride system property to GenerationTool 2023-04-13 15:20:52 +02:00
Lukas Eder
f60eeea84b [jOOQ/jOOQ#14932] Fix typo 2023-04-13 13:24:15 +02:00
Lukas Eder
e1549e0db9 [jOOQ/jOOQ#14932] Add a jooq.codegen.propertyOverride system property to GenerationTool
- Do this for jooq.codegen.jdbc
2023-04-13 10:30:27 +02:00
Lukas Eder
24929de718 [jOOQ/jOOQ#14930] Fix Derby 2023-04-12 17:14:43 +02:00