'Scala Quill - queries always dynamic

I am always getting dynamic queries in Quill, even with simplest query I get dynamic query compiler warning log:

type DbContext = PostgresAsyncContext[Literal]

val db: DbContext = new PostgresAsyncContext(Literal, "db.default")

import db._

implicit val implicitDbSchemaMetaUser: db.SchemaMeta[User] = schemaMeta [User] ("users")

val users:Future[List[User]] = run(query[User])



Solution 1:[1]

Removing type annotation from implicitDbSchemaMetaUser solved it:

implicit val implicitDbSchemaMetaUser = schemaMeta [User] ("users")

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Taras Bilinsky