Im new at quill and im trying to define a table at runtime, but im getting a compilation error. Is there any workaround for this ? or its just impossible using quill ? The code example is :
case class ExampleCaseClass(id : String, version : String)
class Example (db: CassandraAsyncContext[SnakeCase] , table : String ) {
import db._
def selectByVarId = quote {
(id: String, version: String) =>
querySchema[ExampleCaseClass](table).filter(example => (example.id == id) && (example.version == version))
}
}
and the error :
Error:(114, 36) Tree Error:(124, 25) Tree 'Example.this.db.querySchema[***.ExampleCaseClass](Example.this.table)' can't be parsed to 'Ast'
def selectById = quote {