create Data 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
path To Db
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
db Dir
a path to the database, must not be null
user
a username, can be null
p Word
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
path To Db
the full path to the database as a string, must not be null
user
a username, can be null
p Word
a password, can be null
create
a flag to indicate if the database should be created upon first connection