class DefaultDBApi extends DBApi
Ordering
- Alphabetic
- By Inheritance
Inherited
- DefaultDBApi
- DBApi
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new DefaultDBApi(configuration: Map[String, Config], defaultConnectionPool: ConnectionPool = new HikariCPConnectionPool(Environment.simple()), environment: Environment = Environment.simple(), injector: Injector = NewInstanceInjector)
Value Members
- def database(name: String): Database
Get database with given configuration name.
Get database with given configuration name.
- name
the configuration name of the database
- Definition Classes
- → DBApi
- def databases(): Seq[Database]
All configured databases.
All configured databases.
- Definition Classes
- → DBApi
- def initialize(logInitialization: Boolean): Unit
Try to initialize all the configured databases.
Try to initialize all the configured databases. This ensures that the configurations will be checked, but the application initialization will not be affected if one of the databases is offline.
- logInitialization
if we need to log all the database initialization.
- def shutdown(): Unit
Shutdown all databases, releasing resources.
Shutdown all databases, releasing resources.
- Definition Classes
- → DBApi
Deprecated Value Members
- def connect(logConnection: Boolean = false): Unit
Try to connect to all data sources.
Try to connect to all data sources.
- Annotations
- @deprecated
- Deprecated
(Since version 2.7.0) Use initialize instead, which does not try to connect to the database
Default implementation of the DB API.