Alternate constructor for deriving the driver from the configuration.
Alternate constructor for deriving the driver from the configuration.
config.getString("driver") match { case "H2" => H2Driver case "MySQL" => MySQLDriver case "Postgres" => PostgresDriver case "Derby" => DerbyDriver case "Hsqldb" => HsqldbDriver case "SQLite" => SQLiteDriver }
configuration (projected to the correct key)
new instance
driver object to use
configuration of the database. Project it down to the required sub-configuration before passing
All tables relevant in this context.
All tables relevant in this context. Can be queried by the DBInitializer implementation to aid startup
all tables
A base class for Contexts that derive their database connection from a typesafe configuration. The driver object still needs to be determined "by hand", or by calling the alternate constructor, which offers a way to determine it by configuration