Companion

object Companion

Properties

Link copied to clipboard
val dbDir: Path
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun connectKSLDatabase(clearDataOption: Boolean = false, dBProperties: Properties): 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 simulation runs will be deleted if the clear data option is true. The deletion occurs immediately if configured as true.

Link copied to clipboard
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.

Link copied to clipboard
fun createEmbeddedDerbyKSLDatabase(dbName: String, dbDirectory: Path = dbDir): Database

This method creates the database on disk and configures it to hold KSL simulation data.

Link copied to clipboard
fun createKSLDatabase(dbName: String, dbDirectory: Path = dbDir): KSLDatabase

This method creates the database on disk and configures it to hold KSL simulation data.

Link copied to clipboard
fun createPostgreSQLKSLDatabase(dbName: String, dbServerName: String = "localhost", user: String = "postgres", pWord: String = ""): Database

Creates a new KSLDatabase

Link copied to clipboard
fun createSQLiteKSLDatabase(dbName: String, dbDirectory: Path = dbDir): Database

This method creates the database on disk and configures it to hold KSL simulation data.

Link copied to clipboard

Executes the KSL database creation script on the database if the database does not already have a KSL_DB schema. If the database already contains a KSL_DB schema then the creation script is not executed. This method assumes that the underlying data source supports schemas. For example, SQLite does not support schemas.