Particularize

For a query that has a filter(p => liftQuery(List("Joe","Jack")).contains(p.name)) we need to turn the "WHERE p.name in (?)" into WHERE p.name in (?, ?) i.e. to "Particularize" the query to the number of elements in the query lift. In Scala2-Quill we could just access the values of the liftQuery list directly since the lift was an 'Any' value directly in the AST. In Scala 3 however, we need to treat the lifted list as an Expr and create an Expr[String] that represents the Query that is to be during runtime based on the content of the list which has to be manipulated inside of a '{ ... } block.

class Object
trait Matchable
class Any

Type members

Classlikes

object Dynamic
case class LiftSlot(rank: Rank, external: ScalarTag)
Companion:
object
object LiftSlot
Companion:
class
case class LiftsOrderer(slots: List[LiftSlot])(traceConfig: TraceConfig)
object Static