Modulebeam-core-0.11.1.0Haskell2010
Database.Beam.Query.Internal
- 29 types
- 7 classes
- 9 values
- Packagebeam-core-0.11.1.0
- Exports51
- LanguageHaskell2010
- LicenceMIT
- SourceInternal.hs
Constructors
QDistinct :: Projectible be r => (r -> WithExprContext (BeamSqlBackendSetQuantifierSyntax be)) -> QM be db s r -> (r -> next) -> QF be db s nextQAll :: Projectible be r => (TablePrefix -> Text -> BeamSqlBackendFromSyntax be) -> (Text -> r) -> (r -> Maybe (WithExprContext (BeamSqlBackendExpressionSyntax be))) -> ((Text, r) -> next) -> QF be db s nextQArbitraryJoin :: Projectible be r => QM be db (QNested s) r -> Text -> (BeamSqlBackendFromSyntax be -> BeamSqlBackendFromSyntax be -> Maybe (BeamSqlBackendExpressionSyntax be) -> BeamSqlBackendFromSyntax be) -> (r -> Maybe (WithExprContext (BeamSqlBackendExpressionSyntax be))) -> (r -> next) -> QF be db s nextQTwoWayJoin :: (Projectible be a, Projectible be b) => QM be db (QNested s) a -> QM be db (QNested s) b -> (BeamSqlBackendFromSyntax be -> BeamSqlBackendFromSyntax be -> Maybe (BeamSqlBackendExpressionSyntax be) -> BeamSqlBackendFromSyntax be) -> ((a, b) -> Maybe (WithExprContext (BeamSqlBackendExpressionSyntax be))) -> ((a, b) -> next) -> QF be db s nextQSubSelect :: Projectible be r => QM be db (QNested s) r -> (r -> next) -> QF be db s nextQGuard :: WithExprContext (BeamSqlBackendExpressionSyntax be) -> next -> QF be db s nextQLimit :: Projectible be r => Integer -> QM be db (QNested s) r -> (r -> next) -> QF be db s nextQOffset :: Projectible be r => Integer -> QM be db (QNested s) r -> (r -> next) -> QF be db s nextQSetOp :: Projectible be r => (BeamSqlBackendSelectTableSyntax be -> BeamSqlBackendSelectTableSyntax be -> BeamSqlBackendSelectTableSyntax be) -> QM be db (QNested s) r -> QM be db (QNested s) r -> (r -> next) -> QF be db s nextQOrderBy :: Projectible be r => (r -> WithExprContext [BeamSqlBackendOrderingSyntax be]) -> QM be db (QNested s) r -> (r -> next) -> QF be db s nextQWindowOver :: (ProjectibleWithPredicate WindowFrameContext be (WithExprContext (BeamSqlBackendWindowFrameSyntax' be)) window, Projectible be r, Projectible be a) => (r -> window) -> (r -> window -> a) -> QM be db (QNested s) r -> (a -> next) -> QF be db s nextQAggregate :: (Projectible be grouping, Projectible be a) => (a -> TablePrefix -> (Maybe (BeamSqlBackendGroupingSyntax be), grouping)) -> QM be db (QNested s) a -> (grouping -> next) -> QF be db s nextQForceSelect :: Projectible be r => (r -> BeamSqlBackendSelectTableSyntax be -> [BeamSqlBackendOrderingSyntax be] -> Maybe Integer -> Maybe Integer -> BeamSqlBackendSelectSyntax be) -> QM be db (QNested s) r -> (r -> next) -> QF be db s next
The type of queries over the database db returning results of type a.
The s argument is a threading argument meant to restrict cross-usage of
QExprs. syntax represents the SQL syntax that this query is building.
Constructors
QFieldqFieldShouldQualify :: !BoolqFieldTblName :: !TextqFieldName :: !Text
Instances9ProjectibleWithPredicate, SqlUpdatable, Eq, Ord, Show, …
Beamable t => ProjectibleWithPredicate AnyType () Text (t (Nullable (QField s)))Defined in beam-core-0.11.1.0 · Database.Beam.Query.InternalBeamable t => ProjectibleWithPredicate AnyType () Text (t (QField s))Defined in beam-core-0.11.1.0 · Database.Beam.Query.InternalProjectibleWithPredicate AnyType () Text (QField s a)Defined in beam-core-0.11.1.0 · Database.Beam.Query.Internal(BeamSqlBackend be, Beamable tbl) => SqlUpdatable be s (tbl (Nullable (QField s))) (tbl (Nullable (QExpr be s)))Defined in beam-core-0.11.1.0 · Database.Beam.Query.Combinators(BeamSqlBackend be, Beamable tbl) => SqlUpdatable be s (tbl (QField s)) (tbl (QExpr be s))Defined in beam-core-0.11.1.0 · Database.Beam.Query.CombinatorsBeamSqlBackend be => SqlUpdatable be s (QField s a) (QExpr be s a)Defined in beam-core-0.11.1.0 · Database.Beam.Query.CombinatorsEq (QField s ty)Defined in beam-core-0.11.1.0 · Database.Beam.Query.InternalOrd (QField s ty)Defined in beam-core-0.11.1.0 · Database.Beam.Query.InternalShow (QField s ty)Defined in beam-core-0.11.1.0 · Database.Beam.Query.Internal
Constructors
Instances2Semigroup, Monoid
Semigroup (QAssignment be s)Defined in beam-core-0.11.1.0 · Database.Beam.Query.InternalMonoid (QAssignment be s)Defined in beam-core-0.11.1.0 · Database.Beam.Query.Internal
Constructors
QFieldAssignment (forall s. tbl (QExpr be s) -> Maybe (QExpr be s a))
QGenExpr type
17 declarationsInstances1ContextName
type ContextName QAggregateContext =Defined in beam-core-0.11.1.0 · Database.Beam.Query.Internal"an aggregate"
Instances4QGroupable, ContextName
Beamable tbl => QGroupable (tbl (Nullable (QExpr be s))) (tbl (Nullable (QGroupExpr be s)))Defined in beam-core-0.11.1.0 · Database.Beam.Query.AggregateBeamable tbl => QGroupable (tbl (QExpr be s)) (tbl (QGroupExpr be s))Defined in beam-core-0.11.1.0 · Database.Beam.Query.AggregateQGroupable (QExpr be s a) (QGroupExpr be s a)Defined in beam-core-0.11.1.0 · Database.Beam.Query.Aggregategroup_ for simple value expressions.
type ContextName QGroupingContext =Defined in beam-core-0.11.1.0 · Database.Beam.Query.Internal"an aggregate grouping"
Instances10SqlUpdatable, QGroupable, SqlJustable, ContextName, …
(BeamSqlBackend be, Beamable tbl) => SqlUpdatable be s (tbl (Nullable (QField s))) (tbl (Nullable (QExpr be s)))Defined in beam-core-0.11.1.0 · Database.Beam.Query.Combinators(BeamSqlBackend be, Beamable tbl) => SqlUpdatable be s (tbl (QField s)) (tbl (QExpr be s))Defined in beam-core-0.11.1.0 · Database.Beam.Query.CombinatorsBeamSqlBackend be => SqlUpdatable be s (QField s a) (QExpr be s a)Defined in beam-core-0.11.1.0 · Database.Beam.Query.CombinatorsBeamable tbl => QGroupable (tbl (Nullable (QExpr be s))) (tbl (Nullable (QGroupExpr be s)))Defined in beam-core-0.11.1.0 · Database.Beam.Query.AggregateBeamable tbl => QGroupable (tbl (QExpr be s)) (tbl (QGroupExpr be s))Defined in beam-core-0.11.1.0 · Database.Beam.Query.Aggregate(Table t, BeamSqlBackend be) => SqlJustable (t (QExpr be s)) (t (Nullable (QExpr be s)))Defined in beam-core-0.11.1.0 · Database.Beam.Query.Combinators(Table t, BeamSqlBackend be) => SqlJustable (PrimaryKey t (QExpr be s)) (PrimaryKey t (Nullable (QExpr be s)))Defined in beam-core-0.11.1.0 · Database.Beam.Query.CombinatorsQGroupable (QExpr be s a) (QGroupExpr be s a)Defined in beam-core-0.11.1.0 · Database.Beam.Query.Aggregategroup_ for simple value expressions.
BeamSqlBackend be => SqlJustable (QExpr be s a) (QExpr be s (Maybe a))Defined in beam-core-0.11.1.0 · Database.Beam.Query.Combinatorstype ContextName QValueContext =Defined in beam-core-0.11.1.0 · Database.Beam.Query.Internal"a value"
Instances1ContextName
type ContextName QWindowingContext =Defined in beam-core-0.11.1.0 · Database.Beam.Query.Internal"a window expression"
Instances1ContextName
type ContextName QWindowFrameContext =Defined in beam-core-0.11.1.0 · Database.Beam.Query.Internal"a window frame"
The type of lifted beam expressions that will yield the haskell type t.
context is a type-level representation of the types of expressions this
can contain. For example, QAggregateContext represents expressions that
may contain aggregates, and QWindowingContext represents expressions that
may contain OVER.
syntax is the expression syntax being built (usually a type that
implements IsSql92ExpressionSyntax at least, but not always).
s is a state threading parameter that prevents QExprs from incompatible
sources to be combined. For example, this is used to prevent monadic joins
from depending on the result of previous joins (so-called LATERAL joins).
Constructors
Instances53ProjectibleWithPredicate, SqlUpdatable, SqlOrderable, ThreadRewritable, SqlDeconstructMaybe, IsCustomExprFn, …
(BeamSqlBackend be, Beamable tbl) => SqlUpdatable be s (tbl (Nullable (QField s))) (tbl (Nullable (QExpr be s)))Defined in beam-core-0.11.1.0 · Database.Beam.Query.Combinators(BeamSqlBackend be, Beamable tbl) => SqlUpdatable be s (tbl (QField s)) (tbl (QExpr be s))Defined in beam-core-0.11.1.0 · Database.Beam.Query.Combinators(Beamable t, contextPredicate context) => ProjectibleWithPredicate contextPredicate be (WithExprContext (BeamSqlBackendExpressionSyntax' be)) (t (Nullable (QGenExpr context be s)))Defined in beam-core-0.11.1.0 · Database.Beam.Query.Internal(Beamable t, contextPredicate context) => ProjectibleWithPredicate contextPredicate be (WithExprContext (BeamSqlBackendExpressionSyntax' be)) (t (QGenExpr context be s))Defined in beam-core-0.11.1.0 · Database.Beam.Query.InternalcontextPredicate context => ProjectibleWithPredicate contextPredicate be (WithExprContext (BeamSqlBackendExpressionSyntax' be)) (QGenExpr context be s a)Defined in beam-core-0.11.1.0 · Database.Beam.Query.InternalBeamSqlBackend be => SqlUpdatable be s (QField s a) (QExpr be s a)Defined in beam-core-0.11.1.0 · Database.Beam.Query.CombinatorsBeamable tbl => ThreadRewritable s (tbl (Nullable (QGenExpr ctxt syntax s)))Defined in beam-core-0.11.1.0 · Database.Beam.Query.InternalBeamable tbl => ThreadRewritable s (tbl (QGenExpr ctxt syntax s))Defined in beam-core-0.11.1.0 · Database.Beam.Query.Internal(BeamSqlBackend be, Beamable t) => SqlDeconstructMaybe be (t (Nullable (QGenExpr ctxt be s))) (t (QGenExpr ctxt be s)) sDefined in beam-core-0.11.1.0 · Database.Beam.Query.CombinatorsTypeError ('TextDefined in beam-core-0.11.1.0 · Database.Beam.Query.Combinators"Missing mandatory sorting order. Use either 'asc_' or 'desc_' to specify sorting order."
) => SqlOrderable be (QGenExpr ctx be s a)ThreadRewritable s (QGenExpr ctxt syntax s a)Defined in beam-core-0.11.1.0 · Database.Beam.Query.InternalBeamSqlBackend be => SqlDeconstructMaybe be (QGenExpr ctxt be s (Maybe x)) (QGenExpr ctxt be s x) sDefined in beam-core-0.11.1.0 · Database.Beam.Query.Combinators(Beamable table, BeamSqlBackend be, FieldsFulfillConstraint (BeamSqlBackendCanSerialize be) table) => SqlValable (table (QGenExpr ctxt be s))Defined in beam-core-0.11.1.0 · Database.Beam.Query.Combinators(Beamable table, BeamSqlBackend be, FieldsFulfillConstraintNullable (BeamSqlBackendCanSerialize be) table) => SqlValable (table (Nullable (QGenExpr ctxt be s)))Defined in beam-core-0.11.1.0 · Database.Beam.Query.CombinatorsBeamable tbl => ContextRewritable (tbl (Nullable (QGenExpr old syntax s)))Defined in beam-core-0.11.1.0 · Database.Beam.Query.InternalBeamable tbl => ContextRewritable (tbl (QGenExpr old syntax s))Defined in beam-core-0.11.1.0 · Database.Beam.Query.InternalBeamable tbl => QGroupable (tbl (Nullable (QExpr be s))) (tbl (Nullable (QGroupExpr be s)))Defined in beam-core-0.11.1.0 · Database.Beam.Query.AggregateBeamable tbl => QGroupable (tbl (QExpr be s)) (tbl (QGroupExpr be s))Defined in beam-core-0.11.1.0 · Database.Beam.Query.Aggregate(Table t, BeamSqlBackend be) => SqlJustable (t (QExpr be s)) (t (Nullable (QExpr be s)))Defined in beam-core-0.11.1.0 · Database.Beam.Query.CombinatorsBeamSqlBackendHasCustomSyntax be => IsCustomExprFn (CustomSqlSnippet be) (QGenExpr ctxt be s res)Defined in beam-core-0.11.1.0 · Database.Beam.Query.CustomSQL(Table t, BeamSqlBackend be) => SqlJustable (PrimaryKey t (QExpr be s)) (PrimaryKey t (Nullable (QExpr be s)))Defined in beam-core-0.11.1.0 · Database.Beam.Query.Combinators(IsCustomExprFn a res, BeamSqlBackendHasCustomSyntax be) => IsCustomExprFn (CustomSqlSnippet be -> a) (QGenExpr ctxt be s r -> res)Defined in beam-core-0.11.1.0 · Database.Beam.Query.CustomSQL(BeamSqlBackend be, Beamable tbl, FieldsFulfillConstraint (HasSqlEqualityCheck be) tbl) => SqlEq (QGenExpr context be s) (tbl (QGenExpr context be s))Defined in beam-core-0.11.1.0 · Database.Beam.Query.Ord(BeamSqlBackend be, Beamable tbl, FieldsFulfillConstraintNullable (HasSqlEqualityCheck be) tbl) => SqlEq (QGenExpr context be s) (tbl (Nullable (QGenExpr context be s)))Defined in beam-core-0.11.1.0 · Database.Beam.Query.Ord(HasSqlInTable be, Beamable table) => SqlIn (QGenExpr context be s) (table (QGenExpr context be s))Defined in beam-core-0.11.1.0 · Database.Beam.Query.OrdQGroupable (QExpr be s a) (QGroupExpr be s a)Defined in beam-core-0.11.1.0 · Database.Beam.Query.Aggregategroup_ for simple value expressions.
BeamSqlBackend be => SqlJustable (QExpr be s a) (QExpr be s (Maybe a))Defined in beam-core-0.11.1.0 · Database.Beam.Query.Combinators(BeamSqlBackend be, HasSqlQuantifiedEqualityCheck be a) => SqlEqQuantified (QGenExpr context be s) (QQuantified be s a) (QGenExpr context be s a)Defined in beam-core-0.11.1.0 · Database.Beam.Query.OrdTwo arbitrary expressions can be quantifiably compared for equality.
BeamSqlBackend be => SqlOrdQuantified (QGenExpr context be s) (QQuantified be s a) (QGenExpr context be s a)Defined in beam-core-0.11.1.0 · Database.Beam.Query.Ord(BeamSqlBackend be, HasSqlEqualityCheck be a) => SqlEq (QGenExpr context be s) (QGenExpr context be s a)Defined in beam-core-0.11.1.0 · Database.Beam.Query.OrdCompare two arbitrary expressions (of the same type) for equality
BeamSqlBackend be => SqlIn (QGenExpr context be s) (QGenExpr context be s a)Defined in beam-core-0.11.1.0 · Database.Beam.Query.OrdBeamSqlBackend be => SqlOrd (QGenExpr context be s) (QGenExpr context be s a)Defined in beam-core-0.11.1.0 · Database.Beam.Query.OrdRetaggable (QGenExpr ctxt expr s) (QGenExpr ctxt expr s t)Defined in beam-core-0.11.1.0 · Database.Beam.Query.InternalBeamSqlBackend be => Eq (QGenExpr context be s t)Defined in beam-core-0.11.1.0 · Database.Beam.Query.Internal(Fractional a, BeamSqlBackend be, BeamSqlBackendCanSerialize be a) => Fractional (QGenExpr context be s a)Defined in beam-core-0.11.1.0 · Database.Beam.Query.Internal(Num a, BeamSqlBackend be, BeamSqlBackendCanSerialize be a) => Num (QGenExpr context be s a)Defined in beam-core-0.11.1.0 · Database.Beam.Query.Internal(BeamSqlBackend backend, BeamSqlBackendCanSerialize backend [Char]) => IsString (QGenExpr context backend s Text)Defined in beam-core-0.11.1.0 · Database.Beam.Query.Internal(BeamSqlBackendCanSerialize be a, BeamSqlBackend be) => SqlValable (QGenExpr ctxt be s a)Defined in beam-core-0.11.1.0 · Database.Beam.Query.CombinatorsContextRewritable (QGenExpr old syntax s a)Defined in beam-core-0.11.1.0 · Database.Beam.Query.Internaltype HaskellLiteralForQExpr (QGenExpr context be s a) = aDefined in beam-core-0.11.1.0 · Database.Beam.Query.Combinatorstype HaskellLiteralForQExpr (table (QGenExpr context be s)) = table IdentityDefined in beam-core-0.11.1.0 · Database.Beam.Query.Combinatorstype QExprToField (QGenExpr ctxt syntax s a) = QField s aDefined in beam-core-0.11.1.0 · Database.Beam.Query.Typestype QExprToField (table (Nullable (QGenExpr context syntax s))) = table (Nullable (QField s))Defined in beam-core-0.11.1.0 · Database.Beam.Query.Typestype QExprToField (table (QGenExpr context syntax s)) = table (QField s)Defined in beam-core-0.11.1.0 · Database.Beam.Query.Typestype QExprToIdentity (QGenExpr context syntax s a) = aDefined in beam-core-0.11.1.0 · Database.Beam.Query.Typestype QExprToIdentity (table (QGenExpr context syntax s)) = table IdentityDefined in beam-core-0.11.1.0 · Database.Beam.Query.Typestype WithRewrittenThread s s' (QGenExpr ctxt syntax s a) = QGenExpr ctxt syntax s' aDefined in beam-core-0.11.1.0 · Database.Beam.Query.Internaltype WithRewrittenThread s s' (tbl (Nullable (QGenExpr ctxt syntax s))) = tbl (Nullable (QGenExpr ctxt syntax s'))Defined in beam-core-0.11.1.0 · Database.Beam.Query.Internaltype WithRewrittenThread s s' (tbl (QGenExpr ctxt syntax s)) = tbl (QGenExpr ctxt syntax s')Defined in beam-core-0.11.1.0 · Database.Beam.Query.Internaltype WithRewrittenContext (QGenExpr old syntax s a) ctxt = QGenExpr ctxt syntax s aDefined in beam-core-0.11.1.0 · Database.Beam.Query.Internaltype WithRewrittenContext (tbl (Nullable (QGenExpr old syntax s))) ctxt = tbl (Nullable (QGenExpr ctxt syntax s))Defined in beam-core-0.11.1.0 · Database.Beam.Query.Internaltype WithRewrittenContext (tbl (QGenExpr old syntax s)) ctxt = tbl (QGenExpr ctxt syntax s)Defined in beam-core-0.11.1.0 · Database.Beam.Query.Internaltype Retag tag (QGenExpr ctxt expr s t) = Columnar (tag (QGenExpr ctxt expr s)) tDefined in beam-core-0.11.1.0 · Database.Beam.Query.Internal
Constructors
Instances1SqlOrderable
SqlOrderable be (QOrd be s a)Defined in beam-core-0.11.1.0 · Database.Beam.Query.Combinators
QExprs represent expressions not containing aggregates.
Constructors
Instances1ProjectibleWithPredicate
contextPredicate QWindowFrameContext => ProjectibleWithPredicate contextPredicate be (WithExprContext (BeamSqlBackendWindowFrameSyntax' be)) (QWindow be s)Defined in beam-core-0.11.1.0 · Database.Beam.Query.Internal
Constructors
Constructors
Sql Projections
24 declarationsTypeclass for all haskell data types that can be used to create a projection in a SQL select statement. This includes all tables as well as all tuple classes. Projections are only defined on tuples up to size 5. If you need more, follow the implementations here.
Instances1AggregateContext
(IsAggregateContext a, Typeable a) => AggregateContext aDefined in beam-core-0.11.1.0 · Database.Beam.Query.Internal
Instances5ContextName
type ContextName QAggregateContext =Defined in beam-core-0.11.1.0 · Database.Beam.Query.Internal"an aggregate"
type ContextName QGroupingContext =Defined in beam-core-0.11.1.0 · Database.Beam.Query.Internal"an aggregate grouping"
type ContextName QValueContext =Defined in beam-core-0.11.1.0 · Database.Beam.Query.Internal"a value"
type ContextName QWindowFrameContext =Defined in beam-core-0.11.1.0 · Database.Beam.Query.Internal"a window frame"
type ContextName QWindowingContext =Defined in beam-core-0.11.1.0 · Database.Beam.Query.Internal"a window expression"
Equations
IsAggregateContext QAggregateContext = ()IsAggregateContext QGroupingContext = ()IsAggregateContext a = TypeError (('Text"Non-aggregate expression where aggregate expected."
':$$: (('Text"Got "
':<>: 'Text (ContextName a)) ':<>: 'Text". Expected an aggregate or a grouping"
)) ':$$: AggregateContextSuggestion a)
Equations
AggregateContextSuggestion QValueContext = 'Text"Perhaps you forgot to wrap a value expression with 'group_'"
AggregateContextSuggestion QWindowingContext = 'Text"Perhaps you meant to use 'window_' instead of 'aggregate_'"
AggregateContextSuggestion b = 'Text""
Instances1ValueContext
(IsValueContext a, Typeable a, a ~ QValueContext) => ValueContext aDefined in beam-core-0.11.1.0 · Database.Beam.Query.Internal
Instances1WindowFrameContext
(Typeable context, IsWindowFrameContext context, context ~ QWindowFrameContext) => WindowFrameContext contextDefined in beam-core-0.11.1.0 · Database.Beam.Query.Internal
Equations
IsWindowFrameContext QWindowFrameContext = ()IsWindowFrameContext a = TypeError ('Text"Expected window frame."
':$$: (('Text"Got "
':<>: 'Text (ContextName a)) ':<>: 'Text". Expected a window frame"
))
Instances7AnyType, ProjectibleWithPredicate, …
AnyType aDefined in beam-core-0.11.1.0 · Database.Beam.Query.InternalBeamable t => ProjectibleWithPredicate AnyType () Text (t (Nullable (QField s)))Defined in beam-core-0.11.1.0 · Database.Beam.Query.InternalBeamable t => ProjectibleWithPredicate AnyType () Text (t (Nullable (Const Text)))Defined in beam-core-0.11.1.0 · Database.Beam.Query.InternalBeamable t => ProjectibleWithPredicate AnyType () Text (t (QField s))Defined in beam-core-0.11.1.0 · Database.Beam.Query.InternalBeamable t => ProjectibleWithPredicate AnyType () res (t (Const res))Defined in beam-core-0.11.1.0 · Database.Beam.Query.InternalProjectibleWithPredicate AnyType () Text (QField s a)Defined in beam-core-0.11.1.0 · Database.Beam.Query.InternalProjectibleWithPredicate AnyType () res (Const res a)Defined in beam-core-0.11.1.0 · Database.Beam.Query.Internal
Equations
IsValueContext QValueContext = ()IsValueContext a = TypeError (('Text"Non-scalar context in projection"
':$$: (('Text"Got "
':<>: 'Text (ContextName a)) ':<>: 'Text". Expected a value"
)) ':$$: ValueContextSuggestion a)
Equations
ValueContextSuggestion QWindowingContext = 'Text"Use 'window_' to projecct aggregate expressions to the value level"
ValueContextSuggestion QAggregateContext = 'Text"Aggregate functions and groupings cannot be contained in value expressions."
':$$: 'Text"Use 'aggregate_' to compute aggregations at the value level."
ValueContextSuggestion QGroupingContext = ValueContextSuggestion QAggregateContextValueContextSuggestion _1 = 'Text""
type Projectible be = ProjectibleWithPredicate AnyType be (WithExprContext (BeamSqlBackendExpressionSyntax' be))type ProjectibleValue be = ProjectibleWithPredicate ValueContext be (WithExprContext (BeamSqlBackendExpressionSyntax' be))Associated types
type family WithRewrittenThread s s' a
Methods
rewriteThread :: Proxy s' -> a -> WithRewrittenThread s s' a
Instances12ThreadRewritable, …
ThreadRewritable s a => ThreadRewritable s [a]Defined in beam-core-0.11.1.0 · Database.Beam.Query.InternalBeamable tbl => ThreadRewritable s (tbl (Nullable (QGenExpr ctxt syntax s)))Defined in beam-core-0.11.1.0 · Database.Beam.Query.InternalBeamable tbl => ThreadRewritable s (tbl (QGenExpr ctxt syntax s))Defined in beam-core-0.11.1.0 · Database.Beam.Query.Internal(ThreadRewritable s a, ThreadRewritable s b) => ThreadRewritable s (a, b)Defined in beam-core-0.11.1.0 · Database.Beam.Query.Internal(ThreadRewritable s a, KnownNat n) => ThreadRewritable s (Vector n a)Defined in beam-core-0.11.1.0 · Database.Beam.Query.Internal(ThreadRewritable s a, ThreadRewritable s b, ThreadRewritable s c) => ThreadRewritable s (a, b, c)Defined in beam-core-0.11.1.0 · Database.Beam.Query.InternalThreadRewritable s (QGenExpr ctxt syntax s a)Defined in beam-core-0.11.1.0 · Database.Beam.Query.Internal(ThreadRewritable s a, ThreadRewritable s b, ThreadRewritable s c, ThreadRewritable s d) => ThreadRewritable s (a, b, c, d)Defined in beam-core-0.11.1.0 · Database.Beam.Query.Internal(ThreadRewritable s a, ThreadRewritable s b, ThreadRewritable s c, ThreadRewritable s d, ThreadRewritable s e) => ThreadRewritable s (a, b, c, d, e)Defined in beam-core-0.11.1.0 · Database.Beam.Query.Internal(ThreadRewritable s a, ThreadRewritable s b, ThreadRewritable s c, ThreadRewritable s d, ThreadRewritable s e, ThreadRewritable s f) => ThreadRewritable s (a, b, c, d, e, f)Defined in beam-core-0.11.1.0 · Database.Beam.Query.Internal(ThreadRewritable s a, ThreadRewritable s b, ThreadRewritable s c, ThreadRewritable s d, ThreadRewritable s e, ThreadRewritable s f, ThreadRewritable s g) => ThreadRewritable s (a, b, c, d, e, f, g)Defined in beam-core-0.11.1.0 · Database.Beam.Query.Internal(ThreadRewritable s a, ThreadRewritable s b, ThreadRewritable s c, ThreadRewritable s d, ThreadRewritable s e, ThreadRewritable s f, ThreadRewritable s g, ThreadRewritable s h) => ThreadRewritable s (a, b, c, d, e, f, g, h)Defined in beam-core-0.11.1.0 · Database.Beam.Query.Internal
Associated types
type family WithRewrittenContext a ctxt
Methods
rewriteContext :: Proxy ctxt -> a -> WithRewrittenContext a ctxt
Instances12ContextRewritable, …
ContextRewritable a => ContextRewritable [a]Defined in beam-core-0.11.1.0 · Database.Beam.Query.InternalBeamable tbl => ContextRewritable (tbl (Nullable (QGenExpr old syntax s)))Defined in beam-core-0.11.1.0 · Database.Beam.Query.InternalBeamable tbl => ContextRewritable (tbl (QGenExpr old syntax s))Defined in beam-core-0.11.1.0 · Database.Beam.Query.Internal(ContextRewritable a, ContextRewritable b) => ContextRewritable (a, b)Defined in beam-core-0.11.1.0 · Database.Beam.Query.Internal(ContextRewritable a, KnownNat n) => ContextRewritable (Vector n a)Defined in beam-core-0.11.1.0 · Database.Beam.Query.Internal(ContextRewritable a, ContextRewritable b, ContextRewritable c) => ContextRewritable (a, b, c)Defined in beam-core-0.11.1.0 · Database.Beam.Query.InternalContextRewritable (QGenExpr old syntax s a)Defined in beam-core-0.11.1.0 · Database.Beam.Query.Internal(ContextRewritable a, ContextRewritable b, ContextRewritable c, ContextRewritable d) => ContextRewritable (a, b, c, d)Defined in beam-core-0.11.1.0 · Database.Beam.Query.Internal(ContextRewritable a, ContextRewritable b, ContextRewritable c, ContextRewritable d, ContextRewritable e) => ContextRewritable (a, b, c, d, e)Defined in beam-core-0.11.1.0 · Database.Beam.Query.Internal(ContextRewritable a, ContextRewritable b, ContextRewritable c, ContextRewritable d, ContextRewritable e, ContextRewritable f) => ContextRewritable (a, b, c, d, e, f)Defined in beam-core-0.11.1.0 · Database.Beam.Query.Internal(ContextRewritable a, ContextRewritable b, ContextRewritable c, ContextRewritable d, ContextRewritable e, ContextRewritable f, ContextRewritable g) => ContextRewritable (a, b, c, d, e, f, g)Defined in beam-core-0.11.1.0 · Database.Beam.Query.Internal(ContextRewritable a, ContextRewritable b, ContextRewritable c, ContextRewritable d, ContextRewritable e, ContextRewritable f, ContextRewritable g, ContextRewritable h) => ContextRewritable (a, b, c, d, e, f, g, h)Defined in beam-core-0.11.1.0 · Database.Beam.Query.Internal
Instances3ProjectibleWithPredicate
(Beamable t, contextPredicate context) => ProjectibleWithPredicate contextPredicate be (WithExprContext (BeamSqlBackendExpressionSyntax' be)) (t (Nullable (QGenExpr context be s)))Defined in beam-core-0.11.1.0 · Database.Beam.Query.Internal(Beamable t, contextPredicate context) => ProjectibleWithPredicate contextPredicate be (WithExprContext (BeamSqlBackendExpressionSyntax' be)) (t (QGenExpr context be s))Defined in beam-core-0.11.1.0 · Database.Beam.Query.InternalcontextPredicate context => ProjectibleWithPredicate contextPredicate be (WithExprContext (BeamSqlBackendExpressionSyntax' be)) (QGenExpr context be s a)Defined in beam-core-0.11.1.0 · Database.Beam.Query.Internal
Instances1ProjectibleWithPredicate
contextPredicate QWindowFrameContext => ProjectibleWithPredicate contextPredicate be (WithExprContext (BeamSqlBackendWindowFrameSyntax' be)) (QWindow be s)Defined in beam-core-0.11.1.0 · Database.Beam.Query.Internal
class ProjectibleWithPredicate (contextPredicate :: Type -> Constraint) be res a | a -> be whereMethods
project' :: Monad m => Proxy contextPredicate -> Proxy (be, res) -> (forall context. contextPredicate context => Proxy context -> Proxy be -> res -> m res) -> a -> m aprojectSkeleton' :: Monad m => Proxy contextPredicate -> Proxy (be, res) -> (forall context. contextPredicate context => Proxy context -> Proxy be -> m res) -> m a
Instances19ProjectibleWithPredicate, …
Beamable t => ProjectibleWithPredicate AnyType () Text (t (Nullable (QField s)))Defined in beam-core-0.11.1.0 · Database.Beam.Query.InternalBeamable t => ProjectibleWithPredicate AnyType () Text (t (Nullable (Const Text)))Defined in beam-core-0.11.1.0 · Database.Beam.Query.InternalBeamable t => ProjectibleWithPredicate AnyType () Text (t (QField s))Defined in beam-core-0.11.1.0 · Database.Beam.Query.InternalBeamable t => ProjectibleWithPredicate AnyType () res (t (Const res))Defined in beam-core-0.11.1.0 · Database.Beam.Query.InternalProjectibleWithPredicate AnyType () Text (QField s a)Defined in beam-core-0.11.1.0 · Database.Beam.Query.Internal(ProjectibleWithPredicate contextPredicate be res a, ProjectibleWithPredicate contextPredicate be res b) => ProjectibleWithPredicate contextPredicate be res (a, b)Defined in beam-core-0.11.1.0 · Database.Beam.Query.Internal(ProjectibleWithPredicate contextPredicate be res a, KnownNat n) => ProjectibleWithPredicate contextPredicate be res (Vector n a)Defined in beam-core-0.11.1.0 · Database.Beam.Query.Internal(Monoid a, ProjectibleWithPredicate c syntax res b) => ProjectibleWithPredicate c syntax res (PreserveLeft a b)Defined in beam-core-0.11.1.0 · Database.Beam.Query.SQL92ProjectibleWithPredicate AnyType () res (Const res a)Defined in beam-core-0.11.1.0 · Database.Beam.Query.Internal(ProjectibleWithPredicate contextPredicate be res a, ProjectibleWithPredicate contextPredicate be res b, ProjectibleWithPredicate contextPredicate be res c) => ProjectibleWithPredicate contextPredicate be res (a, b, c)Defined in beam-core-0.11.1.0 · Database.Beam.Query.Internal(ProjectibleWithPredicate contextPredicate be res a, ProjectibleWithPredicate contextPredicate be res b, ProjectibleWithPredicate contextPredicate be res c, ProjectibleWithPredicate contextPredicate be res d) => ProjectibleWithPredicate contextPredicate be res (a, b, c, d)Defined in beam-core-0.11.1.0 · Database.Beam.Query.Internal(ProjectibleWithPredicate contextPredicate be res a, ProjectibleWithPredicate contextPredicate be res b, ProjectibleWithPredicate contextPredicate be res c, ProjectibleWithPredicate contextPredicate be res d, ProjectibleWithPredicate contextPredicate be res e) => ProjectibleWithPredicate contextPredicate be res (a, b, c, d, e)Defined in beam-core-0.11.1.0 · Database.Beam.Query.Internal(ProjectibleWithPredicate contextPredicate be res a, ProjectibleWithPredicate contextPredicate be res b, ProjectibleWithPredicate contextPredicate be res c, ProjectibleWithPredicate contextPredicate be res d, ProjectibleWithPredicate contextPredicate be res e, ProjectibleWithPredicate contextPredicate be res f) => ProjectibleWithPredicate contextPredicate be res (a, b, c, d, e, f)Defined in beam-core-0.11.1.0 · Database.Beam.Query.Internal(ProjectibleWithPredicate contextPredicate be res a, ProjectibleWithPredicate contextPredicate be res b, ProjectibleWithPredicate contextPredicate be res c, ProjectibleWithPredicate contextPredicate be res d, ProjectibleWithPredicate contextPredicate be res e, ProjectibleWithPredicate contextPredicate be res f, ProjectibleWithPredicate contextPredicate be res g) => ProjectibleWithPredicate contextPredicate be res (a, b, c, d, e, f, g)Defined in beam-core-0.11.1.0 · Database.Beam.Query.Internal(ProjectibleWithPredicate contextPredicate be res a, ProjectibleWithPredicate contextPredicate be res b, ProjectibleWithPredicate contextPredicate be res c, ProjectibleWithPredicate contextPredicate be res d, ProjectibleWithPredicate contextPredicate be res e, ProjectibleWithPredicate contextPredicate be res f, ProjectibleWithPredicate contextPredicate be res g, ProjectibleWithPredicate contextPredicate be res h) => ProjectibleWithPredicate contextPredicate be res (a, b, c, d, e, f, g, h)Defined in beam-core-0.11.1.0 · Database.Beam.Query.Internal(Beamable t, contextPredicate context) => ProjectibleWithPredicate contextPredicate be (WithExprContext (BeamSqlBackendExpressionSyntax' be)) (t (Nullable (QGenExpr context be s)))Defined in beam-core-0.11.1.0 · Database.Beam.Query.Internal(Beamable t, contextPredicate context) => ProjectibleWithPredicate contextPredicate be (WithExprContext (BeamSqlBackendExpressionSyntax' be)) (t (QGenExpr context be s))Defined in beam-core-0.11.1.0 · Database.Beam.Query.InternalcontextPredicate QWindowFrameContext => ProjectibleWithPredicate contextPredicate be (WithExprContext (BeamSqlBackendWindowFrameSyntax' be)) (QWindow be s)Defined in beam-core-0.11.1.0 · Database.Beam.Query.InternalcontextPredicate context => ProjectibleWithPredicate contextPredicate be (WithExprContext (BeamSqlBackendExpressionSyntax' be)) (QGenExpr context be s a)Defined in beam-core-0.11.1.0 · Database.Beam.Query.Internal
suitable as argument to QAll in the case of a table result