Companion

Functions

Link copied to clipboard
open override fun createDatabase(dbName: String, dbDir: Path): Database

If the database already exists it is deleted

Link copied to clipboard
open override fun createDataSource(pathToDb: Path): DataSource
Link copied to clipboard
fun createDefaultConfiguration(readOnly: Boolean = false): SQLiteConfig

Creates a recommended configuration that has been tested for performance. https://ericdraken.com/sqlite-performance-testing/

Link copied to clipboard
open override fun deleteDatabase(pathToDb: Path)

Deletes a SQLite database Strategy:

Link copied to clipboard
open fun isDatabase(file: File): Boolean

A convenience method for those that use File instead of Path. Calls isEmbeddedDerbyDatabase(file.toPath())

open override fun isDatabase(path: Path): Boolean

Checks if a file is a valid SQLite database Strategy:

Link copied to clipboard
open fun openDatabase(fileName: String): Database

The database file must already exist within the KSLDatabase.dbDir directory It is opened for reading and writing.

open override fun openDatabase(pathToDb: Path): Database

The database file must already exist at the path

Link copied to clipboard

The database file must already exist at the path