SqlMirrorContext

class SqlMirrorContext[+Idiom <: Idiom, +Naming <: NamingStrategy](val idiom: Idiom, val naming: Naming) extends MirrorContextBase[Idiom, Naming] with AstSplicing with SqlContext[Idiom, Naming] with ArrayMirrorEncoding

Workaround for IntelliJ SCL-20185. Inheriting MirrorContextBase directly so that run methods have autocomplete.

trait SqlContext[Idiom, Naming]
trait MirrorContextBase[Idiom, Naming]
trait ContextVerbTranslate[Idiom, Naming]
trait ContextTranslateMacro[Idiom, Naming]
trait ContextTranslateProto[Idiom, Naming]
trait ContextVerbPrepare[Idiom, Naming]
trait Context[Idiom, Naming]
trait Closeable
trait AutoCloseable
trait ProtoContextSecundus[Idiom, Naming]
trait RowContext
class Object
trait Matchable
class Any

Type members

Inherited classlikes

case class ActionMirror(string: String, prepareRow: PrepareRow, info: ExecutionInfo)
Inherited from:
MirrorContextBase
case class ActionReturningMirror[T, R](string: String, prepareRow: PrepareRow, extractor: () => T, returningBehavior: ReturnAction, info: ExecutionInfo)
Inherited from:
MirrorContextBase
case class BatchActionMirror(groups: List[(String, List[Row])], info: ExecutionInfo)
Inherited from:
MirrorContextBase
case class BatchActionReturningMirror[T](groups: List[(String, ReturnAction, List[PrepareRow])], extractor: () => T, info: ExecutionInfo)
Inherited from:
MirrorContextBase
case class BatchGroup(string: String, prepare: List[Prepare])
Inherited from:
RowContext
case class BatchGroupReturning(string: String, returningBehavior: ReturnAction, prepare: List[Prepare])
Inherited from:
RowContext
Inherited from:
Context
case class MirrorDecoder[T](decoder: () => T) extends BaseDecoder[T]
Inherited from:
MirrorDecoders
case class MirrorEncoder[T](encoder: () => T) extends BaseEncoder[T]
Inherited from:
MirrorEncoders
case class PrepareBatchMirror(groups: List[(String, List[PrepareRow])], info: ExecutionInfo)
Inherited from:
MirrorContextBase
case class PrepareQueryMirror(sql: String, prepare: Prepare, info: ExecutionInfo)
Inherited from:
MirrorContextBase
case class QueryMirror[T](string: String, prepareRow: PrepareRow, extractor: () => T, info: ExecutionInfo)
Inherited from:
MirrorContextBase

Inherited types

type CBF[T, Col] = Factory[T, Col]
Inherited from:
ArrayEncoding
type Decoder[T] = MirrorDecoder[T]
Inherited from:
MirrorDecoders
type DecoderMethod[T] = (Int, ResultRow, Session) => T
Inherited from:
EncodingDsl
type Encoder[T] = MirrorEncoder[T]
Inherited from:
MirrorEncoders
type EncoderMethod[T] = (Int, T, PrepareRow, Session) => PrepareRow
Inherited from:
EncodingDsl
override type Extractor[T] = (ResultRow, MirrorSession) => T
Inherited from:
MirrorContextBase
Inherited from:
MirrorContextBase
type Prepare = (PrepareRow, Session) => (List[Any], PrepareRow)
Inherited from:
RowContext
override type PrepareRow = Row
Inherited from:
MirrorContextBase
override type Result[T] = T
Inherited from:
MirrorContextBase
override type ResultRow = Row
Inherited from:
MirrorContextBase
Inherited from:
EncodingDsl
Inherited from:
MirrorContextBase
override type RunQueryResult[T] = QueryMirror[T]
Inherited from:
MirrorContextBase
override type RunQuerySingleResult[T] = QueryMirror[T]
Inherited from:
MirrorContextBase
override type Runner = Unit
Inherited from:
MirrorContextBase
override type Session = MirrorSession
Inherited from:
MirrorContextBase
override type TranslateResult[T] = T
Inherited from:
ContextVerbTranslate
override type TranslateRunner = Unit
Inherited from:
MirrorContextBase

Value members

Inherited methods

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

Inherited from:
ContextTranslateMacro
def close(): Unit
Inherited from:
Context
override def context: Runner
Definition Classes
Inherited from:
MirrorContextBase
def decoder[T : ClassTag]: MirrorDecoder[T]
Inherited from:
MirrorDecoders
Inherited from:
MirrorDecoders
Inherited from:
MirrorEncoders
override def executeAction(string: String, prepare: Prepare)(info: ExecutionInfo, dc: Runner): Result[RunActionResult]
Definition Classes
Inherited from:
MirrorContextBase
def executeActionReturning[T](sql: String, prepare: Prepare, extractor: () => T, returningBehavior: ReturnAction)(info: ExecutionInfo, dc: Runner): Result[RunActionReturningResult[T]]
Inherited from:
MirrorContextBase
def executeActionReturningMany[T](sql: String, prepare: Prepare, extractor: () => T, returningBehavior: ReturnAction)(info: ExecutionInfo, dc: Runner): Result[RunActionReturningResult[List[T]]]
Inherited from:
MirrorContextBase
override def executeBatchActionReturning[T](groups: List[BatchGroupReturning], extractor: () => T)(info: ExecutionInfo, dc: Runner): Result[BatchActionReturningMirror[T]]
Definition Classes
Inherited from:
MirrorContextBase
override def executeQuery[T](string: String, prepare: Prepare, extractor: () => T)(info: ExecutionInfo, dc: Runner): Result[QueryMirror[T]]
Definition Classes
Inherited from:
MirrorContextBase
override def executeQuerySingle[T](string: String, prepare: Prepare, extractor: () => T)(info: ExecutionInfo, dc: Runner): Result[QueryMirror[T]]
Definition Classes
Inherited from:
MirrorContextBase
protected def handleSingleResult[T](sql: String, list: List[T]): T
Inherited from:
Context
inline def lift[T](inline runtimeValue: T): T
Inherited from:
Context
inline def liftQuery[U <: (Iterable), T](inline runtimeValue: U[T]): Query[T]
Inherited from:
Context
protected def mappedBaseDecoder[Base, Mapped](mapped: MappedEncoding[Base, Mapped], decoder: () => Base): () => Mapped
Inherited from:
EncodingDsl
protected def mappedBaseEncoder[Mapped, Base](mapped: MappedEncoding[Mapped, Base], encoder: () => Base): () => Mapped
Inherited from:
EncodingDsl
@targetName("runPrepareBatchAction")
inline def prepare[I, A <: Action[I] & QAC[I, Nothing]](inline quoted: Quoted[BatchAction[A]]): PrepareBatchActionResult
Inherited from:
ContextVerbPrepare
@targetName("runPrepareAction")
inline def prepare[E](inline quoted: Quoted[Action[E]]): PrepareActionResult
Inherited from:
ContextVerbPrepare
@targetName("runPrepareQuerySingle")
inline def prepare[T](inline quoted: Quoted[T]): PrepareQueryResult
Inherited from:
ContextVerbPrepare
@targetName("runPrepareQuery")
inline def prepare[T](inline quoted: Quoted[Query[T]]): PrepareQueryResult
Inherited from:
ContextVerbPrepare
def prepareAction(string: String, prepare: Prepare)(info: ExecutionInfo, dc: Runner): PrepareActionResult
Inherited from:
MirrorContextBase
@tailrec
final protected def prepareParam(param: Any): String
Inherited from:
ContextTranslateProto
def prepareQuery(string: String, prepare: Prepare)(info: ExecutionInfo, dc: Runner): PrepareQueryResult
Inherited from:
MirrorContextBase
def prepareSingle(string: String, prepare: Prepare)(info: ExecutionInfo, dc: Runner): PrepareQueryResult
Inherited from:
MirrorContextBase
override def push[A, B](result: A)(f: A => B): B
@targetName("runBatchActionReturningDefault")
inline def run[I, T, A <: Action[I] & QAC[I, T]](inline quoted: Quoted[BatchAction[A]]): BatchActionReturningMirror[T]
Inherited from:
MirrorContextBase
@targetName("runBatchActionReturning")
inline def run[I, T, A <: Action[I] & QAC[I, T]](inline quoted: Quoted[BatchAction[A]], rowsPerBatch: Int): BatchActionReturningMirror[T]
Inherited from:
MirrorContextBase
@targetName("runBatchActionDefault")
inline def run[I, A <: Action[I] & QAC[I, Nothing]](inline quoted: Quoted[BatchAction[A]]): BatchActionMirror
Inherited from:
MirrorContextBase
@targetName("runBatchAction")
inline def run[I, A <: Action[I] & QAC[I, Nothing]](inline quoted: Quoted[BatchAction[A]], rowsPerBatch: Int): BatchActionMirror
Inherited from:
MirrorContextBase
@targetName("runActionReturningMany")
inline def run[E, T](inline quoted: Quoted[ActionReturning[E, List[T]]]): ActionReturningMirror[T, List[T]]
Inherited from:
MirrorContextBase
@targetName("runActionReturning")
inline def run[E, T](inline quoted: Quoted[ActionReturning[E, T]]): ActionReturningMirror[T, T]
Inherited from:
MirrorContextBase
@targetName("runAction")
inline def run[E](inline quoted: Quoted[Action[E]]): ActionMirror
Inherited from:
MirrorContextBase
@targetName("runQuerySingle")
inline def run[T](inline quoted: Quoted[T]): QueryMirror[T]
Inherited from:
MirrorContextBase
@targetName("runQuery")
inline def run[T](inline quoted: Quoted[Query[T]], inline wrap: OuterSelectWrap): QueryMirror[T]
Inherited from:
MirrorContextBase
@targetName("runQueryDefault")
inline def run[T](inline quoted: Quoted[Query[T]]): QueryMirror[T]
Inherited from:
MirrorContextBase
override def seq[A](list: List[A]): List[A]
@targetName("translateBatchActionReturning")
inline def translate[I, T, A <: Action[I] & QAC[I, T]](inline quoted: Quoted[BatchAction[A]], inline prettyPrint: Boolean): TranslateResult[List[String]]
Inherited from:
ContextTranslateMacro
@targetName("translateBatchActionReturning")
inline def translate[I, T, A <: Action[I] & QAC[I, T]](inline quoted: Quoted[BatchAction[A]]): TranslateResult[List[String]]
Inherited from:
ContextTranslateMacro
@targetName("translateBatchAction")
inline def translate[I, A <: Action[I] & QAC[I, Nothing]](inline quoted: Quoted[BatchAction[A]], inline prettyPrint: Boolean): TranslateResult[List[String]]
Inherited from:
ContextTranslateMacro
@targetName("translateBatchAction")
inline def translate[I, A <: Action[I] & QAC[I, Nothing]](inline quoted: Quoted[BatchAction[A]]): TranslateResult[List[String]]
Inherited from:
ContextTranslateMacro
@targetName("translateActionReturning")
inline def translate[E, T](inline quoted: Quoted[ActionReturning[E, T]], inline prettyPrint: Boolean): TranslateResult[String]
Inherited from:
ContextTranslateMacro
@targetName("translateActionReturning")
inline def translate[E, T](inline quoted: Quoted[ActionReturning[E, T]]): TranslateResult[String]
Inherited from:
ContextTranslateMacro
@targetName("translateAction")
inline def translate[E](inline quoted: Quoted[Action[E]], inline prettyPrint: Boolean): TranslateResult[String]
Inherited from:
ContextTranslateMacro
@targetName("translateAction")
inline def translate[E](inline quoted: Quoted[Action[E]]): TranslateResult[String]
Inherited from:
ContextTranslateMacro
@targetName("translateQuerySingle")
inline def translate[T](inline quoted: Quoted[T], inline prettyPrint: Boolean): TranslateResult[String]
Inherited from:
ContextTranslateMacro
@targetName("translateQuerySingle")
inline def translate[T](inline quoted: Quoted[T]): TranslateResult[String]
Inherited from:
ContextTranslateMacro
@targetName("translateQuery")
inline def translate[T](inline quoted: Quoted[Query[T]], inline prettyPrint: Boolean): TranslateResult[String]
Inherited from:
ContextTranslateMacro
@targetName("translateQuery")
inline def translate[T](inline quoted: Quoted[Query[T]]): TranslateResult[String]
Inherited from:
ContextTranslateMacro
def translateBatchQueryEndpoint(groups: List[BatchGroup], prettyPrint: Boolean)(executionInfo: ExecutionInfo, dc: TranslateRunner): TranslateResult[List[String]]
Inherited from:
ContextTranslateProto
def translateBatchQueryReturningEndpoint(groups: List[BatchGroupReturning], prettyPrint: Boolean)(executionInfo: ExecutionInfo, dc: TranslateRunner): TranslateResult[List[String]]
Inherited from:
ContextTranslateProto
override def translateContext: Runner
Definition Classes
Inherited from:
MirrorContextBase
def translateQueryEndpoint[T](statement: String, prepare: Prepare, extractor: () => T, prettyPrint: Boolean)(executionInfo: ExecutionInfo, dc: TranslateRunner): TranslateResult[String]
Inherited from:
ContextTranslateProto
override def wrap[T](t: => T): T

Concrete fields

val idiom: Idiom
val naming: Naming
val session: MirrorSession

Inherited fields

Inherited from:
RowContext
protected val identityPrepare: Prepare
Inherited from:
RowContext

Extensions

Inherited extensions

extension [T](dynamicQuery: DynamicEntityQuery[T])
inline def insertValue(value: T): DynamicInsert[T]
Inherited from:
Context
inline def updateValue(value: T): DynamicUpdate[T]
Inherited from:
Context
extension [T](entity: EntityQuery[T])
inline def insertValue(inline value: T): Insert[T]
Inherited from:
Context
inline def updateValue(inline value: T): Update[T]
Inherited from:
Context
extension [T](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.

Inherited from:
Context
inline def filterColumns(inline columns: List[String]): Query[T]
Inherited from:
Context
extension [T](quotedEntity: Quoted[EntityQuery[T]])
inline def insertValue(inline value: T): Insert[T]
Inherited from:
Context
inline def updateValue(inline value: T): Update[T]
Inherited from:
Context

Implicits

Inherited implicits

implicit inline def anyValDecoder[Cls <: AnyVal]: MirrorDecoder[Cls]
Inherited from:
LowPriorityImplicits
implicit inline def anyValEncoder[Cls <: AnyVal]: MirrorEncoder[Cls]
Inherited from:
LowPriorityImplicits
implicit def arrayBigDecimalDecoder[Col <: Seq[BigDecimal]](implicit bf: Factory[BigDecimal, Col]): MirrorDecoder[Col]
Inherited from:
ArrayMirrorEncoding
implicit def arrayBigDecimalEncoder[Col <: Seq[BigDecimal]]: MirrorEncoder[Col]
Inherited from:
ArrayMirrorEncoding
implicit def arrayBooleanDecoder[Col <: Seq[Boolean]](implicit bf: Factory[Boolean, Col]): MirrorDecoder[Col]
Inherited from:
ArrayMirrorEncoding
implicit def arrayBooleanEncoder[Col <: Seq[Boolean]]: MirrorEncoder[Col]
Inherited from:
ArrayMirrorEncoding
implicit def arrayByteDecoder[Col <: Seq[Byte]](implicit bf: Factory[Byte, Col]): MirrorDecoder[Col]
Inherited from:
ArrayMirrorEncoding
implicit def arrayByteEncoder[Col <: Seq[Byte]]: MirrorEncoder[Col]
Inherited from:
ArrayMirrorEncoding
implicit def arrayDateDecoder[Col <: Seq[Date]](implicit bf: Factory[Date, Col]): MirrorDecoder[Col]
Inherited from:
ArrayMirrorEncoding
implicit def arrayDateEncoder[Col <: Seq[Date]]: MirrorEncoder[Col]
Inherited from:
ArrayMirrorEncoding
implicit def arrayDoubleDecoder[Col <: Seq[Double]](implicit bf: Factory[Double, Col]): MirrorDecoder[Col]
Inherited from:
ArrayMirrorEncoding
implicit def arrayDoubleEncoder[Col <: Seq[Double]]: MirrorEncoder[Col]
Inherited from:
ArrayMirrorEncoding
implicit def arrayFloatDecoder[Col <: Seq[Float]](implicit bf: Factory[Float, Col]): MirrorDecoder[Col]
Inherited from:
ArrayMirrorEncoding
implicit def arrayFloatEncoder[Col <: Seq[Float]]: MirrorEncoder[Col]
Inherited from:
ArrayMirrorEncoding
implicit def arrayIntDecoder[Col <: Seq[Int]](implicit bf: Factory[Int, Col]): MirrorDecoder[Col]
Inherited from:
ArrayMirrorEncoding
implicit def arrayIntEncoder[Col <: Seq[Int]]: MirrorEncoder[Col]
Inherited from:
ArrayMirrorEncoding
implicit def arrayLocalDateDecoder[Col <: Seq[LocalDate]](implicit bf: Factory[LocalDate, Col]): MirrorDecoder[Col]
Inherited from:
ArrayMirrorEncoding
implicit def arrayLocalDateEncoder[Col <: Seq[LocalDate]]: MirrorEncoder[Col]
Inherited from:
ArrayMirrorEncoding
implicit def arrayLongDecoder[Col <: Seq[Long]](implicit bf: Factory[Long, Col]): MirrorDecoder[Col]
Inherited from:
ArrayMirrorEncoding
implicit def arrayLongEncoder[Col <: Seq[Long]]: MirrorEncoder[Col]
Inherited from:
ArrayMirrorEncoding
implicit def arrayMappedDecoder[I, O, Col <: (Seq)](implicit mapped: MappedEncoding[I, O], d: MirrorDecoder[Seq[I]], bf: Factory[O, Col[O]]): MirrorDecoder[Col[O]]
Inherited from:
ArrayEncoding
implicit def arrayMappedEncoder[I, O, Col <: (Seq)](implicit mapped: MappedEncoding[I, O], e: MirrorEncoder[Seq[O]]): MirrorEncoder[Col[I]]
Inherited from:
ArrayEncoding
implicit def arrayShortDecoder[Col <: Seq[Short]](implicit bf: Factory[Short, Col]): MirrorDecoder[Col]
Inherited from:
ArrayMirrorEncoding
implicit def arrayShortEncoder[Col <: Seq[Short]]: MirrorEncoder[Col]
Inherited from:
ArrayMirrorEncoding
implicit def arrayStringDecoder[Col <: Seq[String]](implicit bf: Factory[String, Col]): MirrorDecoder[Col]
Inherited from:
ArrayMirrorEncoding
implicit def arrayStringEncoder[Col <: Seq[String]]: MirrorEncoder[Col]
Inherited from:
ArrayMirrorEncoding
implicit val bigDecimalDecoder: MirrorDecoder[BigDecimal]
Inherited from:
MirrorDecoders
implicit val bigDecimalEncoder: MirrorEncoder[BigDecimal]
Inherited from:
MirrorEncoders
implicit val booleanDecoder: MirrorDecoder[Boolean]
Inherited from:
MirrorDecoders
implicit val booleanEncoder: MirrorEncoder[Boolean]
Inherited from:
MirrorEncoders
implicit val byteArrayDecoder: MirrorDecoder[Array[Byte]]
Inherited from:
MirrorDecoders
implicit val byteArrayEncoder: MirrorEncoder[Array[Byte]]
Inherited from:
MirrorEncoders
implicit val byteDecoder: MirrorDecoder[Byte]
Inherited from:
MirrorDecoders
implicit val byteEncoder: MirrorEncoder[Byte]
Inherited from:
MirrorEncoders
implicit val dateDecoder: MirrorDecoder[Date]
Inherited from:
MirrorDecoders
implicit val dateEncoder: MirrorEncoder[Date]
Inherited from:
MirrorEncoders
implicit inline def dec[T]: GenericDecoder[ResultRow, Session, T, Generic]
Inherited from:
Context
implicit val doubleDecoder: MirrorDecoder[Double]
Inherited from:
MirrorDecoders
implicit val doubleEncoder: MirrorEncoder[Double]
Inherited from:
MirrorEncoders
implicit val floatDecoder: MirrorDecoder[Float]
Inherited from:
MirrorDecoders
implicit val floatEncoder: MirrorEncoder[Float]
Inherited from:
MirrorEncoders
implicit val intDecoder: MirrorDecoder[Int]
Inherited from:
MirrorDecoders
implicit val intEncoder: MirrorEncoder[Int]
Inherited from:
MirrorEncoders
implicit val localDateDecoder: MirrorDecoder[LocalDate]
Inherited from:
MirrorDecoders
implicit val localDateEncoder: MirrorEncoder[LocalDate]
Inherited from:
MirrorEncoders
implicit val longDecoder: MirrorDecoder[Long]
Inherited from:
MirrorDecoders
implicit val longEncoder: MirrorEncoder[Long]
Inherited from:
MirrorEncoders
implicit def mappedDecoder[I, O](implicit mapped: MappedEncoding[I, O], d: MirrorDecoder[I]): MirrorDecoder[O]
Inherited from:
MirrorDecoders
implicit def mappedEncoder[I, O](implicit mapped: MappedEncoding[I, O], e: MirrorEncoder[O]): MirrorEncoder[I]
Inherited from:
MirrorEncoders
implicit val nullChecker: NullChecker
Inherited from:
MirrorContextBase
implicit def nullEncoder: MirrorEncoder[Null]
Inherited from:
MirrorEncoders
implicit def optionDecoder[T](implicit d: MirrorDecoder[T]): MirrorDecoder[Option[T]]
Inherited from:
MirrorDecoders
implicit def optionEncoder[T](implicit d: MirrorEncoder[T]): MirrorEncoder[Option[T]]
Inherited from:
MirrorEncoders
implicit val shortDecoder: MirrorDecoder[Short]
Inherited from:
MirrorDecoders
implicit val shortEncoder: MirrorEncoder[Short]
Inherited from:
MirrorEncoders
implicit val stringDecoder: MirrorDecoder[String]
Inherited from:
MirrorDecoders
implicit val stringEncoder: MirrorEncoder[String]
Inherited from:
MirrorEncoders
implicit val uuidDecoder: MirrorDecoder[UUID]
Inherited from:
MirrorDecoders
implicit val uuidEncoder: MirrorEncoder[UUID]
Inherited from:
MirrorEncoders