connectPostgresKSLDatabase

fun connectPostgresKSLDatabase(clearDataOption: Boolean = false, dbName: String, dbServerName: String = "localhost", user: String = "postgres", pWord: String = ""): KSLDatabase

Creates a reference to a KSLDatabase. This method assumes that the data source has an existing properly configured KSL schema. If it does not, an exception occurs. If it has one the data from previous simulations remains. If the clear data option is set to true then the data WILL be deleted immediately.

Return

a reference to a KSLDatabase

Parameters

clearDataOption

whether the data will be deleted when the KSLDatabase instance is created

dbServerName

the name of the database server, must not be null

dbName

the name of the database, must not be null

user

the user

pWord

the password