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 calling DatabaseConfigProvider.get.
If you are injecting DatabaseConfigProvider instances using dependency injection, prefer using the trait
HasDatabaseConfigProvider instead of this one.
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).