Module
SqlSquared
- Package
- purescript-sql-squared
- Repository
- slamdata/purescript-sql-squared
#SqlModule Source
type SqlModule = SqlModuleF Sql
#printQuery Source
printQuery :: SqlQuery -> String
#printModule Source
printModule :: SqlModule -> String
Re-exports from SqlSquared.Constructors
#unop Source
unop :: forall f t. Corecursive t (SqlF f) => UnaryOperator -> t -> t
#projection Source
projection :: forall t. t -> Projection t
#parens Source
parens :: forall f t. Corecursive t (SqlF f) => t -> t
#invokeFunction' Source
invokeFunction' :: forall f t. Corecursive t (SqlF f) => InvokeFunctionR t -> t
#invokeFunction Source
invokeFunction :: forall f t. Corecursive t (SqlF f) => Ident -> List t -> t
#buildSelect Source
buildSelect :: forall f t. Corecursive t (SqlF f) => (SelectR t -> SelectR t) -> t
#binop Source
binop :: forall f t. Corecursive t (SqlF f) => BinaryOperator -> t -> t -> t
#as' Source
as' :: forall t. Ident -> Projection t -> Projection t
#as Source
as :: forall t. String -> Projection t -> Projection t
Re-exports from SqlSquared.Lenses
#_tablePath Source
_tablePath :: forall r a. Lens' { tablePath :: a | r } a
#_relations Source
_relations :: forall r a. Lens' { relations :: a | r } a
#_projections Source
_projections :: forall r a. Lens' { projections :: a | r } a
#_isDistinct Source
_isDistinct :: forall r a. Lens' { isDistinct :: a | r } a
#_aliasName Source
_aliasName :: forall r a. Lens' { aliasName :: a | r } a
#_StringLiteral Source
_StringLiteral :: forall t. Recursive t (SqlF EJsonF) => Corecursive t (SqlF EJsonF) => Prism' t String
#_SetLiteral Source
_SetLiteral :: forall f t. Recursive t (SqlF f) => Corecursive t (SqlF f) => Prism' t (List t)
#_Projection Source
_Projection :: forall a. Iso' (Projection a) { alias :: Maybe Ident, expr :: a }
#_NullLiteral Source
_NullLiteral :: forall t. Recursive t (SqlF EJsonF) => Corecursive t (SqlF EJsonF) => Prism' t Unit
#_MapLiteral Source
_MapLiteral :: forall t. Recursive t (SqlF EJsonF) => Corecursive t (SqlF EJsonF) => Prism' t (Array (t × t))
#_InvokeFunction Source
_InvokeFunction :: forall f t. Recursive t (SqlF f) => Corecursive t (SqlF f) => Prism' t (InvokeFunctionR t)
#_IntLiteral Source
_IntLiteral :: forall t. Recursive t (SqlF EJsonF) => Corecursive t (SqlF EJsonF) => Prism' t HugeInt
#_Identifier Source
_Identifier :: forall f t. Recursive t (SqlF f) => Corecursive t (SqlF f) => Prism' t Ident
#_DecimalLiteral Source
_DecimalLiteral :: forall t. Recursive t (SqlF EJsonF) => Corecursive t (SqlF EJsonF) => Prism' t HugeNum
#_BoolLiteral Source
_BoolLiteral :: forall t. Recursive t (SqlF EJsonF) => Corecursive t (SqlF EJsonF) => Prism' t Boolean
#_ArrayLiteral Source
_ArrayLiteral :: forall t. Recursive t (SqlF EJsonF) => Corecursive t (SqlF EJsonF) => Prism' t (Array t)
Re-exports from SqlSquared.Parser
#PositionedToken Source
type PositionedToken = { position :: Position, token :: Token }
#prettyParse Source
prettyParse :: forall a. (String -> Either ParseError a) -> String -> Either String a
#parseQuery Source
parseQuery :: forall t. Corecursive t (SqlF EJsonF) => String -> Either ParseError (SqlQueryF t)
#parseModule Source
parseModule :: forall t. Corecursive t (SqlF EJsonF) => String -> Either ParseError (SqlModuleF t)
#parse Source
parse :: forall t. Corecursive t (SqlF EJsonF) => String -> Either ParseError t
Re-exports from SqlSquared.Signature
#UnopR Source
type UnopR a = { expr :: a, op :: UnaryOperator }
#SqlModuleF Source
newtype SqlModuleF a
Constructors
Instances
(Eq a) => Eq (SqlModuleF a)
(Ord a) => Ord (SqlModuleF a)
Newtype (SqlModuleF a) _
Eq1 SqlModuleF
Ord1 SqlModuleF
Functor SqlModuleF
Foldable SqlModuleF
Traversable SqlModuleF
#SqlF Source
#Projection Source
newtype Projection a
Constructors
Projection { alias :: Maybe Ident, expr :: a }
Instances
Functor Projection
Newtype (Projection a) _
(Eq a) => Eq (Projection a)
(Ord a) => Ord (Projection a)
Foldable Projection
Traversable Projection
#InvokeFunctionR Source
type InvokeFunctionR a = { args :: List a, name :: Ident }
#BinopR Source
type BinopR a = { lhs :: a, op :: BinaryOperator, rhs :: a }
#unopToString Source
unopToString :: UnaryOperator -> String
#printUnaryOperator Source
printUnaryOperator :: String -> UnaryOperator -> String
#printOrderType Source
printOrderType :: OrderType -> String
#printJoinType Source
printJoinType :: JoinType -> String
#printIdent Source
printIdent :: Ident -> String
#printBinaryOperator Source
printBinaryOperator :: String -> String -> BinaryOperator -> String
#genUnaryOperator Source
genUnaryOperator :: forall m. MonadGen m => m UnaryOperator
#genSqlQueryF Source
genSqlQueryF :: forall m. MonadGen m => MonadRec m => CoalgebraM m SqlQueryF Int
#genSqlModuleF Source
genSqlModuleF :: forall m. MonadGen m => MonadRec m => CoalgebraM m SqlModuleF Int
#genSqlF Source
genSqlF :: forall l m. MonadGen m => MonadRec m => CoalgebraM m l Int -> CoalgebraM m (SqlF l) Int
#genSqlDeclF Source
genSqlDeclF :: forall m. MonadGen m => MonadRec m => CoalgebraM m SqlDeclF Int
#genRelation Source
genRelation :: forall m. MonadGen m => MonadRec m => CoalgebraM m Relation Int
#genProjection Source
genProjection :: forall m. MonadGen m => MonadRec m => CoalgebraM m Projection Int
#genOrderType Source
genOrderType :: forall m. MonadGen m => m OrderType
#genOrderBy Source
genOrderBy :: forall m. MonadGen m => CoalgebraM m OrderBy Int
#genJoinType Source
genJoinType :: forall m. MonadGen m => m JoinType
#genGroupBy Source
genGroupBy :: forall m. MonadGen m => CoalgebraM m GroupBy Int
#genBinaryOperator Source
genBinaryOperator :: forall m. MonadGen m => m BinaryOperator
- Modules
- SqlSquared
- SqlSquared.
Constructors - SqlSquared.
Lenses - SqlSquared.
Parser - SqlSquared.
Parser. Tokenizer - SqlSquared.
Path - SqlSquared.
Signature - SqlSquared.
Signature. BinaryOperator - SqlSquared.
Signature. Case - SqlSquared.
Signature. GroupBy - SqlSquared.
Signature. Ident - SqlSquared.
Signature. JoinType - SqlSquared.
Signature. OrderBy - SqlSquared.
Signature. OrderType - SqlSquared.
Signature. Projection - SqlSquared.
Signature. Relation - SqlSquared.
Signature. UnaryOperator - SqlSquared.
Utils