Safe Haskell | Safe-Inferred |
---|---|
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
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 # | |
Eq Command Source # | |
type Sql92DeleteSyntax Command Source # | |
Defined in Database.Beam.Backend.SQL.AST | |
type Sql92InsertSyntax Command Source # | |
Defined in Database.Beam.Backend.SQL.AST | |
type Sql92SelectSyntax Command Source # | |
Defined in Database.Beam.Backend.SQL.AST | |
type Sql92UpdateSyntax Command Source # | |
Defined in Database.Beam.Backend.SQL.AST |
Instances
Show Select Source # | |
IsSql92SelectSyntax Select Source # | |
Defined in Database.Beam.Backend.SQL.AST selectStmt :: Sql92SelectSelectTableSyntax Select -> [Sql92SelectOrderingSyntax Select] -> Maybe Integer -> Maybe Integer -> Select Source # | |
Eq Select Source # | |
type Sql92SelectOrderingSyntax Select Source # | |
Defined in Database.Beam.Backend.SQL.AST | |
type Sql92SelectSelectTableSyntax 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
Show Insert Source # | |
IsSql92InsertSyntax Insert Source # | |
Defined in Database.Beam.Backend.SQL.AST insertStmt :: Sql92InsertTableNameSyntax Insert -> [Text] -> Sql92InsertValuesSyntax Insert -> Insert Source # | |
Eq Insert Source # | |
type Sql92InsertTableNameSyntax Insert Source # | |
Defined in Database.Beam.Backend.SQL.AST | |
type Sql92InsertValuesSyntax Insert Source # | |
Defined in Database.Beam.Backend.SQL.AST |
data InsertValues Source #
Instances
Show InsertValues Source # | |
Defined in Database.Beam.Backend.SQL.AST showsPrec :: Int -> InsertValues -> ShowS # show :: InsertValues -> String # showList :: [InsertValues] -> ShowS # | |
IsSql92InsertValuesSyntax InsertValues Source # | |
Eq InsertValues Source # | |
Defined in Database.Beam.Backend.SQL.AST (==) :: InsertValues -> InsertValues -> Bool # (/=) :: InsertValues -> InsertValues -> Bool # | |
type Sql92InsertValuesExpressionSyntax InsertValues Source # | |
Defined in Database.Beam.Backend.SQL.AST | |
type Sql92InsertValuesSelectSyntax InsertValues Source # | |
Defined in Database.Beam.Backend.SQL.AST |
Update | |
|
Instances
Show Update Source # | |
IsSql92UpdateSyntax Update Source # | |
Defined in Database.Beam.Backend.SQL.AST | |
Eq Update Source # | |
type Sql92UpdateExpressionSyntax Update Source # | |
Defined in Database.Beam.Backend.SQL.AST | |
type Sql92UpdateFieldNameSyntax Update Source # | |
Defined in Database.Beam.Backend.SQL.AST | |
type Sql92UpdateTableNameSyntax Update Source # | |
Defined in Database.Beam.Backend.SQL.AST |
Instances
Show Delete Source # | |
IsSql92DeleteSyntax Delete Source # | |
Defined in Database.Beam.Backend.SQL.AST | |
Eq Delete Source # | |
type Sql92DeleteExpressionSyntax Delete Source # | |
Defined in Database.Beam.Backend.SQL.AST | |
type Sql92DeleteTableNameSyntax Delete Source # | |
Defined in Database.Beam.Backend.SQL.AST |
data ComparatorQuantifier Source #
Instances
Show ComparatorQuantifier Source # | |
Defined in Database.Beam.Backend.SQL.AST showsPrec :: Int -> ComparatorQuantifier -> ShowS # show :: ComparatorQuantifier -> String # showList :: [ComparatorQuantifier] -> ShowS # | |
IsSql92QuantifierSyntax ComparatorQuantifier Source # | |
Eq ComparatorQuantifier Source # | |
Defined in Database.Beam.Backend.SQL.AST (==) :: ComparatorQuantifier -> ComparatorQuantifier -> Bool # (/=) :: ComparatorQuantifier -> ComparatorQuantifier -> Bool # |
data ExtractField Source #
Instances
Show ExtractField Source # | |
Defined in Database.Beam.Backend.SQL.AST showsPrec :: Int -> ExtractField -> ShowS # show :: ExtractField -> String # showList :: [ExtractField] -> ShowS # | |
IsSql92ExtractFieldSyntax ExtractField Source # | |
Eq ExtractField Source # | |
Defined in Database.Beam.Backend.SQL.AST (==) :: ExtractField -> ExtractField -> Bool # (/=) :: ExtractField -> ExtractField -> Bool # |
Instances
Show DataType Source # | |
IsSql2008BigIntDataTypeSyntax DataType Source # | |
Defined in Database.Beam.Backend.SQL.AST | |
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 # | |
Eq DataType Source # | |
data SetQuantifier Source #
Instances
Show SetQuantifier Source # | |
Defined in Database.Beam.Backend.SQL.AST showsPrec :: Int -> SetQuantifier -> ShowS # show :: SetQuantifier -> String # showList :: [SetQuantifier] -> ShowS # | |
IsSql92AggregationSetQuantifierSyntax SetQuantifier Source # | |
Eq SetQuantifier Source # | |
Defined in Database.Beam.Backend.SQL.AST (==) :: SetQuantifier -> SetQuantifier -> Bool # (/=) :: SetQuantifier -> SetQuantifier -> Bool # |
data Expression Source #
Instances
newtype Projection Source #
ProjExprs [(Expression, Maybe Text)] |
Instances
Show Projection Source # | |
Defined in Database.Beam.Backend.SQL.AST showsPrec :: Int -> Projection -> ShowS # show :: Projection -> String # showList :: [Projection] -> ShowS # | |
IsSql92ProjectionSyntax Projection Source # | |
Defined in Database.Beam.Backend.SQL.AST | |
Eq Projection Source # | |
Defined in Database.Beam.Backend.SQL.AST (==) :: Projection -> Projection -> Bool # (/=) :: Projection -> Projection -> Bool # | |
type Sql92ProjectionExpressionSyntax Projection Source # | |
Defined in Database.Beam.Backend.SQL.AST |
data TableSource Source #
Instances
Show TableSource Source # | |
Defined in Database.Beam.Backend.SQL.AST showsPrec :: Int -> TableSource -> ShowS # show :: TableSource -> String # showList :: [TableSource] -> ShowS # | |
IsSql92TableSourceSyntax TableSource Source # | |
Eq TableSource Source # | |
Defined in Database.Beam.Backend.SQL.AST (==) :: TableSource -> TableSource -> Bool # (/=) :: TableSource -> TableSource -> Bool # | |
type Sql92TableSourceExpressionSyntax TableSource Source # | |
Defined in Database.Beam.Backend.SQL.AST | |
type Sql92TableSourceSelectSyntax TableSource Source # | |
Defined in Database.Beam.Backend.SQL.AST | |
type Sql92TableSourceTableNameSyntax TableSource Source # | |
Defined in Database.Beam.Backend.SQL.AST |
Instances
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 # | |
Eq From Source # | |
type Sql92FromExpressionSyntax From Source # | |
Defined in Database.Beam.Backend.SQL.AST | |
type Sql92FromTableSourceSyntax From Source # | |
Defined in Database.Beam.Backend.SQL.AST |
Instances
data WindowFrame Source #
Instances
Show WindowFrame Source # | |
Defined in Database.Beam.Backend.SQL.AST showsPrec :: Int -> WindowFrame -> ShowS # show :: WindowFrame -> String # showList :: [WindowFrame] -> ShowS # | |
IsSql2003WindowFrameSyntax WindowFrame Source # | |
Eq WindowFrame Source # | |
Defined in Database.Beam.Backend.SQL.AST (==) :: WindowFrame -> WindowFrame -> Bool # (/=) :: WindowFrame -> WindowFrame -> Bool # | |
type Sql2003WindowFrameBoundsSyntax WindowFrame Source # | |
type Sql2003WindowFrameExpressionSyntax WindowFrame Source # | |
Defined in Database.Beam.Backend.SQL.AST | |
type Sql2003WindowFrameOrderingSyntax WindowFrame Source # | |
Defined in Database.Beam.Backend.SQL.AST |
data WindowFrameBounds Source #
Instances
Show WindowFrameBounds Source # | |
Defined in Database.Beam.Backend.SQL.AST showsPrec :: Int -> WindowFrameBounds -> ShowS # show :: WindowFrameBounds -> String # showList :: [WindowFrameBounds] -> ShowS # | |
IsSql2003WindowFrameBoundsSyntax WindowFrameBounds Source # | |
Eq WindowFrameBounds Source # | |
Defined in Database.Beam.Backend.SQL.AST (==) :: WindowFrameBounds -> WindowFrameBounds -> Bool # (/=) :: WindowFrameBounds -> WindowFrameBounds -> Bool # | |
type Sql2003WindowFrameBoundsBoundSyntax WindowFrameBounds Source # | |
data WindowFrameBound Source #
Instances
Show WindowFrameBound Source # | |
Defined in Database.Beam.Backend.SQL.AST showsPrec :: Int -> WindowFrameBound -> ShowS # show :: WindowFrameBound -> String # showList :: [WindowFrameBound] -> ShowS # | |
IsSql2003WindowFrameBoundSyntax WindowFrameBound Source # | |
Defined in Database.Beam.Backend.SQL.AST | |
Eq WindowFrameBound Source # | |
Defined in Database.Beam.Backend.SQL.AST (==) :: WindowFrameBound -> WindowFrameBound -> Bool # (/=) :: WindowFrameBound -> WindowFrameBound -> Bool # |