createPostgresKSLDatabaseObserver

fun createPostgresKSLDatabaseObserver(model: Model, dbName: String, dbServerName: String = "localhost", user: String = "postgres", pWord: String = ""): KSLDatabaseObserver(source)

Creates a Postgres KSL based database and returns a KSLDatabaseObserver configured to observe the supplied model. The database will have a schema called "ksl_db" created if it does not exist. If it already exists, it will be dropped and recreated. All current data will be deleted.

Parameters

model

the model to observe

dbName

the name of the database that the user is logging into. Defaults to "postgres" This is typically the user's name because users are given a database

dbServerName

the name of the postgres server, defaults to "localhost"

user

the username, defaults to "postgres"

pWord

the password as a string, defaults to ""