Lukas Eder
61ef356d93
[ jOOQ/jOOQ#2682 ] [ jOOQ/jOOQ#15644 ] Make Policy<R> generic.
...
For now, I'm settling for declaring inherited paths from child to parent, not from parent to child. This means we can make Policy<R> generic, and require paths to be Path<R> as well for added type safety.
2023-09-28 11:21:14 +02:00
Lukas Eder
4372d36d00
[ jOOQ/jOOQ#2682 ] Avoid duplicating the policy predicate
...
When a policy generates a derived table in an outer join (where the InlineDerivedTable cannot be inlined), then we produced the policy predicate twice.
2023-09-28 10:17:46 +02:00
Lukas Eder
7921c5ecdd
[ jOOQ/jOOQ#15644 ] Add Policy::inherited to specify whether child tables
...
should inherit a parent table's policies
2023-09-27 17:34:07 +02:00
Lukas Eder
d8dcff48da
[ jOOQ/jOOQ#2682 ] Remove PolicyStatement again
...
PostgreSQL's feature where policies can apply to statements (or commands, such as SELECT, INSERT, UPDATE, DELETE) may be a bit overengineered for jOOQ. It would be very hard to re-implement the same semantics as PostgreSQL, in particular because we also cannot distinguish between USING and CHECK semantics easily.
As such, let's keep things simple and implement only ALL semantics.
2023-09-27 15:09:46 +02:00
Lukas Eder
59c268f7c0
[ jOOQ/jOOQ#2682 ] Support multiple PolicyProvider instances
2023-09-27 14:44:47 +02:00
Lukas Eder
3aab7f2f19
[ jOOQ/jOOQ#2682 ] Support multiple PolicyProvider instances
2023-09-27 14:44:05 +02:00
Lukas Eder
e11e6adb93
[ jOOQ/jOOQ#15632 ] [ jOOQ/jOOQ#15641 ] Fix OSS edition regression
2023-09-27 14:36:06 +02:00
Lukas Eder
d11690f584
[ jOOQ/jOOQ#15632 ] [ jOOQ/jOOQ#15641 ] Handle DML table aliases
...
The prior implementation of working around DML table aliases in INSERT statements wasn't entirely correct with respect to how InlineDerivedTables are now handled. A minor refactor fixes the issue.
See also:
- [jOOQ/jOOQ#8382 ]
- [jOOQ/jOOQ#8384 ]
2023-09-27 12:23:50 +02:00
Lukas Eder
e46eabf1cb
[ jOOQ/jOOQ#2682 ] [ jOOQ/jOOQ#15632 ] Make SchemaMapping work
...
SchemaMapping may rename a table in the inline derived table's condition, so the inline derived table alias needs to take this into account as well.
There are probably quite a few related bugs in jOOQ, which aren't showing in existing integration tests yet...
2023-09-26 16:29:47 +02:00
Lukas Eder
7101c4b371
[ jOOQ/jOOQ#15639 ] RenderMapping doesn't apply to QualifiedRowid
2023-09-26 13:32:47 +02:00
Lukas Eder
8616f8c496
[ jOOQ/jOOQ#15639 ] RenderMapping doesn't apply to QualifiedRowid
2023-09-26 13:13:05 +02:00
Lukas Eder
2b3b5373c1
[ jOOQ/jOOQ#2682 ] [ jOOQ/jOOQ#15632 ] Support UPDATE .. FROM
2023-09-26 09:46:32 +02:00
Lukas Eder
fa8a665b05
[ jOOQ/jOOQ#2682 ] [ jOOQ/jOOQ#15632 ] Support DELETE .. USING
2023-09-26 09:24:17 +02:00
Lukas Eder
6ef4abdbbb
[ jOOQ/jOOQ#2682 ] [ jOOQ/jOOQ#15632 ] Support set operations (UNION etc.)
...
This includes a refactoring where ScopeStackElement is subclassed for specialisation. We need one key per type of ScopeStackElement, such that values can be null for certain keys. That way, the new ScopeDefinerScopeStack element can be absent even if the DataKeyScopeStackElement is present on all scopes. Future refactors might further specialise the DefaultScopeStackElement, which contains the query part specific contents (e.g. join tree)
2023-09-25 16:38:32 +02:00
Lukas Eder
0255ad3199
[ jOOQ/jOOQ#2682 ] [ jOOQ/jOOQ#15632 ] Support CTAS and CV
...
This includes:
- [jOOQ/jOOQ#15635 ] Add a Context::scopePart property
2023-09-25 15:29:20 +02:00
Lukas Eder
4168c15d2b
[ jOOQ/jOOQ#15632 ] Support InlineDerivedTables in DELETE and INSERT
...
This includes:
- [jOOQ/jOOQ#15634 ] Distinguish between Context::qualify and Context::qualifySchema
2023-09-25 11:48:26 +02:00
Lukas Eder
ef2b95eb46
[ jOOQ/jOOQ#15632 ] Support InlineDerivedTables in UPDATE
2023-09-25 10:42:06 +02:00
Lukas Eder
54d663bcba
[ jOOQ/jOOQ#2682 ] Support outer joins with policies
2023-09-22 17:30:45 +02:00
Lukas Eder
67aa9616f4
[ jOOQ/jOOQ#15629 ] InlineDerivedTable can't be outer joined
2023-09-22 14:12:37 +02:00
Lukas Eder
ca8fa16e42
[ jOOQ/jOOQ#2682 ] Support INSERT (simple case)
2023-09-21 18:12:50 +02:00
Lukas Eder
68a9145844
[ jOOQ/jOOQ#2682 ] Support UPDATE and DELETE (simple cases)
2023-09-21 17:34:31 +02:00
Lukas Eder
bef6c3b187
[ jOOQ/jOOQ#15625 ] QOM.Delete mutators produce a copy that always has a RETURNING clause
2023-09-21 17:23:00 +02:00
Lukas Eder
36673ae12e
[ jOOQ/jOOQ#2682 ] Add org.jooq.Policy - WIP
2023-09-20 18:01:48 +02:00
Lukas Eder
d7c70a22ed
[ jOOQ/jOOQ#15610 ] The egit 6 dependency has a Java 11 baseline
2023-09-20 12:16:47 +02:00
Lukas Eder
402236b25a
[ jOOQ/jOOQ#15623 ] Stop using deprecated DSL API in jOOQ-meta
2023-09-20 12:05:59 +02:00
Lukas Eder
41505e01db
[ jOOQ/jOOQ#15621 ] Synthetic comment flag <deprecated> should produce
...
@Deprecated annotation in addition to Javadoc
2023-09-20 11:41:19 +02:00
Lukas Eder
b24ae90b10
[ jOOQ/jOOQ#15620 ] Upgrade third party libraries for JDK 21 build
2023-09-20 10:20:00 +02:00
Lukas Eder
053d927ef6
[ jOOQ/jOOQ#15614 ] Wrong Support annotation on COMMENT ON COLUMN for MariaDB
2023-09-19 16:54:09 +02:00
Lukas Eder
9f1b86a1a0
[ jOOQ/jOOQ#15582 ] MariaDB UPDATE .. RETURNING emulation should work on tables with unique constraints only
2023-09-19 16:38:30 +02:00
Lukas Eder
68dc0f4ce5
[ jOOQ/jOOQ#9483 ] Shame on me :D
2023-09-19 13:28:05 +02:00
Lukas Eder
477aeba7eb
[ jOOQ/jOOQ#9483 ] ojdbc's DatabaseMetaData::getTables returns TABLE
...
Instead of clearly indicating that something is a materialized view...
2023-09-19 10:47:47 +02:00
Lukas Eder
8e83af8c8b
[ jOOQ/jOOQ#9483 ] Support materialized views in Diff
2023-09-19 08:48:07 +02:00
Lukas Eder
5a02c0cd48
Merge pull request #15610 from jOOQ/dependabot/maven/jOOQ-migrations/org.eclipse.jgit-org.eclipse.jgit-6.6.1.202309021850-r
...
Bump org.eclipse.jgit:org.eclipse.jgit from 5.9.0.202009080501-r to 6.6.1.202309021850-r in /jOOQ-migrations
2023-09-19 08:18:41 +02:00
dependabot[bot]
5f41604fc7
Bump org.eclipse.jgit:org.eclipse.jgit in /jOOQ-migrations
...
Bumps org.eclipse.jgit:org.eclipse.jgit from 5.9.0.202009080501-r to 6.6.1.202309021850-r.
---
updated-dependencies:
- dependency-name: org.eclipse.jgit:org.eclipse.jgit
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-09-18 19:22:21 +00:00
Lukas Eder
9f3645f94e
[ jOOQ/jOOQ#9483 ] Fix export of COMMENT ON MATERIALIZED VIEW
2023-09-18 18:15:15 +02:00
Lukas Eder
5853a7e3da
[ jOOQ/jOOQ#9483 ] Add DDLExportConfiguration flags
...
And also:
[jOOQ/jOOQ#9483 ] Fixed PG/CRDB meta query, added Db2 implementation
2023-09-18 18:13:06 +02:00
Lukas Eder
5e6ae12455
[ jOOQ/jOOQ#15608 ] Upgrade H2 to 2.2.224
2023-09-18 16:11:34 +02:00
Lukas Eder
f58fc103ed
[ jOOQ/jOOQ#9483 ] Include sources of materialized views in PostgresDatabase::sources
2023-09-18 14:49:19 +02:00
Lukas Eder
c84ed4bfcf
[ jOOQ/jOOQ#15607 ] Add interpreter support for COMMENT ON MATERIALIZED VIEW
2023-09-15 15:29:47 +02:00
Lukas Eder
555a1d4884
[ jOOQ/jOOQ#15607 ] Add support for COMMENT ON MATERIALIZED VIEW
2023-09-15 15:19:09 +02:00
Lukas Eder
450ad85d32
[ jOOQ/jOOQ#9483 ] Add support for ALTER MATERIALIZED VIEW
2023-09-15 14:19:27 +02:00
Lukas Eder
e6391079f6
[ jOOQ/jOOQ#9483 ] Add support for { CREATE | DROP } MATERIALIZED VIEW
...
This includes:
- [jOOQ/jOOQ#15593 ] Add support for and emulate CREATE OR REPLACE MATERIALIZED VIEW and other objects
- Interpreter support
- InformationSchemaExport support
- InformationSchema support
2023-09-15 13:33:42 +02:00
Lukas Eder
de1195b669
[ jOOQ/jOOQ#15602 ] Plain SQL Javadoc disclaimer is absent on api
...
generator generated step methods
2023-09-15 11:55:47 +02:00
Lukas Eder
b7e0e04e99
[ jOOQ/jOOQ#15602 ] Plain SQL Javadoc disclaimer is absent on api generator generated step methods
2023-09-15 11:45:37 +02:00
Lukas Eder
89276bfc3f
[ jOOQ/jOOQ#15598 ] Fix DefaultRecordMapper Javadoc to reflect actual
...
behaviour
2023-09-15 11:28:22 +02:00
Lukas Eder
47db4a9c9b
[ jOOQ/jOOQ#9483 ] Added parser support
2023-09-14 16:09:56 +02:00
Lukas Eder
5352cdfce3
[ jOOQ/jOOQ#15592 ] Add missing Asterisk and QualifiedAsterisk.except(Collection<? extends Field<?>>) overloads
2023-09-14 15:21:01 +02:00
Lukas Eder
9b2d1226f7
[ jOOQ/jOOQ#9483 ] Implement CREATE / DROP MATERIALIZED VIEW
2023-09-14 15:12:45 +02:00
Lukas Eder
ece047750c
[ jOOQ/jOOQ#9483 ] Move QOM.CreateView to API generator
2023-09-14 13:47:05 +02:00
Lukas Eder
f957a1e7ee
[ jOOQ/jOOQ#15591 ] Remove unnecessary line breaks in formatted DDL
2023-09-14 09:04:55 +02:00