SqlContext

trait SqlContext[+Idiom <: Idiom, +Naming <: NamingStrategy] extends Context[Idiom, Naming] with EncodingDsl
trait Context[Idiom, Naming]
trait Closeable
trait AutoCloseable
trait ProtoContextSecundus[Idiom, Naming]
trait RowContext
class Object
trait Matchable
class Any
class SqlMirrorContext[Idiom, Naming]

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

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:
ProtoContextSecundus
Inherited from:
EncodingDsl
Inherited from:
EncodingDsl
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...

Inherited from:
ProtoContextSecundus

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
type Session
Inherited from:
EncodingDsl

Value members

Inherited methods

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
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)(executionInfo: ExecutionInfo, rn: Runner): Result[RunQueryResult[T]]
Inherited from:
ProtoContextSecundus
def executeQuerySingle[T](string: String, prepare: Prepare, extractor: () => T)(executionInfo: ExecutionInfo, rn: Runner): Result[RunQuerySingleResult[T]]
Inherited from:
ProtoContextSecundus
protected def handleSingleResult[T](sql: String, list: List[T]): T
Inherited from:
Context
def idiom: Idiom
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

Inherited fields

Inherited from:
RowContext
protected val identityPrepare: Prepare
Inherited from:
RowContext

Extensions

Inherited extensions

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

Implicits

Implicits

implicit val bigDecimalDecoder: Decoder[BigDecimal]
implicit val bigDecimalEncoder: Encoder[BigDecimal]
implicit val booleanDecoder: Decoder[Boolean]
implicit val booleanEncoder: Encoder[Boolean]
implicit val byteArrayDecoder: Decoder[Array[Byte]]
implicit val byteArrayEncoder: Encoder[Array[Byte]]
implicit val byteDecoder: Decoder[Byte]
implicit val byteEncoder: Encoder[Byte]
implicit val dateDecoder: Decoder[Date]
implicit val dateEncoder: Encoder[Date]
implicit val doubleDecoder: Decoder[Double]
implicit val doubleEncoder: Encoder[Double]
implicit val floatDecoder: Decoder[Float]
implicit val floatEncoder: Encoder[Float]
implicit val intDecoder: Decoder[Int]
implicit val intEncoder: Encoder[Int]
implicit val localDateDecoder: Decoder[LocalDate]
implicit val localDateEncoder: Encoder[LocalDate]
implicit val longDecoder: Decoder[Long]
implicit val longEncoder: Encoder[Long]
implicit def optionDecoder[T](implicit d: Decoder[T]): Decoder[Option[T]]
implicit def optionEncoder[T](implicit d: Encoder[T]): Encoder[Option[T]]
implicit val shortDecoder: Decoder[Short]
implicit val shortEncoder: Encoder[Short]
implicit val stringDecoder: Decoder[String]
implicit val stringEncoder: Encoder[String]
implicit val uuidDecoder: Decoder[UUID]
implicit val uuidEncoder: Encoder[UUID]

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 inline def dec[T]: GenericDecoder[ResultRow, Session, T, Generic]
Inherited from:
Context
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