Context

trait Context[Dialect <: Idiom, Naming <: NamingStrategy] extends ProtoContext[Dialect, Naming] with EncodingDsl with Closeable
trait Closeable
trait AutoCloseable
trait ProtoContext[Dialect, Naming]
trait RowContext
class Object
trait Matchable
class Any
trait MirrorContextBase[Dialect, Naming]
class MirrorContext[Dialect, Naming]
class SqlMirrorContext[Idiom, Naming]
trait ContextStandard[Idiom, Naming]
trait SqlContext[Idiom, Naming]
Context[Dialect, Naming]

Type members

Classlikes

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

Types

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 types

type DecoderMethod[T] = (Int, ResultRow, Session) => T
Inherited from
EncodingDsl
Inherited from
EncodingDsl
type EncoderMethod[T] = (Int, T, PrepareRow, Session) => PrepareRow
Inherited from
EncodingDsl
type Extractor[T] = (ResultRow, Session) => T
Inherited from
RowContext
type Prepare = (PrepareRow, Session) => (List[Any], PrepareRow)
Inherited from
RowContext
Inherited from
EncodingDsl
type Result[T]
Inherited from
ProtoContext
Inherited from
EncodingDsl
Inherited from
EncodingDsl
Inherited from
ProtoContext
Inherited from
ProtoContext
Inherited from
ProtoContext
Inherited from
ProtoContext
Inherited from
ProtoContext
Inherited from
ProtoContext
type Runner

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

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

Inherited from
ProtoContext
type Session
Inherited from
EncodingDsl

Value members

Concrete methods

def close(): Unit
protected
def context: Runner
protected
def handleSingleResult[T](list: List[T]): T
inline
def lift[T](inline runtimeValue: T): T
inline
def liftQuery[U <: ([_] =>> Iterable[_]), T](inline runtimeValue: U[T]): Query[T]

Inherited methods

def executeAction(sql: String, prepare: Prepare)(executionInfo: ExecutionInfo, rn: Runner): Result[RunActionResult]
Inherited from
ProtoContext
def executeActionReturning[T](sql: String, prepare: Prepare, extractor: () => T, returningBehavior: ReturnAction)(executionInfo: ExecutionInfo, rn: Runner): Result[RunActionReturningResult[T]]
Inherited from
ProtoContext
def executeBatchAction(groups: List[BatchGroup])(executionInfo: ExecutionInfo, rn: Runner): Result[RunBatchActionResult]
Inherited from
ProtoContext
def executeBatchActionReturning[T](groups: List[BatchGroupReturning], extractor: () => T)(executionInfo: ExecutionInfo, rn: Runner): Result[RunBatchActionReturningResult[T]]
Inherited from
ProtoContext
def executeQuery[T](sql: String, prepare: Prepare, extractor: () => T)(executionInfo: ExecutionInfo, rn: Runner): Result[RunQueryResult[T]]
Inherited from
ProtoContext
def executeQuerySingle[T](string: String, prepare: Prepare, extractor: () => T)(executionInfo: ExecutionInfo, rn: Runner): Result[RunQuerySingleResult[T]]
Inherited from
ProtoContext
def idiom: Dialect
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
def naming: Naming
Inherited from
ProtoContext

Inherited fields

Inherited from
RowContext
protected
val identityPrepare: Prepare
Inherited from
RowContext

Extensions

Extensions

extension [T](q: Query[T])
inline
def filterByKeys(inline map: Map[String, String]): 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.

inline
def filterColumns(inline columns: List[String]): Query[T]

Implicits

Implicits

implicit inline

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
def doubleEncoder: Encoder[Double]
Inherited from
EncodingDsl
implicit
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