Commit Graph

8022 Commits

Author SHA1 Message Date
Lukas Eder
476d4e9bc5 [jOOQ/jOOQ#7639] There is no CHECK_CONSTRAINTS.TABLE_NAME column in
MySQL
2019-12-03 15:01:31 +01:00
Lukas Eder
15e9308729 [jOOQ/jOOQ#9613] Update Configuration Javadoc 2019-12-03 15:01:14 +01:00
Lukas Eder
cea7b280d2 [jOOQ/jOOQ#7639] Workaround for MariaDB bug 2019-12-03 12:04:01 +01:00
Lukas Eder
1a947a6b6a [jOOQ/jOOQ#9610] Add code generation support for Derby indexes 2019-12-03 10:33:32 +01:00
Lukas Eder
53f7cc0c79 [jOOQ/jOOQ#9601] Add <includeSystemIndexes/> 2019-12-03 09:39:00 +01:00
Lukas Eder
8e1cfbcb4b [jOOQ/jOOQ#7639] Forward compatible H2 check constraint generation code
See also [h2database/h2database#2286]
2019-12-02 11:00:42 +01:00
Lukas Eder
fb07821ced [jOOQ/jOOQ#7639] Added CHECK code generation support for Derby 2019-12-02 10:48:24 +01:00
Lukas Eder
f530abd831 [jOOQ/jOOQ#7639] Generate check constraints in Firebird 2019-11-28 17:17:36 +01:00
Lukas Eder
c7378bbc63 [jOOQ/jOOQ#9600] WIP 2019-11-28 14:04:25 +01:00
Knut Wannheden
7ced55d45f [jOOQ/jOOQ#9442] Cosmetics 2019-11-28 07:05:03 +01:00
Knut Wannheden
c09ddd9c8c [jOOQ/jOOQ#9442] Sequence flag generation for PostgreSQL
Note: Cache information is not available from PostgreSQL's
`INFORMATION_SCHEMA.SEQUENCES`.
2019-11-27 16:49:17 +01:00
Knut Wannheden
c5a35289fa [jOOQ/jOOQ#9597] Fix bug in DefaultRelations#getCheckConstraints()
All check constraints ended up being owned by the same table.
2019-11-27 16:15:24 +01:00
Knut Wannheden
9c1ea8ab22 [jOOQ/jOOQ#9442] Don't set START WITH in H2Database
H2 only supports the `START WITH` clause in `CREATE SEQUENCE` (not in
`ALTER SEQUENCE`) and thus only controls the first value ever returned
by the sequence.
2019-11-27 15:23:45 +01:00
Knut Wannheden
791c69a9c7 [jOOQ/jOOQ#9442] Add sequence flags to code generator
Adds an overload factory method `Internal#createSequence()` which
accepts the sequence flags as individual parameters. The Java and Scala
code generators now generate code using this factory method.

So far only the `H2Database` knows how to supply the sequence flags to
the code generator. Other dialects supporting sequences will follow in
follow-up commits.

Also note that support for the `ORDER` flag will be added separately
(see jOOQ/jOOQ#9346).
2019-11-27 14:14:42 +01:00
Knut Wannheden
a2674732c9 [jOOQ/jOOQ#9565] Fix code generator for H2 inline checks 2019-11-27 11:49:59 +01:00
Knut Wannheden
727ca0e842 [jOOQ/jOOQ#9596] Regenerate MySQL information schema code against 8.0.18 2019-11-27 10:49:56 +01:00
Knut Wannheden
810a718f10 [jOOQ/jOOQ#9361] Regenerate H2 information schema for 1.4.200 2019-11-27 10:31:45 +01:00
Knut Wannheden
9c80eea20c [jOOQ/jOOQ#9595] Regenerate HSQLDB information schema for version 2.5.0 2019-11-27 10:27:25 +01:00
Knut Wannheden
fcc90d0c5a [jOOQ/jOOQ#9442] Code generator uses factory method for sequences
Instead of generating code which directly uses the `SequenceImpl`
constructor, the generator now emits code using a static factory method
in the `Internal` factory class.

Also removes duplicate H2 dependency from `jOOQ/pom.xml`.
2019-11-27 10:04:08 +01:00
Lukas Eder
d420213d2e [jOOQ/jOOQ#9591] Let DefaultRecordContext and DefaultExecuteContext extend AbstractScope 2019-11-25 12:37:13 +01:00
Lukas Eder
26f52c7d6e [jOOQ/jOOQ#9238] Add a new Settings.parseNameCase 2019-11-25 12:04:05 +01:00
Lukas Eder
b2a20cc2eb [jOOQ/jOOQ#9238] Add a new Settings.parseNameCase
Implemented all cases except DEFAULT
2019-11-25 11:22:52 +01:00
Lukas Eder
bf127abe88 [jOOQ/jOOQ#9589] Added parser support 2019-11-25 09:45:06 +01:00
Lukas Eder
7c3f5a0109 [jOOQ/jOOQ#9589] Fix regression 2019-11-25 09:36:54 +01:00
Knut Wannheden
66670b5470 [jOOQ/jOOQ#9588][jOOQ/jOOQ#9589] Use H2 BITNOT(), LSHIFT(), and RSHIFT()
No need to emulate `bitNot()`, `shr()`, and `shl()` anymore in H2
1.4.200.
2019-11-23 21:26:43 +01:00
Lukas Eder
8d01407974 [jOOQ/jOOQ#9586] Add MigrationListener SPI 2019-11-21 23:27:50 +01:00
Lukas Eder
e51acdedc7 [jOOQ/jOOQ#9506] Add CHANGELOG.SQL_COUNT column 2019-11-21 20:22:20 +01:00
Lukas Eder
f7fe559711 [jOOQ/jOOQ#9506] Add CHANGELOG.SQL and CHANGELOG.STATUS columns 2019-11-21 20:12:18 +01:00
Lukas Eder
a306211890 [jOOQ/jOOQ#9506] Insert CHANGELOG record prior to migration
- Insert the record already before migrating, then update
- Added more TODOs
2019-11-21 19:40:51 +01:00
Lukas Eder
83da9e2c23 [jOOQ/jOOQ#9506] [jOOQ/jOOQ#9583]
- [jOOQ/jOOQ#9506] Add org.jooq.Migration to describe a migration
between two org.jooq.Version
- [jOOQ/jOOQ#9583] Add a VersionProvider SPI
2019-11-21 18:08:09 +01:00
Lukas Eder
9bbc6c848a [jOOQ/jOOQ#9505] Added Version.root() 2019-11-21 15:27:34 +01:00
Lukas Eder
dfe0464c43 [jOOQ/jOOQ#9584] Add Source.readString() 2019-11-21 14:53:23 +01:00
Lukas Eder
cdc48737b2 [jOOQ/jOOQ#9584] Cosmetic fixes 2019-11-21 14:01:44 +01:00
Lukas Eder
b383030db2 [jOOQ/jOOQ#9584] Add Source.readString() 2019-11-21 13:16:03 +01:00
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