ZioTranslateContext

io.getquill.context.qzio.ZioTranslateContext
trait ZioTranslateContext[+Dialect <: Idiom, +Naming <: NamingStrategy] extends Context[Dialect, Naming], ContextTranslateMacro[Dialect, Naming]

Attributes

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

Members list

Type members

Inherited classlikes

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

Types

type Error
override type TranslateResult[T] = ZIO[Environment, Error, T]

Inherited types

type BaseDecoder[T] = GenericDecoder[ResultRow, Session, T, Specific]

Attributes

Inherited from:
EncodingDsl
type BaseEncoder[T] = GenericEncoder[T, PrepareRow, Session]

Attributes

Inherited from:
EncodingDsl
type BaseNullChecker = GenericNullChecker[ResultRow, Session]

Attributes

Inherited from:
EncodingDsl
type ColumnResolver = GenericColumnResolver[ResultRow]

Attributes

Inherited from:
EncodingDsl
type Decoder[T] <: GenericDecoder[ResultRow, Session, T, Specific]

Attributes

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

Attributes

Inherited from:
EncodingDsl
type Encoder[T] <: GenericEncoder[T, PrepareRow, Session]

Attributes

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

Attributes

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

Attributes

Inherited from:
RowContext
type NullChecker <: GenericNullChecker[ResultRow, Session]

Attributes

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

Attributes

Inherited from:
RowContext
type PrepareRow

Attributes

Inherited from:
EncodingDsl
type Result[T]

Attributes

Inherited from:
ProtoContextSecundus
type ResultRow

Attributes

Inherited from:
EncodingDsl
type RowTyper[T] = GenericRowTyper[ResultRow, T]

Attributes

Inherited from:
EncodingDsl

Attributes

Inherited from:
ProtoContextSecundus

Attributes

Inherited from:
ProtoContextSecundus

Attributes

Inherited from:
ProtoContextSecundus

Attributes

Inherited from:
ProtoContextSecundus
type RunQueryResult[T]

Attributes

Inherited from:
ProtoContextSecundus

Attributes

Inherited from:
ProtoContextSecundus
type Runner

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

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

Attributes

Inherited from:
ProtoContextSecundus
type RunnerBehavior <: RunnerSummoningBehavior

Attributes

Inherited from:
ContextTranslateMacro
type Session

Attributes

Inherited from:
EncodingDsl

Attributes

Inherited from:
ContextTranslateMacro

Value members

Concrete methods

override def push[A, B](result: TranslateResult[A])(f: A => B): TranslateResult[B]

Attributes

Definition Classes
ContextTranslateProto
override def seq[A](list: List[TranslateResult[A]]): TranslateResult[List[A]]

Attributes

Definition Classes
ContextTranslateProto
override def wrap[T](t: => T): TranslateResult[T]

Attributes

Definition Classes
ContextTranslateProto

Inherited methods

inline def _summonTranslateRunner(): TranslateRunner

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
protected def context: Runner

Attributes

Inherited from:
Context
def executeAction(sql: String, prepare: Prepare)(executionInfo: ExecutionInfo, rn: Runner): Result[RunActionResult]

Attributes

Inherited from:
ProtoContextSecundus
def executeActionReturning[T](sql: String, prepare: Prepare, extractor: () => T, returningBehavior: ReturnAction)(executionInfo: ExecutionInfo, rn: Runner): Result[RunActionReturningResult[T]]

Attributes

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

Attributes

Inherited from:
ProtoContextSecundus
def executeBatchAction(groups: List[BatchGroup])(executionInfo: ExecutionInfo, rn: Runner): Result[RunBatchActionResult]

Attributes

Inherited from:
ProtoContextSecundus
def executeBatchActionReturning[T](groups: List[BatchGroupReturning], extractor: () => T)(executionInfo: ExecutionInfo, rn: Runner): Result[RunBatchActionReturningResult[T]]

Attributes

Inherited from:
ProtoContextSecundus
def executeQuery[T](sql: String, prepare: Prepare, extractor: () => T)(executionInfo: ExecutionInfo, rn: Runner): Result[RunQueryResult[T]]

Attributes

Inherited from:
ProtoContextSecundus
def executeQuerySingle[T](string: String, prepare: Prepare, extractor: () => T)(executionInfo: ExecutionInfo, rn: Runner): Result[RunQuerySingleResult[T]]

Attributes

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

Attributes

Inherited from:
Context
def idiom: Dialect

Attributes

Inherited from:
ProtoContextSecundus
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
def naming: Naming

Attributes

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

Attributes

Inherited from:
ContextTranslateProto
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
def translateContext: TranslateRunner

Attributes

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

Attributes

Inherited from:
ContextTranslateProto

Inherited fields

protected val identityExtractor: (ResultRow, Session) => ResultRow

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 def bigDecimalEncoder: Encoder[BigDecimal]

Attributes

Inherited from:
EncodingDsl
implicit def booleanEncoder: Encoder[Boolean]

Attributes

Inherited from:
EncodingDsl
implicit def byteEncoder: Encoder[Byte]

Attributes

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

Attributes

Inherited from:
Context
implicit def doubleEncoder: Encoder[Double]

Attributes

Inherited from:
EncodingDsl
implicit def intEncoder: Encoder[Int]

Attributes

Inherited from:
EncodingDsl
implicit def longEncoder: Encoder[Long]

Attributes

Inherited from:
EncodingDsl
implicit def mappedDecoder[Base, Mapped](implicit mapped: MappedEncoding[Base, Mapped], decoder: Decoder[Base]): Decoder[Mapped]

Attributes

Inherited from:
EncodingDsl
implicit def mappedEncoder[Mapped, Base](implicit mapped: MappedEncoding[Mapped, Base], encoder: Encoder[Base]): Encoder[Mapped]

Attributes

Inherited from:
EncodingDsl
implicit def shortEncoder: Encoder[Short]

Attributes

Inherited from:
EncodingDsl
implicit def stringEncoder: Encoder[String]

Attributes

Inherited from:
EncodingDsl