ZioPrepareContext
trait ZioPrepareContext[Dialect <: SqlIdiom, Naming <: NamingStrategy] extends ZioContext[Dialect, Naming] with PrepareContext[Dialect, Naming] with RowContext
trait PrepareContext[Dialect, Naming]
trait ZioContext[Dialect, Naming]
trait StreamingContext[Dialect, Naming]
trait ProtoStreamContext[Dialect, Naming]
trait Context[Dialect, Naming]
trait Closeable
trait AutoCloseable
trait EncodingDsl
trait LowPriorityImplicits
trait ProtoContext[Dialect, Naming]
trait RowContext
class Object
trait Matchable
class Any
class H2ZioJdbcContext[N]
class MysqlZioJdbcContext[N]
class OracleZioJdbcContext[N]
class PostgresZioJdbcContext[N]
class SqlServerZioJdbcContext[N]
class SqliteZioJdbcContext[N]
Type members
Inherited classlikes
case class BatchGroupReturning(string: String, returningBehavior: ReturnAction, prepare: List[Prepare])
- Inherited from
- ProtoContext
Types
Inherited types
Value members
Concrete methods
def prepareAction(sql: String, prepare: Prepare)(executionInfo: ExecutionInfo, dc: DatasourceContext): PrepareActionResult
def prepareBatchAction(groups: List[BatchGroup])(executionInfo: ExecutionInfo, dc: DatasourceContext): PrepareBatchActionResult
def prepareQuery(sql: String, prepare: Prepare)(executionInfo: ExecutionInfo, dc: DatasourceContext): PrepareQueryResult
def prepareSingle(sql: String, prepare: Prepare)(executionInfo: ExecutionInfo, dc: DatasourceContext): QIO[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
def executeAction[T](sql: String, prepare: Prepare)(executionInfo: ExecutionInfo, dc: DatasourceContext): Result[RunActionResult]
- Inherited from
- ProtoContext
def executeActionReturning[T](sql: String, prepare: Prepare, extractor: () => T, returningBehavior: ReturnAction)(executionInfo: ExecutionInfo, dc: DatasourceContext): Result[RunActionReturningResult[T]]
- Inherited from
- ProtoContext
def executeBatchAction(groups: List[BatchGroup])(executionInfo: ExecutionInfo, dc: DatasourceContext): Result[RunBatchActionResult]
- Inherited from
- ProtoContext
def executeBatchActionReturning[T](groups: List[BatchGroupReturning], extractor: () => T)(executionInfo: ExecutionInfo, dc: DatasourceContext): Result[RunBatchActionReturningResult[T]]
- Inherited from
- ProtoContext
def executeQuery[T](sql: String, prepare: Prepare, extractor: () => T)(executionInfo: ExecutionInfo, dc: DatasourceContext): ZIO[Environment, Error, List[T]]
- Inherited from
- ZioContext
def executeQuerySingle[T](string: String, prepare: Prepare, extractor: () => T)(executionInfo: ExecutionInfo, dc: DatasourceContext): Result[RunQuerySingleResult[T]]
- Inherited from
- ProtoContext
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
- PrepareContext
@targetName("runBatchActionReturning")
inline def run[I, T, A <: Action[I] & QAC[I, T]](inline quoted: Quoted[BatchAction[A]]): Result[RunBatchActionReturningResult[T]]
- Inherited from
- Context
@targetName("runBatchAction")
inline def run[I, A <: Action[I] & QAC[I, Nothing]](inline quoted: Quoted[BatchAction[A]]): Result[RunBatchActionResult]
- Inherited from
- Context
@targetName("runActionReturning")
inline def run[E, T](inline quoted: Quoted[ActionReturning[E, T]]): Result[RunActionReturningResult[T]]
- Inherited from
- Context
def streamQuery[T](fetchSize: Option[Int], sql: String, prepare: Prepare, extractor: () => T)(executionInfo: ExecutionInfo, dc: DatasourceContext): StreamResult[T]
- Inherited from
- ProtoStreamContext
Inherited fields
Extensions
Inherited extensions
extension (q: Query[T])
Implicits
Inherited implicits
implicit def mappedDecoder[Base, Mapped](mapped: MappedEncoding[Base, Mapped], decoder: Decoder[Base]): Decoder[Mapped]
- Inherited from
- EncodingDsl
implicit def mappedEncoder[Mapped, Base](mapped: MappedEncoding[Mapped, Base], encoder: Encoder[Base]): Encoder[Mapped]
- Inherited from
- EncodingDsl