The Slick database extracted from dbConfig.
The Slick database extracted from dbConfig.
The Slick profile extracted from dbConfig.
The Slick profile extracted from dbConfig.
Mix-in this trait if you need a Slick database and profile. 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 injectingDatabaseConfigProviderinstances using dependency injection, prefer using the traitHasDatabaseConfigProviderinstead 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).