create Data Source
Return
the data source
Parameters
path To Db
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
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
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