Packages

object DatabaseConfig extends DatabaseConfig

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DatabaseConfig
  2. DatabaseConfig
  3. DatabaseConfig
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  8. def forConfig[P <: BasicProfile](path: String, config: Config = ConfigFactory.load(), classLoader: ClassLoader = ClassLoaderUtil.defaultClassLoader)(implicit arg0: ClassTag[P]): BasicDatabaseConfig[P]

    Load a database configuration through Typesafe Config, reading the profile from it: profile is the fully qualified name of the profile object, e.g.

    Load a database configuration through Typesafe Config, reading the profile from it: profile is the fully qualified name of the profile object, e.g. "slick.jdbc.PostgresProfile$". See forProfileConfig for the other configuration keys.

    path

    The path in the configuration file for the database configuration, or an empty string for the top level of the Config object.

    config

    The Config object to read from. This defaults to the global app config (e.g. in application.conf at the root of the class path).

    Definition Classes
    DatabaseConfig
  9. def forDataSource[P <: JdbcProfile](profile: P, ds: DataSource, keepAliveConnection: Boolean = false): JdbcDatabaseConfig[P]
    Definition Classes
    DatabaseConfig
  10. def forDriver[P <: JdbcProfile](profile: P, driver: Driver, url: String, user: String = null, password: String = null, prop: Properties = null, classLoader: ClassLoader = slick.util.ClassLoaderUtil.defaultClassLoader): JdbcDatabaseConfig[P]
    Definition Classes
    DatabaseConfig
  11. def forName[P <: JdbcProfile](profile: P, name: String): JdbcDatabaseConfig[P]
    Definition Classes
    DatabaseConfig
  12. def forProfileConfig[P <: BasicProfile](profile: P, path: String, config: Config = ConfigFactory.load(), classLoader: ClassLoader = ClassLoaderUtil.defaultClassLoader): BasicDatabaseConfig[P]

    Load a database configuration for the given profile through Typesafe Config.

    Load a database configuration for the given profile through Typesafe Config.

    The following keys go directly in the configuration at path or in its db sub-section:

    • connectionPool (String, optional, default: HikariCP): The connection pool implementation. HikariCP requires the "slick-hikaricp" dependency. Use disabled to use a DataSource or the JDBC driver directly, or the fully qualified name of a third-party slick.jdbc.JdbcDataSourceFactory object.
    • url (String): The JDBC URL.
    • driver (String, optional): The fully qualified name of the JDBC driver class.
    • user and password (String, optional): The credentials.
    • dataSourceClass (String, optional): The name of a javax.sql.DataSource class provided by the JDBC driver, to use instead of url and driver.
    • properties (Map, optional): Properties for the JDBC driver, or for the DataSource when dataSourceClass is set.
    • keepAliveConnection (Boolean, optional, default: false, only without a connection pool): Keep one connection open as long as the database is open.
    • isolation (String, optional, e.g. READ_COMMITTED), readOnly (Boolean, optional) and catalog (String, optional): Settings for each new connection.
    • maxConnections (Int, optional, default: 20): The maximum number of concurrent JDBC connections. With HikariCP this is also the maximum pool size.
    • maxInflightActions (Int, optional, default: twice maxConnections), queueSize (Int, optional, default: 1000), inflightAdmissionTimeout and connectionAcquireTimeout (Duration, optional): The limits on concurrently running and waiting database actions, see slick.ControlsConfig.

    With HikariCP, minConnections, connectionTimeout, idleTimeout, maxLifetime, connectionTestQuery, poolName, registerMbeans and the other HikariCP settings are passed on to the pool under their HikariCP names.

    profile

    The profile to use.

    path

    The path in the configuration file for the database configuration, or an empty string for the top level of the Config object.

    config

    The Config object to read from. This defaults to the global app config (e.g. in application.conf at the root of the class path).

    Definition Classes
    DatabaseConfig
  13. def forProfileURI[P <: BasicProfile](profile: P, uri: URI, classLoader: ClassLoader = ClassLoaderUtil.defaultClassLoader): BasicDatabaseConfig[P]
    Definition Classes
    DatabaseConfig
  14. def forSource[P <: JdbcProfile](profile: P, source: JdbcDataSource): JdbcDatabaseConfig[P]
    Definition Classes
    DatabaseConfig
  15. def forURI[P <: BasicProfile](uri: URI, classLoader: ClassLoader = ClassLoaderUtil.defaultClassLoader)(implicit arg0: ClassTag[P]): BasicDatabaseConfig[P]
    Definition Classes
    DatabaseConfig
  16. def forURL[P <: JdbcProfile](profile: P, url: String, user: String = null, password: String = null, prop: Properties = null, driver: String = null, keepAliveConnection: Boolean = false, classLoader: ClassLoader = slick.util.ClassLoaderUtil.defaultClassLoader): JdbcDatabaseConfig[P]
    Definition Classes
    DatabaseConfig
  17. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  18. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  19. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  20. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  21. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  22. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  23. def splitURI(uri: URI): (String, String)
    Attributes
    protected
    Definition Classes
    DatabaseConfig
  24. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  25. def toString(): String
    Definition Classes
    AnyRef → Any
  26. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  27. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  28. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from DatabaseConfig

Inherited from basic.DatabaseConfig

Inherited from AnyRef

Inherited from Any

Ungrouped