SQLiteDb

open class SQLiteDb @JvmOverloads constructor(dbName: String, dbDirectory: Path = KSL.dbDir, deleteIfExists: Boolean = true) : Database(source)

Facilitates the creation of a database backed by SQLite. The database will be empty.

Return

an SQLite configured database

Parameters

dbName

the name of the database

dbDirectory

the directory containing the database. By default, KSL.dbDir.

deleteIfExists

If true, an existing database in the supplied directory with the same name will be deleted and an empty database will be constructed.

Constructors

Link copied to clipboard
constructor(tableDefinitions: Set<DbTableData>, dbName: String, dbDirectory: Path = KSL.dbDir, deleteIfExists: Boolean = true)

This constructs a simple SQLite database on disk. The database will contain empty tables based on the table definitions. If the database already exists on disk, it will be deleted and recreated.

constructor(dbName: String, dbDirectory: Path = KSL.dbDir, deleteIfExists: Boolean = true)

Types

Link copied to clipboard