Database

expect constructor(name: String)(source)

Construct a Database with a given name and the default config. If the database does not yet exist it will be created.

Parameters

name

The name of the database: May NOT contain capital letters!

Throws

if any error occurs during the open operation.


expect constructor(name: String, config: DatabaseConfiguration)(source)

Construct a Database with a given name and database config. If the database does not yet exist, it will be created, unless the readOnly option is used.

Parameters

name

The name of the database: May NOT contain capital letters!

config

The database config.

Throws

Throws an exception if any error occurs during the open operation.

actual constructor(name: String)(source)
actual constructor(name: String, config: DatabaseConfiguration)(source)
actual constructor(name: String)(source)
actual constructor(name: String, config: DatabaseConfiguration)(source)