trait
HasDatabaseConfig[P <: BasicProfile] extends AnyRef
Abstract Value Members
-
abstract
val
dbConfig: DatabaseConfig[P]
Concrete Value Members
-
final
def
!=(arg0: AnyRef): Boolean
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
final
def
==(arg0: AnyRef): Boolean
-
final
def
==(arg0: Any): Boolean
-
final
def
asInstanceOf[T0]: T0
-
def
clone(): AnyRef
-
final
def
db: slick.profile.BasicProfile.Backend.Database
-
final
lazy val
driver: P
-
final
def
eq(arg0: AnyRef): Boolean
-
def
equals(arg0: Any): Boolean
-
def
finalize(): Unit
-
final
def
getClass(): Class[_]
-
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(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
Inherited from AnyRef
Inherited from Any
Mix-in this trait if you need a Slick database and driver. This is useful if you need to define a Slick table or need to execute some operation in the database.
There is only one abstract field,
dbConfig
, which you can implement by callingDatabaseConfigProvider.get
. If you are injectingDatabaseConfigProvider
instances using dependency injection, prefer using the traitHasDatabaseConfigProvider
instead of this one.Example
Of course, you do not need to define a DAO to use this trait (the above it is really just an example of usage).