Commit Graph

7988 Commits

Author SHA1 Message Date
Lukas Eder
4652fb2c08 Organise code in DSL API / QueryPart API sections 2019-11-21 10:57:09 +01:00
Lukas Eder
01e36257d3 Merge branch 'master' of https://github.com/jOOQ/jOOQ 2019-11-21 10:46:32 +01:00
Lukas Eder
10a444fb7c [jOOQ/jOOQ#9505] Make sure only versions with a common ancestor are merged 2019-11-21 10:46:22 +01:00
Knut Wannheden
0c6fcefd0a [jOOQ/jOOQ#9438] Use Sequence#getStartWith() for ALTER SEQUENCE RESTART
If the given `Sequence` has a non-`null` value for `getStartWith()` this
will be used in the `ALTER SEQUENCE ... RESTART` emulation instead of
just `1`.
2019-11-21 10:35:35 +01:00
Lukas Eder
e57125eaa9 [jOOQ/jOOQ#9580] Add DDLExportConfiguration.defaultSequenceFlags 2019-11-21 10:24:49 +01:00
Knut Wannheden
17334b5f6b [jOOQ/jOOQ#9505] Remove @Internal from VersionImpl (as package private) 2019-11-21 09:59:07 +01:00
Knut Wannheden
1dc26e84b6 [jOOQ/jOOQ#9514] Make LiquibaseDatabase Java 6 compatible 2019-11-21 09:34:13 +01:00
Knut Wannheden
f5e5fb71a1 [jOOQ/jOOQ#9425] Support sequence flag changes in Diff
`Diff` now emits `ALTER SEQUENCE` statements for differences in the
flags of a given sequence.
2019-11-21 09:24:40 +01:00
Lukas Eder
d8bf2b48d8 [jOOQ/jOOQ#7752] Parser sequence refactoring 2019-11-20 22:07:16 +01:00
Lukas Eder
d7b57bd296 [jOOQ/jOOQ#8528] Inconsistent exception thrown 2019-11-20 21:27:18 +01:00
Lukas Eder
e4b873fa38 [jOOQ/jOOQ#9505] Java 6 fix 2019-11-20 21:16:22 +01:00
Lukas Eder
c506e17629 Merge branch 'master' of https://github.com/jOOQ/jOOQ 2019-11-20 17:47:38 +01:00
Lukas Eder
7d256dd2ba [jOOQ/jOOQ#9505] Correctly apply interleaved DML (WIP)
- This may not be correct in the OSS edition yet
- This may not be correct when branching, yet
2019-11-20 17:47:26 +01:00
Knut Wannheden
c41dac548d [jOOQ/jOOQ#7752] Support ALTER SEQUENCE flags in parser 2019-11-20 16:54:41 +01:00
Knut Wannheden
9aeb540011 [jOOQ/jOOQ#7752] Support ALTER SEQUENCE flags in DDL interpreter
Note: The RESTART clause has no effect.
2019-11-20 15:45:46 +01:00
Lukas Eder
060c18b3ba [jOOQ/jOOQ#8528] Ignore DML statements in interprete 2019-11-20 15:39:43 +01:00
Lukas Eder
03ef9ce3f7 [jOOQ/jOOQ#9578] Upgrade Hibernate dependency to 5.4.9.Final 2019-11-20 15:27:45 +01:00
Lukas Eder
7d26f84235 [jOOQ/jOOQ#8528] Interpret TRUNCATE 2019-11-20 15:25:34 +01:00
Lukas Eder
b2af597638 [jOOQ/jOOQ#9505] Add org.jooq.Version to describe a database version 2019-11-20 15:18:19 +01:00
Knut Wannheden
355ab8b35d [jOOQ/jOOQ#9354] Also use MySQL workaround for MariaDB
`ALTER TABLE ... ALTER ... DROP DEFAULT` is better emulated as `ALTER
TABLE ... ALTER ... SET DEFAULT NULL` on MariaDB.
2019-11-20 14:38:01 +01:00
Knut Wannheden
2229e4ff71 [jOOQ/jOOQ#9437] Emulate ALTER SEQUENCE ... NO CACHE for PostgreSQL
PostgreSQL only understands the `CACHE` clause and `CACHE 1` effectively
means `NO CACHE`.
2019-11-20 14:10:03 +01:00
Knut Wannheden
cbcd506bdf [jOOQ/jOOQ#9437] No generics for AlterSequenceFlagsStep
Using generics here causes problems given the current signatures on
`DSLContext`, where the return type explicitly uses `BigInteger` as the
generic type parameter.
2019-11-20 12:23:34 +01:00
Knut Wannheden
ed08b6a39c Cleanup: Remove release-oss profile from pom.xml
This profile is not needed in the OSS repository, as the OSS edition is
not actually built or released from this repository.
2019-11-20 08:18:26 +01:00
Knut Wannheden
19f093a65e Cleanup: Remove jOOQ-release directory
This directory only contained files releated to the releasing of
commercial editions.
2019-11-20 08:09:33 +01:00
Knut Wannheden
2cee008369 [jOOQ/jOOQ#9565] Fix Java 6 incompatibility 2019-11-20 07:32:27 +01:00
Lukas Eder
8afc8f6f37 [jOOQ/jOOQ#8528] Added meaningful toString() impl for debugging 2019-11-19 16:58:33 +01:00
Lukas Eder
96872f256e [jOOQ/jOOQ#9514] LiquibaseDatabase should allow for passing parameters to the Liquibase 2019-11-19 16:32:02 +01:00
Lukas Eder
eacecf662c [jOOQ/jOOQ#8528] Support multiple unnamed constraints 2019-11-19 15:47:07 +01:00
Lukas Eder
65e58d756b [jOOQ/jOOQ#8528] Interpret multi constraint ADD 2019-11-19 15:40:53 +01:00
Lukas Eder
c331962a3c [jOOQ/jOOQ#8528] Interpret multi column ADD 2019-11-19 15:17:52 +01:00
Lukas Eder
2c5171cc40 [jOOQ/jOOQ#8528] Add support for ADD IF NOT EXISTS 2019-11-19 15:13:33 +01:00
Lukas Eder
cb8d3f893a [jOOQ/jOOQ#9570] Generate single ADD or DROP ALTER TABLE statements when a list of length 1 is passed 2019-11-19 15:02:14 +01:00
Lukas Eder
3b6130d929 [jOOQ/jOOQ#9425] Support additional DDLDiffConfiguration flags
Newly supported flags include:

- alterTableAddMultiple
- alterTableDropMultiple

This change also added [jOOQ/jOOQ#8528] interpretation partial support for multi-add ALTER TABLE statements
2019-11-19 14:55:03 +01:00
Lukas Eder
cc710364d6 [jOOQ/jOOQ#9571] Multi column ALTER TABLE .. ADD statement shouldn't qualify column names 2019-11-19 14:43:50 +01:00
Lukas Eder
324614fd3a [jOOQ/jOOQ#9567] Cosmetic exceptions caused by JPADatabase when using attribute converters 2019-11-19 13:00:08 +01:00
Lukas Eder
57121c96e2 [jOOQ/jOOQ#7639] Add code generation support for CHECK constraints 2019-11-19 12:26:15 +01:00
Lukas Eder
ac5fea8ec0 [jOOQ/jOOQ#9565] CheckConstraints are not exported yet 2019-11-19 11:55:27 +01:00
Lukas Eder
6c3417cdc6 [jOOQ/jOOQ#9565] Revert XMLBuilder to previous version 2019-11-19 11:48:05 +01:00
Lukas Eder
749c91bca6 [jOOQ/jOOQ#9565] Import and export InformationSchema <-> Meta 2019-11-19 11:24:15 +01:00
Lukas Eder
502cecba02 [jOOQ/jOOQ#9565] Read check clause in XMLDatabase 2019-11-19 10:35:15 +01:00
Lukas Eder
ba7a030c82 [jOOQ/jOOQ#9565] Generate check clause in XMLGenerator 2019-11-19 10:18:18 +01:00
Lukas Eder
189f850ec1 [jOOQ/jOOQ#9565] Add CheckConstraint XSD type to jooq-meta.xsd 2019-11-19 10:09:36 +01:00
Lukas Eder
653faba4f8 [jOOQ/jOOQ#9425] Diff check constraints.
This change includes a set of prerequisites that had to be implemented in order to be able to create a diff of check constraints:

- [jOOQ/jOOQ#7629] Export check constraints through DSLContext.ddl()
- [jOOQ/jOOQ#8528] Interpret check constraints in DDL
- [jOOQ/jOOQ#9562] Add org.jooq.Check as a meta model
- [jOOQ/jOOQ#9562] Add Table.getChecks()
2019-11-19 09:36:33 +01:00
Lukas Eder
38e458066f [jOOQ/jOOQ#8452] Support parsing ASC sorting in constraints 2019-11-18 12:12:16 +01:00
Lukas Eder
8b894612c3 [jOOQ/jOOQ#8452] [jOOQ/jOOQ#9561] Parse CLUSTERED / NONCLUSTERED 2019-11-18 12:03:10 +01:00
Lukas Eder
e6d1a04b23 [jOOQ/jOOQ#9557] Add support for ALTER TABLE .. DROP CONSTRAINT IF
EXISTS

- Added DDL interpreter support
2019-11-18 11:31:33 +01:00
Lukas Eder
8461680d28 [jOOQ/jOOQ#9557] Add support for ALTER TABLE .. DROP CONSTRAINT IF
EXISTS

- Added parser support
2019-11-18 11:27:19 +01:00
Lukas Eder
fa21941e6e [jOOQ/jOOQ#9557] Add support for ALTER TABLE .. DROP CONSTRAINT IF EXISTS
- Added native support
2019-11-18 11:22:23 +01:00
Lukas Eder
afac78a950 [jOOQ/jOOQ#9558] Clarify in Javadoc of selectFrom() and related methods that all Table.fields() will be fetched, not DSL.asterisk() 2019-11-18 10:38:48 +01:00
Lukas Eder
919364d615 [jOOQ/jOOQ#9498] DDLDatabase: Flyway's repatable migrations are executed to early 2019-11-15 17:10:45 +01:00