# Database

class Database : DatabaseApi

Class representing the underlying JDBC database to which connections are made and on which transaction tasks are performed.

#### Parameters

connector

Accessor for retrieving database connections wrapped as ExposedConnection

## Types

Companion
Link copied to clipboard
object Companion

## Properties

config
Link copied to clipboard
val config: DatabaseConfig
connector
Link copied to clipboard
val connector: () -> ExposedConnection<*>
defaultFetchSize
Link copied to clipboard
var defaultFetchSize: Int?
dialect
Link copied to clipboard
open override val dialect: DatabaseDialect
dialectMetadata
Link copied to clipboard
val dialectMetadata: DatabaseDialectMetadata

The name of the database as a DatabaseDialectMetadata.

dialectMode
Link copied to clipboard
open override val dialectMode: String?
fullVersion
Link copied to clipboard
open override val fullVersion: String
identifierManager
Link copied to clipboard
open override val identifierManager: IdentifierManagerApi
name
Link copied to clipboard
val Database.name: String

Returns the name of the database obtained from its connection URL.

supportsAlterTableWithAddColumn
Link copied to clipboard
open override val supportsAlterTableWithAddColumn: Boolean
supportsAlterTableWithDropColumn
Link copied to clipboard
open override val supportsAlterTableWithDropColumn: Boolean
supportsMultipleResultSets
Link copied to clipboard
open override val supportsMultipleResultSets: Boolean
supportsSelectForUpdate
Link copied to clipboard
open override val supportsSelectForUpdate: Boolean
transactionManager
Link copied to clipboard
val Database.transactionManager: JdbcTransactionManager

The JdbcTransactionManager instance that is associated with this Database.

url
Link copied to clipboard
open override val url: String
useNestedTransactions
Link copied to clipboard
val useNestedTransactions: Boolean
vendor
Link copied to clipboard
open override val vendor: String
version
Link copied to clipboard
open override val version: Version

## Functions

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