createDataSource

open override fun createDataSource(pathToDb: Path): DataSource

Return

the data source

Parameters

pathToDb

the path to the database file, must not be null


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

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

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