# DatabaseConfig

interface DatabaseConfig

Base configuration for a DatabaseApi instance.

Parameters set in this class apply to all transactions that use the DatabaseApi instance, unless an applicable override is specified in an individual transaction block.

## Types

Builder
Link copied to clipboard
open class Builder

Builder API responsible for constructing a custom DatabaseApi configuration parameter state.

Companion
Link copied to clipboard
object Companion

## Properties

defaultFetchSize
Link copied to clipboard
abstract val defaultFetchSize: Int?
defaultIsolationLevel
Link copied to clipboard
abstract val defaultIsolationLevel: Int
defaultMaxAttempts
Link copied to clipboard
abstract val defaultMaxAttempts: Int
defaultMaxRetryDelay
Link copied to clipboard
abstract val defaultMaxRetryDelay: Long
defaultMinRetryDelay
Link copied to clipboard
abstract val defaultMinRetryDelay: Long
defaultQueryTimeout
Link copied to clipboard
abstract val defaultQueryTimeout: Int
defaultReadOnly
Link copied to clipboard
abstract val defaultReadOnly: Boolean
defaultSchema
Link copied to clipboard
abstract val defaultSchema: Schema?
dispatcher
Link copied to clipboard
abstract val dispatcher: CoroutineDispatcher

The CoroutineDispatcher to be used when determining the scope of Exposed transaction if It is run in a context with no dispatcher. It could be, for instance, a Ktor route or a standalone Kotlin script.

explicitDialect
Link copied to clipboard
abstract val explicitDialect: DatabaseDialect?
keepLoadedReferencesOutOfTransaction
Link copied to clipboard
abstract val keepLoadedReferencesOutOfTransaction: Boolean
logTooMuchResultSetsThreshold
Link copied to clipboard
abstract val logTooMuchResultSetsThreshold: Int
maxEntitiesToStoreInCachePerEntity
Link copied to clipboard
abstract val maxEntitiesToStoreInCachePerEntity: Int
preserveIdentifierCasing
Link copied to clipboard
abstract val preserveIdentifierCasing: Boolean
preserveKeywordCasing
Link copied to clipboard
abstract val preserveKeywordCasing: Boolean
sqlLogger
Link copied to clipboard
abstract val sqlLogger: SqlLogger
useNestedTransactions
Link copied to clipboard
abstract val useNestedTransactions: Boolean
warnLongQueriesDuration
Link copied to clipboard
abstract val warnLongQueriesDuration: Long?