trait SqlMapping[F[_]] extends CirceMapping[F] with SqlModule[F]
- Alphabetic
- By Inheritance
- SqlMapping
- SqlModule
- CirceMapping
- Mapping
- QueryExecutor
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- case class AliasedMappings(tableAliases: List[(List[String], String, String)], columnAliases: List[(List[String], ColumnRef, ColumnRef)], seenTables: List[String], nextFresh: Int) extends Product with Serializable
Data structure managing DB table and column aliases.
Data structure managing DB table and column aliases.
Aliases are scoped by the result path, which is unique in the GraphQL output even in the presence of GraphQL field alises. Table aliases apply from the given output path and below.
Column aliases are synthesized whenever an SQL union has to be nested in a subquery and hence requires a uniform set of column names. These column aliases apply from the given path and above.
Tables are only aliased if they have already been seen in an depth-first in-order traversal of the output graph. This data structure also track the seen state for tables.
AliasedMappings also maintains the bookeeping information needed to supply arbitrary fresh names. Currently these are used to name identity/predicate joins.
- case class CirceCursor extends Cursor with Product with Serializable
- Definition Classes
- CirceMapping
- case class CirceRoot extends circe.CirceMapping.RootMapping with Product with Serializable
- Definition Classes
- CirceMapping
- abstract type Codec
The type of a codec that reads and writes column values of type
A
.The type of a codec that reads and writes column values of type
A
.- Definition Classes
- SqlModule
- case class ColumnRef(table: String, column: String, codec: SqlMapping.Codec, scalaTypeName: String)(implicit pos: SourcePos) extends Product with Serializable
Name of a SQL schema column and its associated codec.
Name of a SQL schema column and its associated codec. Note that
ColumnRef
s are considered equal if their table and column names are equal. - case class CursorField[T] extends FieldMapping with Product with Serializable
- Definition Classes
- Mapping
- case class Delegate extends FieldMapping with Product with Serializable
- Definition Classes
- Mapping
- abstract type Encoder
The type of an encoder that writes column values of type
A
.The type of an encoder that writes column values of type
A
.- Definition Classes
- SqlModule
- trait FieldMapping extends Product with Serializable
- Definition Classes
- Mapping
- abstract type Fragment
The type of a fragment of SQL together with any interpolated arguments.
The type of a fragment of SQL together with any interpolated arguments.
- Definition Classes
- SqlModule
- case class Join(parent: ColumnRef, child: ColumnRef) extends Product with Serializable
A pair of
ColumnRef
s, representing a SQL join. - case class LeafCursor(context: Context, focus: Any, mapped: MappedQuery, parent: Option[Cursor], env: Env) extends Cursor with Product with Serializable
Cursor positioned at a GraphQL result leaf
- trait LeafMapping[T] extends TypeMapping
- Definition Classes
- Mapping
- final class MappedQuery extends AnyRef
Represents the mapping of a GraphQL query to an SQL query
- case class Mutation extends Product with Serializable
- Definition Classes
- Mapping
- trait ObjectMapping extends TypeMapping
- Definition Classes
- Mapping
- case class PrefixedMapping extends TypeMapping with Product with Serializable
- Definition Classes
- Mapping
- case class PrimitiveMapping extends TypeMapping with Product with Serializable
- Definition Classes
- Mapping
- trait RootMapping extends FieldMapping
- Definition Classes
- Mapping
- case class SqlCursor(context: Context, focus: Any, mapped: MappedQuery, parent: Option[Cursor], env: Env) extends Cursor with Product with Serializable
Cursor positioned at a GraphQL result non-leaf
- sealed trait SqlDiscriminatedType extends AnyRef
Common super type for mappings which have a programmatic discriminator, ie.
Common super type for mappings which have a programmatic discriminator, ie. interface and union mappings. TODO: support SQL-native discriminators.
- case class SqlField(fieldName: String, columnRef: ColumnRef, key: Boolean = false, discriminator: Boolean = false, hidden: Boolean = false, associative: Boolean = false)(implicit pos: SourcePos) extends SqlFieldMapping with Product with Serializable
- sealed trait SqlFieldMapping extends FieldMapping
- sealed trait SqlInterfaceMapping extends ObjectMapping with SqlDiscriminatedType
- case class SqlJson(fieldName: String, columnRef: ColumnRef)(implicit pos: SourcePos) extends SqlFieldMapping with Product with Serializable
- case class SqlObject(fieldName: String, joins: List[Join])(implicit pos: SourcePos) extends SqlFieldMapping with Product with Serializable
- sealed trait SqlQuery extends AnyRef
Representation of a SQL query in a context
- case class SqlRoot(fieldName: String, orootTpe: Option[Type] = None, mutation: SqlMapping.Mutation = Mutation.None)(implicit pos: SourcePos) extends RootMapping with Product with Serializable
- sealed trait SqlUnionMapping extends ObjectMapping with SqlDiscriminatedType
- sealed trait TableExpr extends AnyRef
Representation of a table expression
- trait TypeMapping extends Product with Serializable
- Definition Classes
- Mapping
- trait SqlFragment[T] extends Monoid[T]
Typeclass for SQL fragments.
Typeclass for SQL fragments.
- Definition Classes
- SqlModule
Abstract Value Members
- implicit abstract def Fragments: SqlFragment[Fragment]
- Definition Classes
- SqlModule
- abstract def booleanEncoder: Encoder
- Definition Classes
- SqlModule
- abstract def doubleEncoder: Encoder
- Definition Classes
- SqlModule
- abstract def fetch(fragment: Fragment, codecs: List[(Boolean, Codec)]): F[Table]
- Definition Classes
- SqlModule
- abstract def intEncoder: Encoder
- Definition Classes
- SqlModule
- abstract def monitor: SqlMonitor[F, Fragment]
- Definition Classes
- SqlModule
- abstract val schema: Schema
- Definition Classes
- Mapping
- abstract def stringEncoder: Encoder
- Definition Classes
- SqlModule
- abstract def toEncoder(c: Codec): Encoder
Extract an encoder from a codec.
Extract an encoder from a codec.
- Definition Classes
- SqlModule
- abstract val typeMappings: List[TypeMapping]
- Definition Classes
- Mapping
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- implicit val M: Monad[F]
- Definition Classes
- Mapping
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- def compileAndRun(text: String, name: Option[String], untypedVars: Option[Json], introspectionLevel: IntrospectionLevel, env: Env)(implicit sc: Compiler[F, F]): F[Json]
- Definition Classes
- QueryExecutor
- def compileAndRunAll(text: String, name: Option[String], untypedVars: Option[Json], introspectionLevel: IntrospectionLevel, env: Env): Stream[F, Json]
- Definition Classes
- Mapping → QueryExecutor
- def compileAndRunOne(text: String, name: Option[String], untypedVars: Option[Json], introspectionLevel: IntrospectionLevel, env: Env)(implicit sc: Compiler[F, F]): F[Json]
- Definition Classes
- Mapping → QueryExecutor
- lazy val compiler: QueryCompiler
- Definition Classes
- Mapping
- def compilerPhases: List[Phase]
- Definition Classes
- Mapping
- lazy val componentElaborator: ComponentElaborator[[_]F[_]]
- Definition Classes
- Mapping
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def fieldMapping(context: Context, fieldName: String): Option[FieldMapping]
- Definition Classes
- Mapping
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- val interpreter: QueryInterpreter[F]
- Definition Classes
- Mapping
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def leafMapping[T](tpe: Type): Option[LeafMapping[T]]
- Definition Classes
- Mapping
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def objectMapping(context: Context): Option[ObjectMapping]
- Definition Classes
- Mapping
- def rootCursor(context: Context, fieldName: String, resultName: Option[String], child: Query, env: Env): Stream[F, Result[(Query, Cursor)]]
- Definition Classes
- Mapping
- def rootMapping(context: Context, fieldName: String): Option[RootMapping]
- Definition Classes
- Mapping
- def run(op: Operation, env: Env): Stream[F, Json]
- Definition Classes
- Mapping
- def run(query: Query, rootTpe: Type, env: Env): Stream[F, Json]
- Definition Classes
- Mapping → QueryExecutor
- val selectElaborator: SelectElaborator
- Definition Classes
- Mapping
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def typeMapping(tpe: Type): Option[TypeMapping]
- Definition Classes
- Mapping
- val validator: SqlMappingValidator
- Definition Classes
- SqlMapping → Mapping
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- object AliasedMappings extends Serializable
- object ColumnRef extends Serializable
- object CursorField extends Serializable
- Definition Classes
- Mapping
- object MappedQuery
- object Mutation extends Serializable
- Definition Classes
- Mapping
- object SqlInterfaceMapping extends Serializable
- object SqlObject extends Serializable
- object SqlQuery
- object SqlUnionMapping extends Serializable
- object TableExpr
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated