Packages

trait DatabaseConfig extends basic.DatabaseConfig

Source
DatabaseConfig.scala
Linear Supertypes
Known Subclasses
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DatabaseConfig
  2. DatabaseConfig
  3. AnyRef
  4. Any
Implicitly
  1. by StringFormat
  2. by Ensuring
  3. by ArrowAssoc
  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. def ->[B](y: B): (DatabaseConfig, B)
    Implicit
    This member is added by an implicit conversion from DatabaseConfig toArrowAssoc[DatabaseConfig] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  4. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  7. def ensuring(cond: (DatabaseConfig) => Boolean, msg: => Any): DatabaseConfig
    Implicit
    This member is added by an implicit conversion from DatabaseConfig toEnsuring[DatabaseConfig] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  8. def ensuring(cond: (DatabaseConfig) => Boolean): DatabaseConfig
    Implicit
    This member is added by an implicit conversion from DatabaseConfig toEnsuring[DatabaseConfig] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  9. def ensuring(cond: Boolean, msg: => Any): DatabaseConfig
    Implicit
    This member is added by an implicit conversion from DatabaseConfig toEnsuring[DatabaseConfig] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  10. def ensuring(cond: Boolean): DatabaseConfig
    Implicit
    This member is added by an implicit conversion from DatabaseConfig toEnsuring[DatabaseConfig] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  11. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  13. 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
  14. def forDataSource[P <: JdbcProfile](profile: P, ds: DataSource, keepAliveConnection: Boolean = false): JdbcDatabaseConfig[P]
  15. 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]
  16. def forName[P <: JdbcProfile](profile: P, name: String): JdbcDatabaseConfig[P]
  17. 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
  18. def forProfileURI[P <: BasicProfile](profile: P, uri: URI, classLoader: ClassLoader = ClassLoaderUtil.defaultClassLoader): BasicDatabaseConfig[P]
    Definition Classes
    DatabaseConfig
  19. def forSource[P <: JdbcProfile](profile: P, source: JdbcDataSource): JdbcDatabaseConfig[P]
  20. def forURI[P <: BasicProfile](uri: URI, classLoader: ClassLoader = ClassLoaderUtil.defaultClassLoader)(implicit arg0: ClassTag[P]): BasicDatabaseConfig[P]
    Definition Classes
    DatabaseConfig
  21. 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]
  22. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  23. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  24. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  25. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  26. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  27. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  28. def splitURI(uri: URI): (String, String)
    Attributes
    protected
    Definition Classes
    DatabaseConfig
  29. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  30. def toString(): String
    Definition Classes
    AnyRef → Any
  31. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  32. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  33. 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)

  2. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from DatabaseConfig toStringFormat[DatabaseConfig] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.12.16) Use formatString.format(value) instead of value.formatted(formatString), or use the f"" string interpolator. In Java 15 and later, formatted resolves to the new method in String which has reversed parameters.

  3. def →[B](y: B): (DatabaseConfig, B)
    Implicit
    This member is added by an implicit conversion from DatabaseConfig toArrowAssoc[DatabaseConfig] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use -> instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.

Inherited from basic.DatabaseConfig

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion StringFormat fromDatabaseConfig to StringFormat[DatabaseConfig]

Inherited by implicit conversion Ensuring fromDatabaseConfig to Ensuring[DatabaseConfig]

Inherited by implicit conversion ArrowAssoc fromDatabaseConfig to ArrowAssoc[DatabaseConfig]

Ungrouped