If I want to use compiled time queries in Slick 3.x, I need to declare a StaticDatabaseConfig annotation in each class using tsql.
Is there a way to avoid this and establish a global configuration?
@StaticDatabaseConfig("file:src/main/resources/application.conf#tsql") object PersistenceService { val database = Database.forConfig("database") database.run( tsql"SELECT NOW()" ) }
AlexITC
source share