R2dbcDatabaseMetadataImpl

class R2dbcDatabaseMetadataImpl(    database: String,     connection: Connection,     vendorDialect: String,     scope: R2dbcScope) : R2dbcExposedDatabaseMetadata

Base class responsible for retrieving and storing information about the R2DBC driver and underlying database.

Constructors

Link copied to clipboard
constructor(database: String, connection: Connection, vendorDialect: String, scope: R2dbcScope)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Whether the database supports ALTER TABLE with an add column clause.

Link copied to clipboard

Whether the database supports ALTER TABLE with a drop column clause.

Link copied to clipboard

Whether the database supports the LIMIT clause with update and delete statements.

Link copied to clipboard

Whether the database supports getting multiple result sets from a single execute.

Link copied to clipboard
open override val supportsSelectForUpdate: Boolean

Whether the database supports SELECT FOR UPDATE statements.

Functions

Link copied to clipboard
open override fun cleanCache()
Link copied to clipboard
open suspend override fun columns(vararg tables: Table): Map<Table, List<ColumnMetadata>>

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

Link copied to clipboard
open suspend override fun existingCheckConstraints(vararg tables: Table): Map<Table, List<CheckConstraint>>

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

Link copied to clipboard
open suspend override 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
open suspend override fun existingPrimaryKeys(vararg tables: Table): Map<Table, PrimaryKeyMetadata?>

Returns a map with the PrimaryKeyMetadata in each of the specified tables.

Link copied to clipboard
open suspend override 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
open suspend override fun getDatabaseDialectMode(): String?

The name of the mode of the database. This is currently applicable only to H2 databases.

Link copied to clipboard
open override fun getDatabaseDialectName(): String

The name of the database based on the name of the underlying JDBC driver.

Link copied to clipboard
open override fun getDatabaseProductVersion(): String

The version number of the database product as a String.

Link copied to clipboard
open suspend override fun getDefaultIsolationLevel(): IsolationLevel

The default transaction isolation level for the database.

Link copied to clipboard
open override fun getMajorVersion(): Int

The major version number of the database.

Link copied to clipboard
open override fun getMinorVersion(): Int

The minor version number of the database.

Link copied to clipboard
open override fun getVersion(): BigDecimal

The version number of the database as a BigDecimal.

Link copied to clipboard
open override fun resetCurrentScheme()
Link copied to clipboard
open override fun resolveReferenceOption(refOption: String): ReferenceOption?
Link copied to clipboard
open suspend override fun schemaNames(): List<String>

A list of existing schema names.

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

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

Link copied to clipboard
open suspend override fun tableConstraints(tables: List<Table>): Map<String, List<ForeignKeyConstraint>>

Returns a map with the ForeignKeyConstraint of all the defined columns in each of the specified tables, with the table name used as the key.

Link copied to clipboard
open suspend override fun tableNames(): Map<String, List<String>>

A mapping of all schema names in the database to a list of all defined table names in each schema.

Link copied to clipboard
open suspend override fun tableNamesByCurrentSchema(tableNamesCache: Map<String, List<String>>?): SchemaMetadata

Returns the current schema name and a list of its existing table names, stored as SchemaMetadata.