ZioPrepareContext

trait ZioPrepareContext[+Dialect <: SqlIdiom, +Naming <: NamingStrategy] extends ZioContext[Dialect, Naming] with ContextVerbPrepare[Dialect, Naming]
trait ContextVerbPrepare[Dialect, Naming]
trait ZioContext[Dialect, Naming]
trait ContextVerbStream[Dialect, Naming]
trait ProtoStreamContext[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
class ZioJdbcContext[Dialect, Naming]
class ZioJdbcUnderlyingContext[Dialect, Naming]
class Underlying[N]
class Underlying[N]
class Underlying[N]
class Underlying[N]
class Underlying[N]
class Underlying[N]
trait WithProbing[D, N]
trait WithProbingPrefix[D, N]

Type members

Inherited classlikes

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

Types

override type PrepareRow = PreparedStatement
override type ResultRow = ResultSet
override type Session = Connection

Inherited types

type BaseDecoder[T] = GenericDecoder[ResultRow, Session, T, Specific]
Inherited from:
EncodingDsl
type BaseEncoder[T] = GenericEncoder[T, PrepareRow, Session]
Inherited from:
EncodingDsl
type BaseNullChecker = GenericNullChecker[ResultRow, Session]
Inherited from:
EncodingDsl
type ColumnResolver = GenericColumnResolver[ResultRow]
Inherited from:
EncodingDsl
type Decoder[T] <: GenericDecoder[ResultRow, Session, T, Specific]
Inherited from:
EncodingDsl
type DecoderMethod[T] = (Int, ResultRow, Session) => T
Inherited from:
EncodingDsl
type Encoder[T] <: GenericEncoder[T, PrepareRow, Session]
Inherited from:
EncodingDsl
type EncoderMethod[T] = (Int, T, PrepareRow, Session) => PrepareRow
Inherited from:
EncodingDsl
Inherited from:
ZioContext
type Error
Inherited from:
ZioContext
type Extractor[T] = (ResultRow, Session) => T
Inherited from:
RowContext
type NullChecker <: GenericNullChecker[ResultRow, Session]
Inherited from:
EncodingDsl
type Prepare = (PrepareRow, Session) => (List[Any], PrepareRow)
Inherited from:
RowContext
override type Result[T] = ZIO[Environment, Error, T]
Inherited from:
ZioContext
type RowTyper[T] = GenericRowTyper[ResultRow, T]
Inherited from:
EncodingDsl
Inherited from:
ProtoContextSecundus
Inherited from:
ProtoContextSecundus
Inherited from:
ProtoContextSecundus
Inherited from:
ProtoContextSecundus
override type RunQueryResult[T] = List[T]
Inherited from:
ZioContext
override type RunQuerySingleResult[T] = T
Inherited from:
ZioContext
type Runner
Inherited from:
ContextVerbPrepare
type RunnerBehavior <: RunnerSummoningBehavior

Base type used to determine whether there is an execution context that needs to be summoned to perform execution methods e.g. in the PostgresJasync contexts that use Scala Futures that need an ExecutionContext.

Base type used to determine whether there is an execution context that needs to be summoned to perform execution methods e.g. in the PostgresJasync contexts that use Scala Futures that need an ExecutionContext.

Inherited from:
Context
override type StreamResult[T] = ZStream[Environment, Error, T]
Inherited from:
ZioContext

Value members

Concrete methods

def prepareAction(sql: String, prepare: Prepare)(info: ExecutionInfo, dc: Runner): PrepareActionResult
def prepareBatchAction(groups: List[BatchGroup])(info: ExecutionInfo, dc: Runner): PrepareBatchActionResult
def prepareQuery(sql: String, prepare: Prepare)(info: ExecutionInfo, dc: Runner): PrepareQueryResult
def prepareSingle(sql: String, prepare: Prepare)(info: ExecutionInfo, dc: Runner): QCIO[PreparedStatement]

Execute SQL on connection and return prepared statement. Closes the statement in a bracket.

Execute SQL on connection and return prepared statement. Closes the statement in a bracket.

Inherited methods

inline def _streamInternal[T](inline quoted: Quoted[Query[T]], fetchSize: Option[Int]): StreamResult[T]

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:
ContextVerbStream
inline def _summonPrepareRunner(): Runner
Inherited from:
ContextVerbPrepare
def close(): Unit
Inherited from:
Context
protected def context: Runner
Inherited from:
Context
def executeAction(sql: String, prepare: Prepare)(executionInfo: ExecutionInfo, rn: Runner): Result[RunActionResult]
Inherited from:
ProtoContextSecundus
def executeActionReturning[T](sql: String, prepare: Prepare, extractor: () => T, returningBehavior: ReturnAction)(executionInfo: ExecutionInfo, rn: Runner): Result[RunActionReturningResult[T]]
Inherited from:
ProtoContextSecundus
def executeActionReturningMany[T](sql: String, prepare: Prepare, extractor: () => T, returningBehavior: ReturnAction)(executionInfo: ExecutionInfo, rn: Runner): Result[RunActionReturningResult[List[T]]]
Inherited from:
ProtoContextSecundus
def executeBatchAction(groups: List[BatchGroup])(executionInfo: ExecutionInfo, rn: Runner): Result[RunBatchActionResult]
Inherited from:
ProtoContextSecundus
def executeBatchActionReturning[T](groups: List[BatchGroupReturning], extractor: () => T)(executionInfo: ExecutionInfo, rn: Runner): Result[RunBatchActionReturningResult[T]]
Inherited from:
ProtoContextSecundus
def executeQuery[T](sql: String, prepare: Prepare, extractor: () => T)(info: ExecutionInfo, dc: Runner): ZIO[Environment, Error, List[T]]
Inherited from:
ZioContext
def executeQuerySingle[T](sql: String, prepare: Prepare, extractor: () => T)(info: ExecutionInfo, dc: Runner): ZIO[Environment, Error, T]
Inherited from:
ZioContext
protected def handleSingleResult[T](sql: String, list: List[T]): T
Inherited from:
Context
def idiom: Dialect
Inherited from:
ProtoContextSecundus
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
def naming: Naming
Inherited from:
ProtoContextSecundus
@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
@targetName("streamQueryWithFetchSize")
inline def stream[T](inline quoted: Quoted[Query[T]], fetchSize: Int): StreamResult[T]
Inherited from:
ContextVerbStream
@targetName("streamQuery")
inline def stream[T](inline quoted: Quoted[Query[T]]): StreamResult[T]
Inherited from:
ContextVerbStream
def streamQuery[T](fetchSize: Option[Int], sql: String, prepare: Prepare, extractor: () => T)(info: ExecutionInfo, rn: Runner): StreamResult[T]
Inherited from:
ProtoStreamContext

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]: Decoder[Cls]
Inherited from:
LowPriorityImplicits
implicit inline def anyValEncoder[Cls <: AnyVal]: Encoder[Cls]
Inherited from:
LowPriorityImplicits
implicit def bigDecimalEncoder: Encoder[BigDecimal]
Inherited from:
EncodingDsl
implicit def booleanEncoder: Encoder[Boolean]
Inherited from:
EncodingDsl
implicit def byteEncoder: Encoder[Byte]
Inherited from:
EncodingDsl
implicit inline def dec[T]: GenericDecoder[ResultRow, Session, T, Generic]
Inherited from:
Context
implicit def doubleEncoder: Encoder[Double]
Inherited from:
EncodingDsl
implicit def intEncoder: Encoder[Int]
Inherited from:
EncodingDsl
implicit def longEncoder: Encoder[Long]
Inherited from:
EncodingDsl
implicit def mappedDecoder[Base, Mapped](implicit mapped: MappedEncoding[Base, Mapped], decoder: Decoder[Base]): Decoder[Mapped]
Inherited from:
EncodingDsl
implicit def mappedEncoder[Mapped, Base](implicit mapped: MappedEncoding[Mapped, Base], encoder: Encoder[Base]): Encoder[Mapped]
Inherited from:
EncodingDsl
implicit def shortEncoder: Encoder[Short]
Inherited from:
EncodingDsl
implicit def stringEncoder: Encoder[String]
Inherited from:
EncodingDsl