EmbeddedDbIfc

Functions

Link copied to clipboard
abstract fun createDatabase(dbName: String, dbDir: Path = KSL.dbDir): Database

If the database already exists it is deleted and recreated

Link copied to clipboard
abstract fun createDataSource(pathToDb: Path): DataSource
Link copied to clipboard
abstract fun deleteDatabase(pathToDb: Path)

Deletes the embedded database

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())

abstract fun isDatabase(path: Path): Boolean

Checks if a file is an embedded database

Link copied to clipboard
abstract fun openDatabase(pathToDb: Path): Database

The database file must already exist at the path

open fun openDatabase(fileName: String): Database

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