SqlMapping

grackle.sql.SqlMapping
abstract class SqlMapping[F[_]](implicit val M: MonadThrow[F]) extends Mapping[F], SqlMappingLike[F]

Attributes

Source
SqlMapping.scala
Graph
Supertypes
trait SqlMappingLike[F]
trait SqlModule[F]
trait CirceMappingLike[F]
class Mapping[F]
class Object
trait Matchable
class Any
Show all

Members list

Type members

Inherited classlikes

case class AliasState(next: Int, seenTables: Set[String], tableAliases: Map[(List[String], String), String], seenColumns: Set[String], columnAliases: Map[(List[String], String), String], ownerChain: List[ColumnOwner])

State required to assign table and column aliases.

State required to assign table and column aliases.

Used when rendering an SqlQuery as a Fragment. Table aliases are assigned as needed for recursive queries. Column aliases are assigned to disambiguate collections of columns generated by subqueries and unions.

Attributes

Inherited from:
SqlMappingLike
Source
SqlMapping.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object AliasState

Attributes

Inherited from:
SqlMappingLike
Source
SqlMapping.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
object Aliased

Attributes

Inherited from:
SqlMappingLike
Source
SqlMapping.scala
Supertypes
class Object
trait Matchable
class Any

Attributes

Inherited from:
CirceMappingLike
Source
circemapping.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Cursor
class Object
trait Matchable
class Any
Show all

Attributes

Inherited from:
CirceMappingLike
Source
circemapping.scala
Supertypes
trait FieldMapping
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
sealed trait CirceFieldMapping extends FieldMapping

Attributes

Inherited from:
CirceMappingLike
Source
circemapping.scala
Supertypes
trait FieldMapping
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Known subtypes

Attributes

Inherited from:
CirceMappingLike
Source
circemapping.scala
Supertypes
class Object
trait Matchable
class Any

Attributes

Inherited from:
CirceMappingLike
Source
circemapping.scala
Supertypes
class Object
trait Matchable
class Any
sealed trait ColumnOwner extends Product, Serializable

Trait representing an owner of an SqlColumn

Trait representing an owner of an SqlColumn

ColumnOwners are tables, SQL queries and subqueries, common table expressions and the like. Most, but not all have a name (SqlSelect, SqlUnion and SqlJoin being unnamed examples)

Attributes

Inherited from:
SqlMappingLike
Source
SqlMapping.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Known subtypes
trait SqlQuery
class SqlSelect
class SqlUnion
trait TableExpr
class SubqueryRef
class TableRef
class WithRef
class SqlJoin
Show all
case class ColumnRef(table: String, column: String, codec: Codec, scalaTypeName: String, pos: SourcePos)

Name of a SQL schema column and its associated codec, Scala type an defining source position within an SqlMapping.

Name of a SQL schema column and its associated codec, Scala type an defining source position within an SqlMapping.

Columns are considered equal if their table and column names are equal.

Note that ColumnRef primarily play a role in mappings. During compilation they will be used to construct SqlColumns.

Attributes

Inherited from:
SqlMappingLike
Source
SqlMapping.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Inherited from:
Mapping
Source
mapping.scala
Supertypes
trait FieldMapping
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object CursorField

Attributes

Inherited from:
Mapping
Source
mapping.scala
Supertypes
class Object
trait Matchable
class Any

Attributes

Inherited from:
CirceMappingLike
Source
circemapping.scala
Supertypes
trait FieldMapping
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class Delegate(fieldName: String, mapping: Mapping[F], join: (Query, Cursor) => Result[Query])(implicit pos: SourcePos) extends FieldMapping

Attributes

Inherited from:
Mapping
Source
mapping.scala
Supertypes
trait FieldMapping
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Inherited from:
Mapping
Source
mapping.scala
Supertypes
trait FieldMapping
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
trait EffectMapping extends FieldMapping

Abstract type of field mappings with effects.

Abstract type of field mappings with effects.

Attributes

Inherited from:
Mapping
Source
mapping.scala
Supertypes
trait FieldMapping
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Known subtypes
class EffectField
class RootEffect
class RootStream

Attributes

Inherited from:
Mapping
Source
mapping.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Known subtypes
class CirceField
class CursorField[T]
class Delegate
class EffectField
class RootEffect
class RootStream
class SqlField
class SqlJson
class SqlObject
Show all
case class FieldTransformCursor[T](underlying: Cursor, f: T => Result[T])(implicit evidence$1: ClassTag[T], evidence$2: TypeName[T]) extends ProxyCursor

Proxy Cursor which applies a function to the focus of an underlying LeafCursor.

Proxy Cursor which applies a function to the focus of an underlying LeafCursor.

Attributes

Inherited from:
Mapping
Source
mapping.scala
Supertypes
trait Serializable
trait Product
trait Equals
class ProxyCursor
trait Cursor
class Object
trait Matchable
class Any
Show all
case class Join(conditions: List[(ColumnRef, ColumnRef)])

A pair of ColumnRefs, representing a SQL join.

A pair of ColumnRefs, representing a SQL join.

Attributes

Inherited from:
SqlMappingLike
Source
SqlMapping.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object Join

Attributes

Inherited from:
SqlMappingLike
Source
SqlMapping.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
case class LeafCursor(context: Context, focus: Any, parent: Option[Cursor], env: Env) extends Cursor

Cursor positioned at a GraphQL result leaf

Cursor positioned at a GraphQL result leaf

Attributes

Inherited from:
Mapping
Source
mapping.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Cursor
class Object
trait Matchable
class Any
Show all
object LeafMapping

Attributes

Inherited from:
Mapping
Source
mapping.scala
Supertypes
class Object
trait Matchable
class Any
trait LeafMapping[T] extends TypeMapping

Attributes

Inherited from:
Mapping
Source
mapping.scala
Supertypes
trait TypeMapping
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object MappedQuery

Attributes

Inherited from:
SqlMappingLike
Source
SqlMapping.scala
Supertypes
class Object
trait Matchable
class Any
sealed trait MappedQuery

Represents the mapping of a GraphQL query to an SQL query

Represents the mapping of a GraphQL query to an SQL query

Attributes

Inherited from:
SqlMappingLike
Source
SqlMapping.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
case class MultiRootCursor(roots: List[SqlCursor]) extends AbstractCursor

Attributes

Inherited from:
SqlMappingLike
Source
SqlMapping.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Cursor
class Object
trait Matchable
class Any
Show all
abstract class ObjectMapping extends TypeMapping

Attributes

Inherited from:
Mapping
Source
mapping.scala
Supertypes
trait TypeMapping
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Known subtypes
object ObjectMapping

Attributes

Inherited from:
Mapping
Source
mapping.scala
Supertypes
class Object
trait Matchable
class Any

Attributes

Inherited from:
Mapping
Source
mapping.scala
Supertypes
trait TypeMapping
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Attributes

Inherited from:
Mapping
Source
mapping.scala
Supertypes
trait FieldMapping
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class PrimitiveMapping(tpe: Type)(implicit pos: SourcePos) extends TypeMapping

Attributes

Inherited from:
Mapping
Source
mapping.scala
Supertypes
trait TypeMapping
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Root Cursor focussed on the top level operation of a query

Root Cursor focussed on the top level operation of a query

Construction of mapping-specific cursors is handled by delegation to mkCursorForField which is typically overridden in Mapping subtypes.

Attributes

Inherited from:
Mapping
Source
mapping.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Cursor
class Object
trait Matchable
class Any
Show all
class RootDef

Attributes

Inherited from:
SqlMappingLike
Source
SqlMapping.scala
Supertypes
class Object
trait Matchable
class Any
case class RootEffect extends EffectMapping

Root effects can perform an intial effect prior to computing the resulting Cursor and effective Query.

Root effects can perform an intial effect prior to computing the resulting Cursor and effective Query.

These effects are used to perform initial effectful setup for a query or to perform the effect associated with a GraphQL mutation. Convenience methods are provided to cover the cases where only one of the query or the cursor are computed.

If only the query is computed the default root cursor for the mapping will be used. If only the cursor is computed the client query (after elaboration) is used unmodified ... in this case results of the performed effect can only be passed to the result construction stage via the environment associated with the returned cursor.

Attributes

Inherited from:
Mapping
Source
mapping.scala
Supertypes
trait FieldMapping
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object RootEffect

Attributes

Inherited from:
Mapping
Source
mapping.scala
Supertypes
class Object
trait Matchable
class Any
case class RootStream extends EffectMapping

Root streams can perform an intial effect prior to emitting the resulting cursors and effective queries.

Root streams can perform an intial effect prior to emitting the resulting cursors and effective queries.

Stream effects are used for GraphQL subscriptions. Convenience methods are provided to cover the cases where only one of the query or the cursor are computed

If only the query is computed the default root cursor for the mapping will be used. If only the cursor is computed the client query (after elaboration) is used unmodified ... in this case results of the performed effect can only be passed to the result construction stage via the environment associated with the returned cursor.

Attributes

Inherited from:
Mapping
Source
mapping.scala
Supertypes
trait FieldMapping
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object RootStream

Attributes

Inherited from:
Mapping
Source
mapping.scala
Supertypes
class Object
trait Matchable
class Any
object SqlColumn

Attributes

Inherited from:
SqlMappingLike
Source
SqlMapping.scala
Supertypes
class Object
trait Matchable
class Any
trait SqlColumn

Trait representing an SQL column

Trait representing an SQL column

Attributes

Inherited from:
SqlMappingLike
Source
SqlMapping.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class CountColumn
class NullColumn
class TableColumn
Show all
case class SqlColumnTerm(col: SqlColumn) extends Term[Option[Unit]]

Wraps an SqlColumn as a Term which can appear in a Predicate

Wraps an SqlColumn as a Term which can appear in a Predicate

Attributes

Inherited from:
SqlMappingLike
Source
SqlMapping.scala
Supertypes
trait Term[Option[Unit]]
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class SqlCursor(context: Context, focus: Any, mapped: MappedQuery, parent: Option[Cursor], env: Env) extends Cursor

Cursor positioned at a GraphQL result non-leaf

Cursor positioned at a GraphQL result non-leaf

Attributes

Inherited from:
SqlMappingLike
Source
SqlMapping.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Cursor
class Object
trait Matchable
class Any
Show all
sealed trait SqlDiscriminatedType

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.

Attributes

Inherited from:
SqlMappingLike
Source
SqlMapping.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Discriminator for the branches of an interface/union

Discriminator for the branches of an interface/union

Attributes

Inherited from:
SqlMappingLike
Source
SqlMapping.scala
Supertypes
class Object
trait Matchable
class Any
case class SqlField(fieldName: String, columnRef: ColumnRef, key: Boolean, discriminator: Boolean, hidden: Boolean, associative: Boolean)(implicit pos: SourcePos) extends SqlFieldMapping

Attributes

Inherited from:
SqlMappingLike
Source
SqlMapping.scala
Supertypes
trait FieldMapping
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
sealed trait SqlFieldMapping extends FieldMapping

Attributes

Inherited from:
SqlMappingLike
Source
SqlMapping.scala
Supertypes
trait FieldMapping
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Known subtypes
class SqlField
class SqlJson
class SqlObject
trait SqlFragment[T] extends Monoid[T]

Typeclass for SQL fragments.

Typeclass for SQL fragments.

Attributes

Inherited from:
SqlModule
Source
SqlModule.scala
Supertypes
trait Monoid[T]
trait Semigroup[T]
trait Serializable
class Object
trait Matchable
class Any
Show all

Attributes

Inherited from:
SqlMappingLike
Source
SqlMapping.scala
Supertypes
class Object
trait Matchable
class Any

Attributes

Inherited from:
SqlMappingLike
Source
SqlMapping.scala
Supertypes
trait TypeMapping
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Known subtypes
case class SqlJson(fieldName: String, columnRef: ColumnRef)(implicit pos: SourcePos) extends SqlFieldMapping

Attributes

Inherited from:
SqlMappingLike
Source
SqlMapping.scala
Supertypes
trait FieldMapping
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
class SqlMappingException(msg: String) extends RuntimeException

Attributes

Inherited from:
SqlMappingLike
Source
SqlMapping.scala
Supertypes
class RuntimeException
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all
case class SqlObject(fieldName: String, joins: List[Join])(implicit pos: SourcePos) extends SqlFieldMapping

Attributes

Inherited from:
SqlMappingLike
Source
SqlMapping.scala
Supertypes
trait FieldMapping
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object SqlObject

Attributes

Inherited from:
SqlMappingLike
Source
SqlMapping.scala
Supertypes
class Object
trait Matchable
class Any
object SqlQuery

Attributes

Inherited from:
SqlMappingLike
Source
SqlMapping.scala
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
sealed trait SqlQuery extends ColumnOwner

Representation of a SQL query in a context

Representation of a SQL query in a context

Attributes

Inherited from:
SqlMappingLike
Source
SqlMapping.scala
Supertypes
trait ColumnOwner
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Known subtypes
class SqlSelect
class SqlUnion

Attributes

Inherited from:
SqlMappingLike
Source
SqlMapping.scala
Supertypes
class Object
trait Matchable
class Any

Attributes

Inherited from:
SqlMappingLike
Source
SqlMapping.scala
Supertypes
trait TypeMapping
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Known subtypes
object Table

Attributes

Inherited from:
SqlMappingLike
Source
SqlMapping.scala
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
sealed trait Table

Representation of an SQL query result

Representation of an SQL query result

Attributes

Inherited from:
SqlMappingLike
Source
SqlMapping.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object EmptyTable.type
class OneRowTable
class TableDef(name: String)

Attributes

Inherited from:
SqlMappingLike
Source
SqlMapping.scala
Supertypes
class Object
trait Matchable
class Any
object TableExpr

Attributes

Inherited from:
SqlMappingLike
Source
SqlMapping.scala
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
sealed trait TableExpr extends ColumnOwner

Representation of a table expression

Representation of a table expression

Attributes

Inherited from:
SqlMappingLike
Source
SqlMapping.scala
Supertypes
trait ColumnOwner
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Known subtypes
class SubqueryRef
class TableRef
class WithRef
case class TableName(name: String)

Attributes

Inherited from:
SqlMappingLike
Source
SqlMapping.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object TableName

Attributes

Inherited from:
SqlMappingLike
Source
SqlMapping.scala
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any

Attributes

Inherited from:
Mapping
Source
mapping.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Known subtypes

Inherited types

type Aliased[T] = StateT[Result, AliasState, T]

Attributes

Inherited from:
SqlMappingLike
Source
SqlMapping.scala
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.

Attributes

Inherited from:
SqlModule
Source
SqlModule.scala
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.

Attributes

Inherited from:
SqlModule
Source
SqlModule.scala
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.

Attributes

Inherited from:
SqlModule
Source
SqlModule.scala

Value members

Inherited methods

Attributes

Inherited from:
SqlModule
Source
SqlModule.scala

Attributes

Inherited from:
CirceMappingLike
Source
circemapping.scala
def columnForAtomicField(context: Context, fieldName: String): Result[SqlColumn]

Returns the aliased column corresponding to the atomic field fieldName in context

Returns the aliased column corresponding to the atomic field fieldName in context

Attributes

Inherited from:
SqlMappingLike
Source
SqlMapping.scala
def columnForSqlTerm[T](context: Context, term: Term[T]): Result[SqlColumn]

Returns the aliased columns corresponding to term in context

Returns the aliased columns corresponding to term in context

Attributes

Inherited from:
SqlMappingLike
Source
SqlMapping.scala
def columnsForLeaf(context: Context, fieldName: String): Result[List[SqlColumn]]

Returns the columns for leaf field fieldName in context

Returns the columns for leaf field fieldName in context

Attributes

Inherited from:
SqlMappingLike
Source
SqlMapping.scala

Combine and execute multiple queries.

Combine and execute multiple queries.

Each query is interpreted in the context of the Cursor it is paired with. The result list is aligned with the argument query list. For each query at most one stage will be run and the corresponding result may contain deferred components.

Errors are aggregated across all the argument queries and are accumulated on the Left of the result.

This method is typically called at the end of a stage to evaluate deferred subqueries in the result of that stage. These will be grouped by and passed jointly to the responsible mapping in the next stage using this method. Maappongs which are able to benefit from combining queries may do so by overriding this method to implement their specific combinging logic.

Attributes

Inherited from:
Mapping
Source
mapping.scala

Compile and run a single GraphQL query or mutation.

Compile and run a single GraphQL query or mutation.

Yields a JSON response containing the result of the query or mutation.

Attributes

Inherited from:
Mapping
Source
mapping.scala

Compile and run a GraphQL subscription.

Compile and run a GraphQL subscription.

Yields a stream of JSON responses containing the results of the subscription.

Attributes

Inherited from:
Mapping
Source
mapping.scala

Attributes

Inherited from:
Mapping
Source
mapping.scala
override def defaultRootCursor(query: Query, tpe: Type, parentCursor: Option[Cursor]): F[Result[(Query, Cursor)]]

Yields a Cursor focused on the top level operation type of the query

Yields a Cursor focused on the top level operation type of the query

Attributes

Definition Classes
Inherited from:
SqlMappingLike
Source
SqlMapping.scala

Returns the discriminator columns for the context type

Returns the discriminator columns for the context type

Attributes

Inherited from:
SqlMappingLike
Source
SqlMapping.scala

Returns the discriminator for the type at context

Returns the discriminator for the type at context

Attributes

Inherited from:
SqlMappingLike
Source
SqlMapping.scala

Attributes

Inherited from:
SqlModule
Source
SqlModule.scala

Yields the Encoder associated with the provided type, if any.

Yields the Encoder associated with the provided type, if any.

Attributes

Inherited from:
Mapping
Source
mapping.scala
def encoderForTerm(context: Context, term: Term[_]): Result[Encoder]

Returns the Encoder for the given term in context

Returns the Encoder for the given term in context

Attributes

Inherited from:
SqlMappingLike
Source
SqlMapping.scala
def fetch(fragment: Fragment, codecs: List[(Boolean, Codec)]): F[Vector[Array[Any]]]

Attributes

Inherited from:
SqlModule
Source
SqlModule.scala

Yields the FieldMapping associated with fieldName in context, if any.

Yields the FieldMapping associated with fieldName in context, if any.

Attributes

Inherited from:
Mapping
Source
mapping.scala

Attributes

Inherited from:
SqlModule
Source
SqlModule.scala

Attributes

Inherited from:
SqlModule
Source
SqlModule.scala
def isAssociative(context: Context): Boolean

Is the context type mapped to an associative table?

Is the context type mapped to an associative table?

Attributes

Inherited from:
SqlMappingLike
Source
SqlMapping.scala
def isComputedField(context: Context, fieldName: String): Boolean

Is fieldName in context computed?

Is fieldName in context computed?

Attributes

Inherited from:
SqlMappingLike
Source
SqlMapping.scala
def isJsonb(context: Context, fieldName: String): Boolean

Is fieldName in context Jsonb?

Is fieldName in context Jsonb?

Attributes

Inherited from:
SqlMappingLike
Source
SqlMapping.scala

True if the supplied type is a leaf with respect to the GraphQL schema or mapping, false otherwise.

True if the supplied type is a leaf with respect to the GraphQL schema or mapping, false otherwise.

Attributes

Inherited from:
Mapping
Source
mapping.scala
def isLocallyMapped(context: Context, query: Query): Boolean

Attributes

Inherited from:
SqlMappingLike
Source
SqlMapping.scala
def isSingular(context: Context, fieldName: String, query: Query): Boolean

Does the supplied field correspond to a single, possibly structured, value?

Does the supplied field correspond to a single, possibly structured, value?

Attributes

Inherited from:
SqlMappingLike
Source
SqlMapping.scala
def isSqlTerm(context: Context, term: Term[_]): Result[Boolean]

Is term in contextexpressible in SQL?

Is term in contextexpressible in SQL?

Attributes

Inherited from:
SqlMappingLike
Source
SqlMapping.scala

Returns the key columns for the context type

Returns the key columns for the context type

Attributes

Inherited from:
SqlMappingLike
Source
SqlMapping.scala

Yields the LeafMapping associated with the provided type, if any.

Yields the LeafMapping associated with the provided type, if any.

Attributes

Inherited from:
Mapping
Source
mapping.scala
override def mkCursorForField(parent: Cursor, fieldName: String, resultName: Option[String]): Result[Cursor]

Yields a Cursor suitable for traversing the query result corresponding to the fieldName child of parent.

Yields a Cursor suitable for traversing the query result corresponding to the fieldName child of parent.

This method is typically overridden in and delegated to by Mapping subtypes.

Attributes

Definition Classes
Inherited from:
SqlMappingLike
Source
SqlMapping.scala

Construct a GraphQL response from a Result.

Construct a GraphQL response from a Result.

Attributes

Inherited from:
Mapping
Source
mapping.scala

Construct a GraphQL response from the possibly absent result data and a collection of errors.

Construct a GraphQL response from the possibly absent result data and a collection of errors.

Attributes

Inherited from:
Mapping
Source
mapping.scala

Attributes

Inherited from:
SqlModule
Source
SqlModule.scala
def nonLeafList(context: Context, fieldName: String): Boolean

Does the type of fieldName in context represent a list of subobjects?

Does the type of fieldName in context represent a list of subobjects?

Attributes

Inherited from:
SqlMappingLike
Source
SqlMapping.scala

Yields the ObjectMapping associated with the provided context, if any.

Yields the ObjectMapping associated with the provided context, if any.

Attributes

Inherited from:
Mapping
Source
mapping.scala

Returns the table for the type at context

Returns the table for the type at context

Attributes

Inherited from:
SqlMappingLike
Source
SqlMapping.scala

Attributes

Inherited from:
Mapping
Source
mapping.scala

Yields the RootEffect, if any, associated with fieldName.

Yields the RootEffect, if any, associated with fieldName.

Attributes

Inherited from:
Mapping
Source
mapping.scala

Attributes

Inherited from:
SqlMappingLike
Source
SqlMapping.scala

Yields the RootStream, if any, associated with fieldName.

Yields the RootStream, if any, associated with fieldName.

Attributes

Inherited from:
Mapping
Source
mapping.scala
def sqlCursor(query: Query, env: Env): F[Result[Cursor]]

Attributes

Inherited from:
SqlMappingLike
Source
SqlMapping.scala

Attributes

Inherited from:
SqlModule
Source
SqlModule.scala
def stripCompiled(query: Query, context: Context): Result[Query]

Operators which can be compiled to SQL are eliminated here, partly to avoid duplicating work programmatically, but also because the operation isn't necessarily idempotent and the result set doesn't necessarily contain the fields required for the filter predicates.

Operators which can be compiled to SQL are eliminated here, partly to avoid duplicating work programmatically, but also because the operation isn't necessarily idempotent and the result set doesn't necessarily contain the fields required for the filter predicates.

Attributes

Inherited from:
SqlMappingLike
Source
SqlMapping.scala

Extract an encoder from a codec.

Extract an encoder from a codec.

Attributes

Inherited from:
SqlModule
Source
SqlModule.scala

Yields the TypeMapping associated with the provided type, if any.

Yields the TypeMapping associated with the provided type, if any.

Attributes

Inherited from:
Mapping
Source
mapping.scala

Inherited fields

Attributes

Inherited from:
Mapping
Source
mapping.scala

Attributes

Inherited from:
Mapping
Source
mapping.scala

Attributes

Inherited from:
Mapping
Source
mapping.scala

Attributes

Inherited from:
Mapping
Source
mapping.scala

Attributes

Inherited from:
Mapping
Source
mapping.scala

Attributes

Inherited from:
Mapping
Source
mapping.scala
val schema: Schema

Attributes

Inherited from:
Mapping
Source
mapping.scala

Attributes

Inherited from:
Mapping
Source
mapping.scala

Attributes

Inherited from:
Mapping
Source
mapping.scala

Attributes

Inherited from:
SqlMappingLike
Source
SqlMapping.scala

Implicits

Implicits

implicit val M: MonadThrow[F]

Attributes

Source
SqlMapping.scala

Inherited implicits

implicit def Fragments: SqlFragment[Fragment]

Attributes

Inherited from:
SqlModule
Source
SqlModule.scala