DatabaseConfig

sealed class DatabaseConfig

Type that can contain any of the database configurations defined by the library.

Samples


fun main() { 
   //sampleStart 
   val memoryDatabaseConfig = DatabaseConfig.Memory 
   //sampleEnd
}

fun main() { 
   //sampleStart 
   val databaseConfig = DatabaseConfig.Sqlite(SqliteDbConfiguration("bdk-sqlite")) 
   //sampleEnd
}

Types

Link copied to clipboard
object Memory : DatabaseConfig

Configuration for an in-memory database

Link copied to clipboard
data class Sled(val config: SledDbConfiguration) : DatabaseConfig

Configuration for a Sled database

Link copied to clipboard
data class Sqlite(val config: SqliteDbConfiguration) : DatabaseConfig

Configuration for a SQLite database

Inheritors

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