DatabaseConfig

com.worxbend.persistence.DatabaseConfig
See theDatabaseConfig companion class

Attributes

Companion
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

Type members

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements.

The names of the product elements.

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type.

The name of the type.

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def load(source: ConfigSource = ...): Either[ConfigReaderFailures, DatabaseConfig]

Loads from the ambient config (application.conf over this module's reference.conf, overridable by DATABASE_* environment variables).

Loads from the ambient config (application.conf over this module's reference.conf, overridable by DATABASE_* environment variables).

Returns the failures rather than throwing: a service decides for itself whether an unreadable database config is a fatal boot error (it is, for ferrite and cobalt) — this module does not get to call System.exit on its caller's behalf.

Attributes

Concrete fields

val Namespace: String

The config namespace. Every service reads the same one, so a pool tuned in ferrite is tuned the same way in cobalt, and a reference.conf in this module supplies defaults for both.

The config namespace. Every service reads the same one, so a pool tuned in ferrite is tuned the same way in cobalt, and a reference.conf in this module supplies defaults for both.

Attributes

Givens

Givens

given reader: ConfigReader[DatabaseConfig]