JdbcPrepareBase

trait JdbcPrepareBase[Dialect <: SqlIdiom, Naming <: NamingStrategy] extends Context[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

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

Types

override
type PrepareRow = PreparedStatement
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 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
type Extractor[T] = (ResultRow, Session) => T
Inherited from
RowContext
type Prepare = (PrepareRow, Session) => (List[Any], PrepareRow)
Inherited from
RowContext
type Result[T]
Inherited from
ProtoContext
Inherited from
EncodingDsl
type RowTyper[T] = GenericRowTyper[ResultRow, T]
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 RunnerBehavior <: RunnerSummoningBehavior
Inherited from
Context

Value members

Abstract methods

def prepareAction(sql: String, prepare: Prepare): PrepareResult
def prepareQuery[T](sql: String, prepare: Prepare, extractor: () => T): PrepareResult
def prepareSingle(sql: String, prepare: Prepare): PrepareResult

Concrete methods

protected
def prepareBatchInternal(conn: Connection, groups: List[BatchGroup], prepareSingle: (String, Prepare, Connection) => Result[PreparedStatement]): Result[List[PreparedStatement]]
protected
def prepareInternal(conn: Connection, sql: String, prepare: Prepare): Result[PreparedStatement]

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
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
protected
def handleSingleResult[T](list: List[T]): T
Inherited from
Context
def idiom: Dialect
Inherited from
ProtoContext
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
ProtoContext
@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
@targetName("runAction")
inline
def run[E](inline quoted: Quoted[Action[E]]): Result[RunActionResult]
Inherited from
Context
@targetName("runQuerySingle")
inline
def run[T](inline quoted: Quoted[T]): Result[RunQuerySingleResult[T]]
Inherited from
Context
@targetName("runQuery")
inline
def run[T](inline quoted: Quoted[Query[T]], inline wrap: OuterSelectWrap): Result[RunQueryResult[T]]
Inherited from
Context
@targetName("runQueryDefault")
inline
def run[T](inline quoted: Quoted[Query[T]]): Result[RunQueryResult[T]]
Inherited from
Context

Abstract fields

protected
val effect: ContextEffect[Result]

Inherited fields

protected
val identityExtractor: (ResultRow, Session) => ResultRow
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, 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.

Inherited from
Context
inline
def filterColumns(inline columns: List[String]): Query[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