The provider of a Slick DatabaseConfig
instance.
The provider of a Slick DatabaseConfig
instance.
The Slick database extracted from dbConfig
.
The Slick database extracted from dbConfig
.
The Slick database configuration.
The Slick database configuration.
The Slick profile extracted from dbConfig
.
The Slick profile extracted from dbConfig
.
(Since version 2.1) Use profile
instead of driver
Mix-in this trait if you need a Slick database and profile, and you are using dependency injection for obtaining an instance of
DatabaseConfigProvider
. If you are not using dependency injection, then prefer mixingHasDatabaseConfig
instead.This trait is useful if you need to define a Slick table or need to execute some operation in the database.
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).