Particularize

io.getquill.context.Particularize
object 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.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

object Dynamic

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
Dynamic.type
case class LiftSlot(rank: Rank, external: ScalarTag)

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object LiftSlot

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
LiftSlot.type
case class LiftsOrderer(slots: List[LiftSlot])(traceConfig: TraceConfig)

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object Static

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
Static.type