DatabaseConfiguration

Configuration for opening a database.

actual class DatabaseConfiguration(config: DatabaseConfiguration?) : DelegatedClass<<Error class: unknown class>> (source)

Constructors

Link copied to clipboard
expect constructor()
expect constructor(config: DatabaseConfiguration?)

Copy constructor

actual constructor()
actual constructor(config: DatabaseConfiguration?)
actual constructor()
actual constructor(config: DatabaseConfiguration?)

Properties

Link copied to clipboard
expect var directory: String

The path to the directory that contains the database. If this path has not been set explicitly (see: setDirectory below), then it is the system default.

actual var directory: String
actual var directory: String
Link copied to clipboard

ENTERPRISE EDITION API

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
fun DatabaseConfiguration?.newConfig(databasePath: String? = null, encryptionKey: EncryptionKey? = null): DatabaseConfiguration

Create a DatabaseConfiguration, overriding the receiver's values with the passed parameters:

Link copied to clipboard
expect fun setDirectory(directory: String): DatabaseConfiguration

Set the canonical path of the directory in which to store the database. If the directory doesn't already exist it will be created. If it cannot be created an IllegalStateException will be thrown.

actual fun setDirectory(directory: String): DatabaseConfiguration
actual fun setDirectory(directory: String): DatabaseConfiguration
Link copied to clipboard
Link copied to clipboard
open override fun toString(): String