MappedQuery

final class MappedQuery(query: SqlQuery)

Represents the mapping of a GraphQL query to an SQL query

Companion:
object
Source:
SqlMapping.scala
class Object
trait Matchable
class Any

Value members

Concrete methods

def fetch: F[Table]

Execute this query in F

Execute this query in F

Source:
SqlMapping.scala
def group(context: Context, table: Table): Iterator[Table]

Yield a list of Tables one for each of the subobjects of the context type contained in table.

Yield a list of Tables one for each of the subobjects of the context type contained in table.

Source:
SqlMapping.scala
def leafIndex(context: Context, fieldName: String): Int
def narrow(narrowedContext: Context, table: Table): Table

Yield a Table containing only subojects of the narrowedContext type

Yield a Table containing only subojects of the narrowedContext type

Source:
SqlMapping.scala
def narrowsTo(narrowedContext: Context, table: Table): Boolean

Does table contain subobjects of the type of the narrowedContext type

Does table contain subobjects of the type of the narrowedContext type

Source:
SqlMapping.scala
def selectAtomicField(context: Context, fieldName: String, table: Table): Result[Any]

Return the value of the field fieldName in context from table

Return the value of the field fieldName in context from table

Source:
SqlMapping.scala

Concrete fields

lazy val fragment: Fragment

The query rendered as a Fragment with all table and column aliases applied

The query rendered as a Fragment with all table and column aliases applied

Source:
SqlMapping.scala