MirrorContext

io.getquill.MirrorContext
class MirrorContext[+Dialect <: Idiom, +Naming <: NamingStrategy](val idiom: Dialect, val naming: Naming, val session: MirrorSession) extends MirrorContextBase[Dialect, Naming], AstSplicing

Attributes

Graph
Supertypes
trait AstSplicing
trait MirrorContextBase[Dialect, Naming]
trait ContextVerbTranslate[Dialect, Naming]
trait ContextTranslateMacro[Dialect, Naming]
trait ContextTranslateProto[Dialect, Naming]
trait ContextVerbPrepare[Dialect, Naming]
trait Context[Dialect, Naming]
trait Closeable
trait AutoCloseable
trait EncodingDsl
trait ProtoContextSecundus[Dialect, Naming]
trait RowContext
class Object
trait Matchable
class Any
Show all

Members list

Type members

Inherited classlikes

case class ActionMirror(string: String, prepareRow: PrepareRow, info: ExecutionInfo)

Attributes

Inherited from:
MirrorContextBase
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class ActionReturningMirror[T, R](string: String, prepareRow: PrepareRow, extractor: () => T, returningBehavior: ReturnAction, info: ExecutionInfo)

Attributes

Inherited from:
MirrorContextBase
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class BatchActionMirror(groups: List[(String, List[Row])], info: ExecutionInfo)

Attributes

Inherited from:
MirrorContextBase
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class BatchActionReturningMirror[T](groups: List[(String, ReturnAction, List[PrepareRow])], extractor: () => T, info: ExecutionInfo)

Attributes

Inherited from:
MirrorContextBase
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class BatchGroup(string: String, prepare: List[Prepare])

Attributes

Inherited from:
RowContext
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class BatchGroupReturning(string: String, returningBehavior: ReturnAction, prepare: List[Prepare])

Attributes

Inherited from:
RowContext
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object InternalApi

Attributes

Inherited from:
Context
Supertypes
class Object
trait Matchable
class Any
case class MirrorDecoder[T](decoder: () => T) extends BaseDecoder[T]

Attributes

Inherited from:
MirrorDecoders
Supertypes
trait Serializable
trait Product
trait Equals
trait (Int, ResultRow, Session) => T
class Object
trait Matchable
class Any
Show all
case class MirrorEncoder[T](encoder: () => T) extends BaseEncoder[T]

Attributes

Inherited from:
MirrorEncoders
Supertypes
trait Serializable
trait Product
trait Equals
trait (Int, T, PrepareRow, Session) => PrepareRow
class Object
trait Matchable
class Any
Show all

Attributes

Inherited from:
MirrorContextBase
Supertypes
class Object
trait Matchable
class Any
case class PrepareBatchMirror(groups: List[(String, List[PrepareRow])], info: ExecutionInfo)

Attributes

Inherited from:
MirrorContextBase
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class PrepareQueryMirror(sql: String, prepare: Prepare, info: ExecutionInfo)

Attributes

Inherited from:
MirrorContextBase
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class QueryMirror[T](string: String, prepareRow: PrepareRow, extractor: () => T, info: ExecutionInfo)

Attributes

Inherited from:
MirrorContextBase
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Inherited types

Attributes

Inherited from:
EncodingDsl

Attributes

Inherited from:
EncodingDsl

Attributes

Inherited from:
EncodingDsl

Attributes

Inherited from:
EncodingDsl
type Decoder[T] = MirrorDecoder[T]

Attributes

Inherited from:
MirrorDecoders
type DecoderMethod[T] = (Int, ResultRow, Session) => T

Attributes

Inherited from:
EncodingDsl
type Encoder[T] = MirrorEncoder[T]

Attributes

Inherited from:
MirrorEncoders
type EncoderMethod[T] = (Int, T, PrepareRow, Session) => PrepareRow

Attributes

Inherited from:
EncodingDsl
override type Extractor[T] = (ResultRow, MirrorSession) => T

Attributes

Inherited from:
MirrorContextBase
override type NullChecker = MirrorNullChecker

Attributes

Inherited from:
MirrorContextBase
type Prepare = (PrepareRow, Session) => (List[Any], PrepareRow)

Attributes

Inherited from:
RowContext

Attributes

Inherited from:
MirrorContextBase

Attributes

Inherited from:
MirrorContextBase
override type PrepareRow = Row

Attributes

Inherited from:
MirrorContextBase
override type Result[T] = T

Attributes

Inherited from:
MirrorContextBase
override type ResultRow = Row

Attributes

Inherited from:
MirrorContextBase

Attributes

Inherited from:
EncodingDsl
override type RunActionResult = ActionMirror

Attributes

Inherited from:
MirrorContextBase

Attributes

Inherited from:
MirrorContextBase

Attributes

Inherited from:
MirrorContextBase

Attributes

Inherited from:
MirrorContextBase
override type RunQueryResult[T] = QueryMirror[T]

Attributes

Inherited from:
MirrorContextBase
override type RunQuerySingleResult[T] = QueryMirror[T]

Attributes

Inherited from:
MirrorContextBase
override type Runner = Unit

Future class to hold things like ExecutionContext for Cassandra etc...

Future class to hold things like ExecutionContext for Cassandra etc...

Attributes

Inherited from:
MirrorContextBase

Attributes

Inherited from:
ContextTranslateMacro
override type Session = MirrorSession

Attributes

Inherited from:
MirrorContextBase
override type TranslateResult[T] = T

Attributes

Inherited from:
ContextVerbTranslate
override type TranslateRunner = Unit

Attributes

Inherited from:
MirrorContextBase

Value members

Inherited methods

Attributes

Inherited from:
ContextVerbPrepare

Internal API that cannot be made private due to how inline functions

Internal API that cannot be made private due to how inline functions

Attributes

Inherited from:
ContextTranslateMacro
def close(): Unit

Attributes

Inherited from:
Context
override def context: Runner

Attributes

Definition Classes
Inherited from:
MirrorContextBase
def decoder[T : ClassTag]: MirrorDecoder[T]

Attributes

Inherited from:
MirrorDecoders

Attributes

Inherited from:
MirrorDecoders
def encoder[T]: MirrorEncoder[T]

Attributes

Inherited from:
MirrorEncoders
override def executeAction(string: String, prepare: Prepare)(info: ExecutionInfo, dc: Runner): Result[RunActionResult]

Attributes

Definition Classes
Inherited from:
MirrorContextBase
def executeActionReturning[T](sql: String, prepare: Prepare, extractor: () => T, returningBehavior: ReturnAction)(info: ExecutionInfo, dc: Runner): Result[RunActionReturningResult[T]]

Attributes

Inherited from:
MirrorContextBase
def executeActionReturningMany[T](sql: String, prepare: Prepare, extractor: () => T, returningBehavior: ReturnAction)(info: ExecutionInfo, dc: Runner): Result[RunActionReturningResult[List[T]]]

Attributes

Inherited from:
MirrorContextBase
override def executeBatchAction(groups: List[BatchGroup])(info: ExecutionInfo, dc: Runner): Result[RunBatchActionResult]

Attributes

Definition Classes
Inherited from:
MirrorContextBase
override def executeBatchActionReturning[T](groups: List[BatchGroupReturning], extractor: () => T)(info: ExecutionInfo, dc: Runner): Result[BatchActionReturningMirror[T]]

Attributes

Definition Classes
Inherited from:
MirrorContextBase
override def executeQuery[T](string: String, prepare: Prepare, extractor: () => T)(info: ExecutionInfo, dc: Runner): Result[QueryMirror[T]]

Attributes

Definition Classes
Inherited from:
MirrorContextBase
override def executeQuerySingle[T](string: String, prepare: Prepare, extractor: () => T)(info: ExecutionInfo, dc: Runner): Result[QueryMirror[T]]

Attributes

Definition Classes
Inherited from:
MirrorContextBase
protected def handleSingleResult[T](sql: String, list: List[T]): T

Attributes

Inherited from:
Context
inline def lift[T](inline runtimeValue: T): T

Attributes

Inherited from:
Context
inline def liftQuery[U <: (Iterable), T](inline runtimeValue: U[T]): Query[T]

Attributes

Inherited from:
Context
protected def mappedBaseDecoder[Base, Mapped](mapped: MappedEncoding[Base, Mapped], decoder: () => Base): () => Mapped

Attributes

Inherited from:
EncodingDsl
protected def mappedBaseEncoder[Mapped, Base](mapped: MappedEncoding[Mapped, Base], encoder: () => Base): () => Mapped

Attributes

Inherited from:
EncodingDsl
inline def prepare[I, A <: Action[I] & QAC[I, Nothing]](inline quoted: Quoted[BatchAction[A]]): PrepareBatchActionResult

Attributes

Inherited from:
ContextVerbPrepare
inline def prepare[E](inline quoted: Quoted[Action[E]]): PrepareActionResult

Attributes

Inherited from:
ContextVerbPrepare
inline def prepare[T](inline quoted: Quoted[T]): PrepareQueryResult

Attributes

Inherited from:
ContextVerbPrepare
inline def prepare[T](inline quoted: Quoted[Query[T]]): PrepareQueryResult

Attributes

Inherited from:
ContextVerbPrepare
def prepareAction(string: String, prepare: Prepare)(info: ExecutionInfo, dc: Runner): PrepareActionResult

Attributes

Inherited from:
MirrorContextBase

Attributes

Inherited from:
MirrorContextBase
final protected def prepareParam(param: Any): String

Attributes

Inherited from:
ContextTranslateProto
def prepareQuery(string: String, prepare: Prepare)(info: ExecutionInfo, dc: Runner): PrepareQueryResult

Attributes

Inherited from:
MirrorContextBase
def prepareSingle(string: String, prepare: Prepare)(info: ExecutionInfo, dc: Runner): PrepareQueryResult

Attributes

Inherited from:
MirrorContextBase
override def push[A, B](result: A)(f: A => B): B

Attributes

Definition Classes
Inherited from:
ContextVerbTranslate
inline def run[I, T, A <: Action[I] & QAC[I, T]](inline quoted: Quoted[BatchAction[A]]): BatchActionReturningMirror[T]

Attributes

Inherited from:
MirrorContextBase
inline def run[I, T, A <: Action[I] & QAC[I, T]](inline quoted: Quoted[BatchAction[A]], rowsPerBatch: Int): BatchActionReturningMirror[T]

Attributes

Inherited from:
MirrorContextBase
inline def run[I, A <: Action[I] & QAC[I, Nothing]](inline quoted: Quoted[BatchAction[A]]): BatchActionMirror

Attributes

Inherited from:
MirrorContextBase
inline def run[I, A <: Action[I] & QAC[I, Nothing]](inline quoted: Quoted[BatchAction[A]], rowsPerBatch: Int): BatchActionMirror

Attributes

Inherited from:
MirrorContextBase
inline def run[E, T](inline quoted: Quoted[ActionReturning[E, List[T]]]): ActionReturningMirror[T, List[T]]

Attributes

Inherited from:
MirrorContextBase
inline def run[E, T](inline quoted: Quoted[ActionReturning[E, T]]): ActionReturningMirror[T, T]

Attributes

Inherited from:
MirrorContextBase
inline def run[E](inline quoted: Quoted[Action[E]]): ActionMirror

Attributes

Inherited from:
MirrorContextBase
inline def run[T](inline quoted: Quoted[T]): QueryMirror[T]

Attributes

Inherited from:
MirrorContextBase
inline def run[T](inline quoted: Quoted[Query[T]], inline wrap: OuterSelectWrap): QueryMirror[T]

Attributes

Inherited from:
MirrorContextBase
inline def run[T](inline quoted: Quoted[Query[T]]): QueryMirror[T]

Attributes

Inherited from:
MirrorContextBase
override def seq[A](list: List[A]): List[A]

Attributes

Definition Classes
Inherited from:
ContextVerbTranslate
inline def translate[I, T, A <: Action[I] & QAC[I, T]](inline quoted: Quoted[BatchAction[A]], inline prettyPrint: Boolean): TranslateResult[List[String]]

Attributes

Inherited from:
ContextTranslateMacro
inline def translate[I, T, A <: Action[I] & QAC[I, T]](inline quoted: Quoted[BatchAction[A]]): TranslateResult[List[String]]

Attributes

Inherited from:
ContextTranslateMacro
inline def translate[I, A <: Action[I] & QAC[I, Nothing]](inline quoted: Quoted[BatchAction[A]], inline prettyPrint: Boolean): TranslateResult[List[String]]

Attributes

Inherited from:
ContextTranslateMacro
inline def translate[I, A <: Action[I] & QAC[I, Nothing]](inline quoted: Quoted[BatchAction[A]]): TranslateResult[List[String]]

Attributes

Inherited from:
ContextTranslateMacro
inline def translate[E, T](inline quoted: Quoted[ActionReturning[E, T]], inline prettyPrint: Boolean): TranslateResult[String]

Attributes

Inherited from:
ContextTranslateMacro
inline def translate[E, T](inline quoted: Quoted[ActionReturning[E, T]]): TranslateResult[String]

Attributes

Inherited from:
ContextTranslateMacro
inline def translate[E](inline quoted: Quoted[Action[E]], inline prettyPrint: Boolean): TranslateResult[String]

Attributes

Inherited from:
ContextTranslateMacro
inline def translate[E](inline quoted: Quoted[Action[E]]): TranslateResult[String]

Attributes

Inherited from:
ContextTranslateMacro
inline def translate[T](inline quoted: Quoted[T], inline prettyPrint: Boolean): TranslateResult[String]

Attributes

Inherited from:
ContextTranslateMacro
inline def translate[T](inline quoted: Quoted[T]): TranslateResult[String]

Attributes

Inherited from:
ContextTranslateMacro
inline def translate[T](inline quoted: Quoted[Query[T]], inline prettyPrint: Boolean): TranslateResult[String]

Attributes

Inherited from:
ContextTranslateMacro
inline def translate[T](inline quoted: Quoted[Query[T]]): TranslateResult[String]

Attributes

Inherited from:
ContextTranslateMacro
def translateBatchQueryEndpoint(groups: List[BatchGroup], prettyPrint: Boolean)(executionInfo: ExecutionInfo, dc: TranslateRunner): TranslateResult[List[String]]

Attributes

Inherited from:
ContextTranslateProto
def translateBatchQueryReturningEndpoint(groups: List[BatchGroupReturning], prettyPrint: Boolean)(executionInfo: ExecutionInfo, dc: TranslateRunner): TranslateResult[List[String]]

Attributes

Inherited from:
ContextTranslateProto
override def translateContext: Runner

Attributes

Definition Classes
Inherited from:
MirrorContextBase
def translateQueryEndpoint[T](statement: String, prepare: Prepare, extractor: () => T, prettyPrint: Boolean)(executionInfo: ExecutionInfo, dc: TranslateRunner): TranslateResult[String]

Attributes

Inherited from:
ContextTranslateProto
override def wrap[T](t: => T): T

Attributes

Definition Classes
Inherited from:
ContextVerbTranslate

Concrete fields

val idiom: Dialect
val naming: Naming
val session: MirrorSession

Inherited fields

Attributes

Inherited from:
RowContext
protected val identityPrepare: Prepare

Attributes

Inherited from:
RowContext

Extensions

Inherited extensions

extension [T](inline dynamicQuery: DynamicEntityQuery[T])
inline def insertValue(value: T): DynamicInsert[T]

Attributes

Inherited from:
Context
inline def updateValue(value: T): DynamicUpdate[T]

Attributes

Inherited from:
Context
extension [T](inline entity: EntityQuery[T])
inline def insertValue(inline value: T): Insert[T]

Attributes

Inherited from:
Context
inline def updateValue(inline value: T): Update[T]

Attributes

Inherited from:
Context
extension [T](inline q: Query[T])
inline def filterByKeys(inline map: Map[String, Any]): Query[T]

When using this with FilterColumns make sure it comes FIRST. Otherwise the columns are you filtering may have been nullified in the SQL before the filteration has actually happened.

When using this with FilterColumns make sure it comes FIRST. Otherwise the columns are you filtering may have been nullified in the SQL before the filteration has actually happened.

Attributes

Inherited from:
Context
inline def filterColumns(inline columns: List[String]): Query[T]

Attributes

Inherited from:
Context
extension [T](inline quotedEntity: Quoted[EntityQuery[T]])
inline def insertValue(inline value: T): Insert[T]

Attributes

Inherited from:
Context
inline def updateValue(inline value: T): Update[T]

Attributes

Inherited from:
Context

Implicits

Inherited implicits

implicit inline def anyValDecoder[Cls <: AnyVal]: Decoder[Cls]

Attributes

Inherited from:
LowPriorityImplicits
implicit inline def anyValEncoder[Cls <: AnyVal]: Encoder[Cls]

Attributes

Inherited from:
LowPriorityImplicits
implicit val bigDecimalDecoder: MirrorDecoder[BigDecimal]

Attributes

Inherited from:
MirrorDecoders
implicit val bigDecimalEncoder: MirrorEncoder[BigDecimal]

Attributes

Inherited from:
MirrorEncoders
implicit val booleanDecoder: MirrorDecoder[Boolean]

Attributes

Inherited from:
MirrorDecoders
implicit val booleanEncoder: MirrorEncoder[Boolean]

Attributes

Inherited from:
MirrorEncoders
implicit val byteArrayDecoder: MirrorDecoder[Array[Byte]]

Attributes

Inherited from:
MirrorDecoders
implicit val byteArrayEncoder: MirrorEncoder[Array[Byte]]

Attributes

Inherited from:
MirrorEncoders
implicit val byteDecoder: MirrorDecoder[Byte]

Attributes

Inherited from:
MirrorDecoders
implicit val byteEncoder: MirrorEncoder[Byte]

Attributes

Inherited from:
MirrorEncoders
implicit val dateDecoder: MirrorDecoder[Date]

Attributes

Inherited from:
MirrorDecoders
implicit val dateEncoder: MirrorEncoder[Date]

Attributes

Inherited from:
MirrorEncoders
implicit inline def dec[T]: GenericDecoder[ResultRow, Session, T, Generic]

Attributes

Inherited from:
Context
implicit val doubleDecoder: MirrorDecoder[Double]

Attributes

Inherited from:
MirrorDecoders
implicit val doubleEncoder: MirrorEncoder[Double]

Attributes

Inherited from:
MirrorEncoders
implicit val floatDecoder: MirrorDecoder[Float]

Attributes

Inherited from:
MirrorDecoders
implicit val floatEncoder: MirrorEncoder[Float]

Attributes

Inherited from:
MirrorEncoders
implicit val intDecoder: MirrorDecoder[Int]

Attributes

Inherited from:
MirrorDecoders
implicit val intEncoder: MirrorEncoder[Int]

Attributes

Inherited from:
MirrorEncoders
implicit val localDateDecoder: MirrorDecoder[LocalDate]

Attributes

Inherited from:
MirrorDecoders
implicit val localDateEncoder: MirrorEncoder[LocalDate]

Attributes

Inherited from:
MirrorEncoders
implicit val longDecoder: MirrorDecoder[Long]

Attributes

Inherited from:
MirrorDecoders
implicit val longEncoder: MirrorEncoder[Long]

Attributes

Inherited from:
MirrorEncoders
implicit def mappedDecoder[I, O](implicit mapped: MappedEncoding[I, O], d: MirrorDecoder[I]): MirrorDecoder[O]

Attributes

Inherited from:
MirrorDecoders
implicit def mappedEncoder[I, O](implicit mapped: MappedEncoding[I, O], e: MirrorEncoder[O]): MirrorEncoder[I]

Attributes

Inherited from:
MirrorEncoders
implicit val nullChecker: NullChecker

Attributes

Inherited from:
MirrorContextBase
implicit def nullEncoder: MirrorEncoder[Null]

Attributes

Inherited from:
MirrorEncoders
implicit def optionDecoder[T](implicit d: MirrorDecoder[T]): MirrorDecoder[Option[T]]

Attributes

Inherited from:
MirrorDecoders
implicit def optionEncoder[T](implicit d: MirrorEncoder[T]): MirrorEncoder[Option[T]]

Attributes

Inherited from:
MirrorEncoders
implicit val shortDecoder: MirrorDecoder[Short]

Attributes

Inherited from:
MirrorDecoders
implicit val shortEncoder: MirrorEncoder[Short]

Attributes

Inherited from:
MirrorEncoders
implicit val stringDecoder: MirrorDecoder[String]

Attributes

Inherited from:
MirrorDecoders
implicit val stringEncoder: MirrorEncoder[String]

Attributes

Inherited from:
MirrorEncoders
implicit val uuidDecoder: MirrorDecoder[UUID]

Attributes

Inherited from:
MirrorDecoders
implicit val uuidEncoder: MirrorEncoder[UUID]

Attributes

Inherited from:
MirrorEncoders