Trait

io.getquill.context

ProtoContext

Related Doc: package context

Permalink

trait ProtoContext[Dialect <: Idiom, Naming <: NamingStrategy] extends RowContext

A common context used between Quill and ProtoQuill. This is more like a pre-context because the actual run methods cannot be contained here since they use macros. Right now not all Scala2-Quill context extend this context but hopefully they will all in the future. This will establish a common general-api that Quill contexts can use. In ProtoQuill, this context is used for the base of all other context and allows the Scala 3 macros to call the execute_ methods. In Scala2-Quill wherein macros are less strict about signatures, this cannot be used for Context (in Context.scala) but various higher-level context extend it as a guard-rail against API drift i.e. so that the Scala2-Quill and ProtoQuill internal-context APIs remain largely the same.

Linear Supertypes
RowContext, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ProtoContext
  2. RowContext
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. case class BatchGroup(string: String, prepare: List[Prepare]) extends Product with Serializable

    Permalink
    Definition Classes
    RowContext
  2. case class BatchGroupReturning(string: String, returningBehavior: ReturnAction, prepare: List[Prepare]) extends Product with Serializable

    Permalink
    Definition Classes
    RowContext
  3. type Extractor[T] = (ResultRow, Session) ⇒ T

    Permalink
    Definition Classes
    RowContext
  4. type Prepare = (PrepareRow, Session) ⇒ (List[Any], PrepareRow)

    Permalink
    Definition Classes
    RowContext
  5. abstract type PrepareRow

    Permalink
    Definition Classes
    ProtoContextRowContext
  6. abstract type Result[T]

    Permalink
  7. abstract type ResultRow

    Permalink
    Definition Classes
    ProtoContextRowContext
  8. abstract type RunActionResult

    Permalink
  9. abstract type RunActionReturningResult[T]

    Permalink
  10. abstract type RunBatchActionResult

    Permalink
  11. abstract type RunBatchActionReturningResult[T]

    Permalink
  12. abstract type RunQueryResult[T]

    Permalink
  13. abstract type RunQuerySingleResult[T]

    Permalink
  14. abstract type Runner

    Permalink

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

  15. abstract type Session

    Permalink
    Definition Classes
    ProtoContextRowContext

Abstract Value Members

  1. abstract def executeAction(sql: String, prepare: Prepare)(executionInfo: ExecutionInfo, rn: Runner): Result[RunActionResult]

    Permalink
  2. abstract def executeActionReturning[T](sql: String, prepare: Prepare, extractor: Extractor[T], returningBehavior: ReturnAction)(executionInfo: ExecutionInfo, rn: Runner): Result[RunActionReturningResult[T]]

    Permalink
  3. abstract def executeBatchAction(groups: List[BatchGroup])(executionInfo: ExecutionInfo, rn: Runner): Result[RunBatchActionResult]

    Permalink
  4. abstract def executeBatchActionReturning[T](groups: List[BatchGroupReturning], extractor: Extractor[T])(executionInfo: ExecutionInfo, rn: Runner): Result[RunBatchActionReturningResult[T]]

    Permalink
  5. abstract def executeQuery[T](sql: String, prepare: Prepare, extractor: Extractor[T])(executionInfo: ExecutionInfo, rn: Runner): Result[RunQueryResult[T]]

    Permalink
  6. abstract def executeQuerySingle[T](string: String, prepare: Prepare, extractor: Extractor[T])(executionInfo: ExecutionInfo, rn: Runner): Result[RunQuerySingleResult[T]]

    Permalink
  7. abstract def idiom: Dialect

    Permalink
  8. abstract def naming: Naming

    Permalink

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  10. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  11. val identityExtractor: (ResultRow, Session) ⇒ ResultRow

    Permalink
    Attributes
    protected
    Definition Classes
    RowContext
  12. val identityPrepare: Prepare

    Permalink
    Attributes
    protected
    Definition Classes
    RowContext
  13. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  14. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  15. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  16. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  17. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  18. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  19. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  20. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  21. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from RowContext

Inherited from AnyRef

Inherited from Any

Ungrouped