connect Postgres KSLDatabase
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
clear Data Option
whether the data will be deleted when the KSLDatabase instance is created
db Server Name
the name of the database server, must not be null
db Name
the name of the database, must not be null
user
the user
p Word
the password