SqlMappingLike
An abstract mapping that is backed by a SQL database.
- Source:
- SqlMapping.scala
Type members
Classlikes
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.
- Companion:
- object
- Source:
- SqlMapping.scala
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)
- Source:
- SqlMapping.scala
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.
- Source:
- SqlMapping.scala
A pair of ColumnRefs, representing a SQL join.
A pair of ColumnRefs, representing a SQL join.
- Companion:
- object
- Source:
- SqlMapping.scala
Represents the mapping of a GraphQL query to an SQL query
Represents the mapping of a GraphQL query to an SQL query
- Companion:
- object
- Source:
- SqlMapping.scala
Trait representing an SQL column
Trait representing an SQL column
- Companion:
- object
- Source:
- SqlMapping.scala
Wraps an SqlColumn as a Term which can appear in a Predicate
Wraps an SqlColumn as a Term which can appear in a Predicate
- Source:
- SqlMapping.scala
Cursor positioned at a GraphQL result non-leaf
Cursor positioned at a GraphQL result non-leaf
- Source:
- SqlMapping.scala
Common super type for mappings which have a programmatic discriminator, ie. interface and union mappings.
Common super type for mappings which have a programmatic discriminator, ie. interface and union mappings.
- Source:
- SqlMapping.scala
Discriminator for the branches of an interface/union
Discriminator for the branches of an interface/union
- Source:
- SqlMapping.scala
- Source:
- SqlMapping.scala
- Companion:
- object
- Source:
- SqlMapping.scala
Representation of a SQL query in a context
Representation of a SQL query in a context
- Companion:
- object
- Source:
- SqlMapping.scala
Representation of an SQL query result
Representation of an SQL query result
- Companion:
- object
- Source:
- SqlMapping.scala
Representation of a table expression
Representation of a table expression
- Companion:
- object
- Source:
- SqlMapping.scala
Inherited classlikes
- Inherited from:
- CirceMappingLike
- Source:
- circemapping.scala
- Inherited from:
- CirceMappingLike
- Source:
- circemapping.scala
Cursor positioned at a GraphQL result leaf
Cursor positioned at a GraphQL result leaf
- Inherited from:
- Mapping
- Source:
- mapping.scala
- Inherited from:
- Mapping
- Source:
- mapping.scala
- Inherited from:
- Mapping
- Source:
- mapping.scala
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 inMapping` subtypes.
- Inherited from:
- Mapping
- Source:
- mapping.scala
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.
Convenience methods are provided to cover the cases where only one of the query or the cursor are computed, and for where the computation is one-shot or a Stream. One-shot effects are used to perform initial effectful setup for a query or to perform the effect associated with a GraphQL mutation. Stream effects are used for GraphQL subscriptions.
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.
- Inherited from:
- Mapping
- Source:
- mapping.scala
Typeclass for SQL fragments.
Typeclass for SQL fragments.
- Inherited from:
- SqlModule
- Source:
- SqlModule.scala
Types
Inherited types
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.
- Inherited from:
- SqlModule
- Source:
- SqlModule.scala
The type of an encoder that writes column values of type A.
The type of an encoder that writes column values of type A.
- Inherited from:
- SqlModule
- Source:
- SqlModule.scala
The type of a fragment of SQL together with any interpolated arguments.
The type of a fragment of SQL together with any interpolated arguments.
- Inherited from:
- SqlModule
- Source:
- SqlModule.scala
Value members
Concrete methods
Returns the aliased column corresponding to the atomic field fieldName in context
Returns the aliased column corresponding to the atomic field fieldName in context
- Source:
- SqlMapping.scala
Returns the aliased columns corresponding to term in context
Returns the aliased columns corresponding to term in context
- Source:
- SqlMapping.scala
Returns the columns for leaf field fieldName in context
Returns the columns for leaf field fieldName in context
- Source:
- SqlMapping.scala
Returns the discriminator columns for the context type
Returns the discriminator columns for the context type
- Source:
- SqlMapping.scala
Returns the discriminator for the type at context
Returns the discriminator for the type at context
- Source:
- SqlMapping.scala
Returns the Encoder for the given term in context
Returns the Encoder for the given term in context
- Source:
- SqlMapping.scala
Is the context type mapped to an associative table?
Is the context type mapped to an associative table?
- Source:
- SqlMapping.scala
Does the supplied field correspond to a single, possibly structured, value?
Does the supplied field correspond to a single, possibly structured, value?
- Source:
- SqlMapping.scala
Returns the key columns for the context type
Returns the key columns for the context type
- Source:
- SqlMapping.scala
Does the type of fieldName in context represent a list of subobjects?
Does the type of fieldName in context represent a list of subobjects?
- Source:
- SqlMapping.scala
Returns the table for the type at context
Returns the table for the type at context
- Source:
- SqlMapping.scala
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.
- Source:
- SqlMapping.scala
Inherited methods
- Inherited from:
- QueryExecutor
- Source:
- mapping.scala
- Inherited from:
- Mapping
- Source:
- mapping.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.
- Inherited from:
- Mapping
- Source:
- mapping.scala
Yields the RootEffect, if any, associated with fieldName.
Yields the RootEffect, if any, associated with fieldName.
- Inherited from:
- Mapping
- Source:
- mapping.scala
Extract an encoder from a codec.
Extract an encoder from a codec.
- Inherited from:
- SqlModule
- Source:
- SqlModule.scala