DatabaseDialectMetadata

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
suspend fun allTablesNames(): List<String>

Returns a list with the names of all the defined tables in the current database schema. The names will be returned with schema prefixes if the database supports it.

Link copied to clipboard

Returns a list with the names of all the tables in all database schemas. The names will be returned with schema prefixes, if the database supports it, and non-user defined tables, like system information table names, will be included.

Link copied to clipboard
suspend fun catalog(transaction: R2dbcTransaction): String

Returns the catalog name of the connection of the specified transaction.

Link copied to clipboard

Returns a map with the foreign key constraints of all the defined columns sets in each of the specified tables.

Link copied to clipboard

Returns a map with all the defined check constraints in each of the specified tables.

Link copied to clipboard
open suspend fun existingIndices(vararg tables: Table): Map<Table, List<Index>>

Returns a map with all the defined indices in each of the specified tables.

Link copied to clipboard
suspend fun existingPrimaryKeys(vararg tables: Table): Map<Table, PrimaryKeyMetadata?>

Returns a map with the primary key metadata in each of the specified tables.

Link copied to clipboard
suspend fun existingSequences(vararg tables: Table): Map<Table, List<Sequence>>

Returns a map with all the defined sequences that hold a relation to the specified tables in the database.

Link copied to clipboard
suspend fun getDatabase(): String

Returns the name of the current database.

Link copied to clipboard
suspend fun resetCaches()

Clears any cached values.

Link copied to clipboard
suspend fun resetSchemaCaches()

Clears any cached values including schema names.

Link copied to clipboard
suspend fun schemaExists(schema: Schema): Boolean

Checks if the specified schema exists.

Link copied to clipboard
suspend fun sequenceExists(sequence: Sequence): Boolean

Returns whether the specified sequence exists.

Link copied to clipboard
suspend fun sequences(): List<String>

Returns a list of the names of all sequences in the database.

Link copied to clipboard

Returns true if the database supports the LIMIT clause with update and delete statements.

Link copied to clipboard
suspend fun tableColumns(vararg tables: Table): Map<Table, List<ColumnMetadata>>

Returns a map with the column metadata of all the defined columns in each of the specified tables.

Link copied to clipboard
suspend fun tableExists(table: Table): Boolean

Checks if the specified table exists in the database.