trait DatabaseConfigProvider extends AnyRef
Abstract Value Members
- abstract def get[P <: BasicProfile]: slick.basic.DatabaseConfig[P]
Concrete Value Members
- final def !=(arg0: Any): Boolean
- final def ##: Int
- final def ==(arg0: Any): Boolean
- final def asInstanceOf[T0]: T0
- def clone(): AnyRef
- final def eq(arg0: AnyRef): Boolean
- def equals(arg0: AnyRef): Boolean
- final def getClass(): Class[_ <: AnyRef]
- def hashCode(): Int
- final def isInstanceOf[T0]: Boolean
- final def ne(arg0: AnyRef): Boolean
- final def notify(): Unit
- final def notifyAll(): Unit
- final def synchronized[T0](arg0: => T0): T0
- def toString(): String
- final def wait(arg0: Long, arg1: Int): Unit
- final def wait(arg0: Long): Unit
- final def wait(): Unit
Deprecated Value Members
- def finalize(): Unit
Inherited from AnyRef
Inherited from Any
Generic interface for a provider of a
DatabaseConfig
instance. ADatabaseConfig
is Slick type that bundles a database and profile.Usually, you shouldn't need to create instances of
DatabaseConfigProvider
explicitly. Rather, you should rely on dependency injection. If you don't want to use dependency injection, then use the companion object and callDatabaseConfigProvider.get
.Example
Here is an example of how you can use dependency injection to obtain an instance of
DatabaseConfigProvider
, for the database nameddefault
in your **application.conf**.While here is an example for injecting a
DatabaseConfigProvider
for a database namedorders
in your **application.conf**.