Returning

oxygen.sql.query.QueryResult.Returning
final class Returning[E, A]

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def arraySeq(using ClassTag[A]): ZIO[Database, E, ArraySeq[A]]
def chunk: ZIO[Database, E, Chunk[A]]
def mapError[E2](f: E => E2): Returning[E2, A]
def option(using ev: QueryError <:< E): ZIO[Database, E, Option[A]]
def optionOrElse[E2 >: E](onMany: => E2): ZIO[Database, E2, Option[A]]
def orDie(using ev1: IsSubtypeOfError[E, Throwable], ev2: CanFail[E]): Returning[Nothing, A]
def orDieWith(f: E => Throwable)(using ev1: CanFail[E]): Returning[Nothing, A]
def single(using ev: QueryError <:< E): ZIO[Database, E, A]
def singleOrElse[E2 >: E](onEmpty: => E2, onMany: => E2): ZIO[Database, E2, A]
def stream: ZStream[Database, E, A]
def to[S[_]](using ops: SeqOps[S]): ZIO[Database, E, S[A]]
def toSink[E1 >: E, B](sink: ZSink[Any, E1, A, Nothing, B]): ZIO[Database, E1, B]
def toSinkT[E1 >: E, T[_]](sink: ZSink[Any, E1, A, Nothing, T[A]]): ZIO[Database, E1, T[A]]