Safe Haskell | None |
---|---|
Language | Haskell2010 |
This module implements an AST type for SQL92. It allows us to realize the call structure of the builders defined in Database.Beam.Backend.SQL.SQL92
Documentation
Instances
Eq Command Source # | |
Show Command Source # | |
IsSql92Syntax Command Source # | |
Defined in Database.Beam.Backend.SQL.AST type Sql92SelectSyntax Command Source # type Sql92InsertSyntax Command Source # type Sql92UpdateSyntax Command Source # type Sql92DeleteSyntax Command Source # |
|
type Sql92SelectSyntax Command Source # | |
Defined in Database.Beam.Backend.SQL.AST |
|
type Sql92InsertSyntax Command Source # | |
Defined in Database.Beam.Backend.SQL.AST |
|
type Sql92UpdateSyntax Command Source # | |
Defined in Database.Beam.Backend.SQL.AST |
|
type Sql92DeleteSyntax Command Source # | |
Defined in Database.Beam.Backend.SQL.AST |
Select | |
|
Instances
Eq Select Source # | |
Show Select Source # | |
IsSql92SelectSyntax Select Source # | |
Defined in Database.Beam.Backend.SQL.AST selectStmt :: Sql92SelectSelectTableSyntax Select -> [ Sql92SelectOrderingSyntax Select ] -> Maybe Integer -> Maybe Integer -> Select Source # |
|
type Sql92SelectSelectTableSyntax Select Source # | |
Defined in Database.Beam.Backend.SQL.AST |
|
type Sql92SelectOrderingSyntax Select Source # | |
Defined in Database.Beam.Backend.SQL.AST |
data SelectTable Source #
SelectTable | |
UnionTables Bool SelectTable SelectTable | |
IntersectTables Bool SelectTable SelectTable | |
ExceptTable Bool SelectTable SelectTable |
Instances
Insert | |
|
Instances
Eq Insert Source # | |
Show Insert Source # | |
IsSql92InsertSyntax Insert Source # | |
Defined in Database.Beam.Backend.SQL.AST insertStmt :: Sql92InsertTableNameSyntax Insert -> [ Text ] -> Sql92InsertValuesSyntax Insert -> Insert Source # |
|
type Sql92InsertValuesSyntax Insert Source # | |
Defined in Database.Beam.Backend.SQL.AST |
|
type Sql92InsertTableNameSyntax Insert Source # | |
Defined in Database.Beam.Backend.SQL.AST |
data InsertValues Source #
Instances
Eq InsertValues Source # | |
Defined in Database.Beam.Backend.SQL.AST (==) :: InsertValues -> InsertValues -> Bool Source # (/=) :: InsertValues -> InsertValues -> Bool Source # |
|
Show InsertValues Source # | |
Defined in Database.Beam.Backend.SQL.AST |
|
IsSql92InsertValuesSyntax InsertValues Source # | |
type Sql92InsertValuesExpressionSyntax InsertValues Source # | |
Defined in Database.Beam.Backend.SQL.AST |
|
type Sql92InsertValuesSelectSyntax InsertValues Source # | |
Defined in Database.Beam.Backend.SQL.AST |
Update | |
|
Instances
Eq Update Source # | |
Show Update Source # | |
IsSql92UpdateSyntax Update Source # | |
Defined in Database.Beam.Backend.SQL.AST |
|
type Sql92UpdateTableNameSyntax Update Source # | |
Defined in Database.Beam.Backend.SQL.AST |
|
type Sql92UpdateFieldNameSyntax Update Source # | |
Defined in Database.Beam.Backend.SQL.AST |
|
type Sql92UpdateExpressionSyntax Update Source # | |
Defined in Database.Beam.Backend.SQL.AST |
Instances
Eq Delete Source # | |
Show Delete Source # | |
IsSql92DeleteSyntax Delete Source # | |
Defined in Database.Beam.Backend.SQL.AST deleteStmt :: Sql92DeleteTableNameSyntax Delete -> Maybe Text -> Maybe ( Sql92DeleteExpressionSyntax Delete ) -> Delete Source # |
|
type Sql92DeleteTableNameSyntax Delete Source # | |
Defined in Database.Beam.Backend.SQL.AST |
|
type Sql92DeleteExpressionSyntax Delete Source # | |
Defined in Database.Beam.Backend.SQL.AST |
data ComparatorQuantifier Source #
Instances
data ExtractField Source #
Instances
Eq ExtractField Source # | |
Defined in Database.Beam.Backend.SQL.AST (==) :: ExtractField -> ExtractField -> Bool Source # (/=) :: ExtractField -> ExtractField -> Bool Source # |
|
Show ExtractField Source # | |
Defined in Database.Beam.Backend.SQL.AST |
|
IsSql92ExtractFieldSyntax ExtractField Source # | |
Defined in Database.Beam.Backend.SQL.AST |
Instances
Eq DataType Source # | |
Show DataType Source # | |
IsSql92DataTypeSyntax DataType Source # | |
Defined in Database.Beam.Backend.SQL.AST domainType :: Text -> DataType Source # charType :: Maybe Word -> Maybe Text -> DataType Source # varCharType :: Maybe Word -> Maybe Text -> DataType Source # nationalCharType :: Maybe Word -> DataType Source # nationalVarCharType :: Maybe Word -> DataType Source # bitType :: Maybe Word -> DataType Source # varBitType :: Maybe Word -> DataType Source # numericType :: Maybe ( Word , Maybe Word ) -> DataType Source # decimalType :: Maybe ( Word , Maybe Word ) -> DataType Source # smallIntType :: DataType Source # floatType :: Maybe Word -> DataType Source # doubleType :: DataType Source # |
|
IsSql99DataTypeSyntax DataType Source # | |
IsSql2008BigIntDataTypeSyntax DataType Source # | |
Defined in Database.Beam.Backend.SQL.AST |
data SetQuantifier Source #
Instances
Eq SetQuantifier Source # | |
Defined in Database.Beam.Backend.SQL.AST (==) :: SetQuantifier -> SetQuantifier -> Bool Source # (/=) :: SetQuantifier -> SetQuantifier -> Bool Source # |
|
Show SetQuantifier Source # | |
Defined in Database.Beam.Backend.SQL.AST |
|
IsSql92AggregationSetQuantifierSyntax SetQuantifier Source # | |
data Expression Source #
Instances
newtype Projection Source #
ProjExprs [( Expression , Maybe Text )] |
Instances
Eq Projection Source # | |
Defined in Database.Beam.Backend.SQL.AST (==) :: Projection -> Projection -> Bool Source # (/=) :: Projection -> Projection -> Bool Source # |
|
Show Projection Source # | |
Defined in Database.Beam.Backend.SQL.AST |
|
IsSql92ProjectionSyntax Projection Source # | |
Defined in Database.Beam.Backend.SQL.AST projExprs :: [( Sql92ProjectionExpressionSyntax Projection , Maybe Text )] -> Projection Source # |
|
type Sql92ProjectionExpressionSyntax Projection Source # | |
Defined in Database.Beam.Backend.SQL.AST |
Grouping [ Expression ] |
Instances
Eq Grouping Source # | |
Show Grouping Source # | |
IsSql92GroupingSyntax Grouping Source # | |
Defined in Database.Beam.Backend.SQL.AST |
|
type Sql92GroupingExpressionSyntax Grouping Source # | |
Defined in Database.Beam.Backend.SQL.AST |
Instances
Eq TableName Source # | |
Ord TableName Source # | |
Defined in Database.Beam.Backend.SQL.AST |
|
Show TableName Source # | |
IsSql92TableNameSyntax TableName Source # | |
data TableSource Source #
Instances
Eq TableSource Source # | |
Defined in Database.Beam.Backend.SQL.AST (==) :: TableSource -> TableSource -> Bool Source # (/=) :: TableSource -> TableSource -> Bool Source # |
|
Show TableSource Source # | |
Defined in Database.Beam.Backend.SQL.AST |
|
IsSql92TableSourceSyntax TableSource Source # | |
type Sql92TableSourceSelectSyntax TableSource Source # | |
Defined in Database.Beam.Backend.SQL.AST |
|
type Sql92TableSourceExpressionSyntax TableSource Source # | |
Defined in Database.Beam.Backend.SQL.AST |
|
type Sql92TableSourceTableNameSyntax TableSource Source # | |
Defined in Database.Beam.Backend.SQL.AST |
FromTable TableSource ( Maybe ( Text , Maybe [ Text ])) | |
InnerJoin From From ( Maybe Expression ) | |
LeftJoin From From ( Maybe Expression ) | |
RightJoin From From ( Maybe Expression ) | |
OuterJoin From From ( Maybe Expression ) |
Instances
Eq From Source # | |
Show From Source # | |
IsSql92FromSyntax From Source # | |
Defined in Database.Beam.Backend.SQL.AST fromTable :: Sql92FromTableSourceSyntax From -> Maybe ( Text , Maybe [ Text ]) -> From Source # innerJoin :: From -> From -> Maybe ( Sql92FromExpressionSyntax From ) -> From Source # leftJoin :: From -> From -> Maybe ( Sql92FromExpressionSyntax From ) -> From Source # rightJoin :: From -> From -> Maybe ( Sql92FromExpressionSyntax From ) -> From Source # |
|
type Sql92FromTableSourceSyntax From Source # | |
Defined in Database.Beam.Backend.SQL.AST |
|
type Sql92FromExpressionSyntax From Source # | |
Defined in Database.Beam.Backend.SQL.AST |
Instances
data WindowFrame Source #
Instances
Eq WindowFrame Source # | |
Defined in Database.Beam.Backend.SQL.AST (==) :: WindowFrame -> WindowFrame -> Bool Source # (/=) :: WindowFrame -> WindowFrame -> Bool Source # |
|
Show WindowFrame Source # | |
Defined in Database.Beam.Backend.SQL.AST |
|
IsSql2003WindowFrameSyntax WindowFrame Source # | |
type Sql2003WindowFrameExpressionSyntax WindowFrame Source # | |
Defined in Database.Beam.Backend.SQL.AST |
|
type Sql2003WindowFrameOrderingSyntax WindowFrame Source # | |
Defined in Database.Beam.Backend.SQL.AST |
|
type Sql2003WindowFrameBoundsSyntax WindowFrame Source # | |
data WindowFrameBounds Source #
Instances
data WindowFrameBound Source #
Instances
Eq WindowFrameBound Source # | |
Defined in Database.Beam.Backend.SQL.AST (==) :: WindowFrameBound -> WindowFrameBound -> Bool Source # (/=) :: WindowFrameBound -> WindowFrameBound -> Bool Source # |
|
Show WindowFrameBound Source # | |
Defined in Database.Beam.Backend.SQL.AST |
|
IsSql2003WindowFrameBoundSyntax WindowFrameBound Source # | |
Defined in Database.Beam.Backend.SQL.AST |