From 987ac77fbf80537ea4eb78846b618e3027653f68 Mon Sep 17 00:00:00 2001 From: lukaseder Date: Fri, 5 Aug 2016 13:56:17 +0200 Subject: [PATCH] Document some recent DDL feature additions --- .../resources/org/jooq/web/manual-3.8.xml | 207 +++++++----------- .../resources/org/jooq/web/manual-3.9.xml | 207 +++++++----------- 2 files changed, 156 insertions(+), 258 deletions(-) diff --git a/jOOQ-manual/src/main/resources/org/jooq/web/manual-3.8.xml b/jOOQ-manual/src/main/resources/org/jooq/web/manual-3.8.xml index cb002705b3..63c896f690 100644 --- a/jOOQ-manual/src/main/resources/org/jooq/web/manual-3.8.xml +++ b/jOOQ-manual/src/main/resources/org/jooq/web/manual-3.8.xml @@ -5665,81 +5665,76 @@ VALUES ('John', 'Hitchcock') jOOQ currently supports the following ALTER statements (SQL examples in PostgreSQL syntax):

+

Indexes

+ + + +

Schemas

+ + + +

Sequences

+ + +

Tables

+

+ These statements alter the table itself: +

+ + +

These statements alter / add / drop columns and their types:

- - - - +// Dropping columns +create.alterTable(AUTHOR).drop(TITLE).execute();]]>

These statements alter / add / drop constraints:

- - - - +// Dropping constraints +create.alterTable(AUTHOR).dropConstraint("UK_TITLE").execute();]]> +

Views

-

Sequences

- - - - - + @@ -5754,12 +5749,16 @@ create.alterSequence(S_AUTHOR_ID).restartWith(n).execute();]]>

Indexes

- - - - + + +

Schemas

+ +

Sequences

@@ -5770,27 +5769,8 @@ create.alterSequence(S_AUTHOR_ID).restartWith(n).execute();]]>

Tables

- - - - + ))).execute();]]>

Views

- - - - + ))).execute();]]> @@ -5848,39 +5816,23 @@ WHERE 50 < (

Indexes

- - - - + + +

Schemas

+ +

Sequences

- - - - +

Tables

- - - - +

Views

- - - - + @@ -5895,10 +5847,7 @@ create.dropViewIfExists(V_AUTHOR).execute();]]> The TRUNCATE syntax is trivial:

- - TRUNCATE TABLE AUTHOR; - create.truncate(AUTHOR).execute(); - +create.truncate(AUTHOR).execute();

TRUNCATE is not supported by Ingres and SQLite. jOOQ will execute a DELETE FROM AUTHOR statement instead. diff --git a/jOOQ-manual/src/main/resources/org/jooq/web/manual-3.9.xml b/jOOQ-manual/src/main/resources/org/jooq/web/manual-3.9.xml index ab3956cb36..0a27d4c131 100644 --- a/jOOQ-manual/src/main/resources/org/jooq/web/manual-3.9.xml +++ b/jOOQ-manual/src/main/resources/org/jooq/web/manual-3.9.xml @@ -5664,81 +5664,76 @@ VALUES ('John', 'Hitchcock') jOOQ currently supports the following ALTER statements (SQL examples in PostgreSQL syntax):

+

Indexes

+ + + +

Schemas

+ + + +

Sequences

+ + +

Tables

+

+ These statements alter the table itself: +

+ + +

These statements alter / add / drop columns and their types:

- - - - +// Dropping columns +create.alterTable(AUTHOR).drop(TITLE).execute();]]>

These statements alter / add / drop constraints:

- - - - +// Dropping constraints +create.alterTable(AUTHOR).dropConstraint("UK_TITLE").execute();]]> +

Views

-

Sequences

- - - - - + @@ -5753,12 +5748,16 @@ create.alterSequence(S_AUTHOR_ID).restartWith(n).execute();]]>

Indexes

- - - - + + +

Schemas

+ +

Sequences

@@ -5769,27 +5768,8 @@ create.alterSequence(S_AUTHOR_ID).restartWith(n).execute();]]>

Tables

- - - - + ))).execute();]]>

Views

- - - - + ))).execute();]]> @@ -5847,39 +5815,23 @@ WHERE 50 < (

Indexes

- - - - + + +

Schemas

+ +

Sequences

- - - - +

Tables

- - - - +

Views

- - - - + @@ -5894,10 +5846,7 @@ create.dropViewIfExists(V_AUTHOR).execute();]]> The TRUNCATE syntax is trivial:

- - TRUNCATE TABLE AUTHOR; - create.truncate(AUTHOR).execute(); - +create.truncate(AUTHOR).execute();

TRUNCATE is not supported by Ingres and SQLite. jOOQ will execute a DELETE FROM AUTHOR statement instead.