class DefaultDBApi extends DBApi

Default implementation of the DB API.

Source
DefaultDBApi.scala
Linear Supertypes
DBApi, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DefaultDBApi
  2. DBApi
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new DefaultDBApi(configuration: Map[String, Config], defaultConnectionPool: ConnectionPool = new HikariCPConnectionPool(Environment.simple()), environment: Environment = Environment.simple(), injector: Injector = NewInstanceInjector)

Value Members

  1. 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
  2. def databases(): Seq[Database]

    All configured databases.

    All configured databases.

    Definition Classes
    DBApi
  3. 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.

  4. def shutdown(): Unit

    Shutdown all databases, releasing resources.

    Shutdown all databases, releasing resources.

    Definition Classes
    DBApi

Deprecated Value Members

  1. 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