createDataSource

open override fun createDataSource(pathToDb: Path): DataSource(source)

This does not check if the database is shutdown. It simply removes the database from the file system. If it doesn't exist, then nothing happens.

Return

the data source

Parameters

pathToDb

the path to the embedded database on disk


fun createDataSource(dbName: String, dbDir: Path = KSL.dbDir, user: String? = null, pWord: String? = null, create: Boolean = false): DataSource(source)

Return

the created DataSource

Parameters

dbDir

a path to the database, must not be null

user

a username, can be null

pWord

a password, can be null

create

a flag to indicate if the database should be created upon first connection


fun createDataSource(pathToDb: Path, user: String? = null, pWord: String? = null, create: Boolean = false): DataSource(source)

Return

the created DataSource

Parameters

pathToDb

the full path to the database as a string, must not be null

user

a username, can be null

pWord

a password, can be null

create

a flag to indicate if the database should be created upon first connection