Skip to content

Commit

Permalink
Document options for all platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
alessandromorelli committed Aug 19, 2024
1 parent e512409 commit 7f8f8fb
Showing 1 changed file with 20 additions and 6 deletions.
26 changes: 20 additions & 6 deletions docs/en/reference/schema-representation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -95,16 +95,30 @@ and absolutely not portable.
- **unlogged** (boolean): Set a PostgreSQL table type as
`unlogged <https://www.postgresql.org/docs/current/sql-createtable.html#SQL-CREATETABLE-UNLOGGED>`_

- **temporary** (boolean): Set a PostgreSQL table type as
`temporary <https://www.postgresql.org/docs/current/sql-createtable.html#SQL-CREATETABLE-TEMPORARY>`_
- **temporary** (boolean or string): Set table type as temporary
Supported on DB2, MySQL, MariaDB, Oracle, PostgreSQL and SQLite. SQL Server does not have a specific DML for temporary tables.

- **on_commit** (string): Set a PostgreSQL table
`commit options <https://www.postgresql.org/docs/current/sql-createtable.html#SQL-CREATETABLE-PARMS-ON-COMMIT>`_,
only used if **temporary** is true
Option values for MySQL, MariaDB, PostgreSQL and SQLite:

- true (bool)
- false (bool)

Option values for Oracle:

- global (string): emits CREATE GLOBAL TEMPORARY TABLE statement
- private (string): emits CREATE PRIVATE TEMPORARY TABLE statement, table name must begin with PRIVATE_TEMP_TABLE_PREFIX, default 'ORA$PTT'

Option values for DB2:

- created (string): emits CREATE GLOBAL TEMPORARY TABLE statement
- declared (string): emits DECLARE GLOBAL TEMPORARY TABLE statement

- **on_commit** (string): declare table's commit options, only used if option **temporary** is set.
Supported on Oracle and PostgreSQL

- ``preserve``: preserve rows on commit
- ``delete``: delete rows on commit
- ``drop``: drop rows on commit
- ``drop``: drop table on commit - only supported by PostgreSQL

Column
~~~~~~
Expand Down

0 comments on commit 7f8f8fb

Please sign in to comment.