shutDownDataSource

fun shutDownDataSource(pathToDb: Path, user: String? = null, pWord: String? = null): DataSource

Creates a data source that can be used to shut down an embedded derby database upon first connection.

Return

the created DataSource

Parameters

pathToDb

a path to the database, must not be null

user

a username, can be null

pWord

a password, can be null


fun shutDownDataSource(dbName: String, user: String? = null, pWord: String? = null): DataSource

Creates a data source that can be used to shut down an embedded derby database upon first connection.

Return

the created DataSource

Parameters

dbName

the path to the database, must not be null

user

a username, can be null

pWord

a password, can be null