| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Database.Beam.Backend.SQL.AST
Description
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
Constructors
| SelectCommand Select | |
| InsertCommand Insert | |
| UpdateCommand Update | |
| DeleteCommand Delete |
Instances
| IsSql92Syntax Command Source # | |||||||||||||||||
Defined in Database.Beam.Backend.SQL.AST Associated Types
| |||||||||||||||||
| Show 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 | |||||||||||||||||
Constructors
| Select | |
Fields
| |
Instances
| IsSql92SelectSyntax Select Source # | |||||||||
Defined in Database.Beam.Backend.SQL.AST Associated Types
Methods selectStmt :: Sql92SelectSelectTableSyntax Select -> [Sql92SelectOrderingSyntax Select] -> Maybe Integer -> Maybe Integer -> Select Source # | |||||||||
| Show 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 #
Constructors
| SelectTable | |
Fields | |
| UnionTables Bool SelectTable SelectTable | |
| IntersectTables Bool SelectTable SelectTable | |
| ExceptTable Bool SelectTable SelectTable | |
Instances
Constructors
| Insert | |
Fields
| |
Instances
| IsSql92InsertSyntax Insert Source # | |||||||||
Defined in Database.Beam.Backend.SQL.AST Associated Types
Methods insertStmt :: Sql92InsertTableNameSyntax Insert -> [Text] -> Sql92InsertValuesSyntax Insert -> Insert Source # | |||||||||
| Show 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 #
Constructors
| InsertValues | |
Fields | |
| InsertSelect | |
Fields | |
Instances
| IsSql92InsertValuesSyntax InsertValues Source # | |||||||||
Defined in Database.Beam.Backend.SQL.AST Associated Types
| |||||||||
| Show InsertValues Source # | |||||||||
Defined in Database.Beam.Backend.SQL.AST Methods showsPrec :: Int -> InsertValues -> ShowS # show :: InsertValues -> String # showList :: [InsertValues] -> ShowS # | |||||||||
| Eq InsertValues Source # | |||||||||
Defined in Database.Beam.Backend.SQL.AST | |||||||||
| type Sql92InsertValuesExpressionSyntax InsertValues Source # | |||||||||
Defined in Database.Beam.Backend.SQL.AST | |||||||||
| type Sql92InsertValuesSelectSyntax InsertValues Source # | |||||||||
Defined in Database.Beam.Backend.SQL.AST | |||||||||
Constructors
| Update | |
Fields
| |
Instances
| IsSql92UpdateSyntax Update Source # | |||||||||||||
Defined in Database.Beam.Backend.SQL.AST Associated Types
| |||||||||||||
| Show Update Source # | |||||||||||||
| 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 | |||||||||||||
Constructors
| Delete | |
Fields | |
Instances
| IsSql92DeleteSyntax Delete Source # | |||||||||
Defined in Database.Beam.Backend.SQL.AST Associated Types
Methods deleteStmt :: Sql92DeleteTableNameSyntax Delete -> Maybe Text -> Maybe (Sql92DeleteExpressionSyntax Delete) -> Delete Source # | |||||||||
| Show Delete Source # | |||||||||
| 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 | |||||||||
Constructors
| QualifiedField Text Text | |
| UnqualifiedField Text |
data ComparatorQuantifier Source #
Constructors
| ComparatorQuantifierAny | |
| ComparatorQuantifierAll |
Instances
| IsSql92QuantifierSyntax ComparatorQuantifier Source # | |
Defined in Database.Beam.Backend.SQL.AST | |
| Show ComparatorQuantifier Source # | |
Defined in Database.Beam.Backend.SQL.AST Methods showsPrec :: Int -> ComparatorQuantifier -> ShowS # show :: ComparatorQuantifier -> String # showList :: [ComparatorQuantifier] -> ShowS # | |
| Eq ComparatorQuantifier Source # | |
Defined in Database.Beam.Backend.SQL.AST Methods (==) :: ComparatorQuantifier -> ComparatorQuantifier -> Bool # (/=) :: ComparatorQuantifier -> ComparatorQuantifier -> Bool # | |
data ExtractField Source #
Constructors
| ExtractFieldTimeZoneHour | |
| ExtractFieldTimeZoneMinute | |
| ExtractFieldDateTimeYear | |
| ExtractFieldDateTimeMonth | |
| ExtractFieldDateTimeDay | |
| ExtractFieldDateTimeHour | |
| ExtractFieldDateTimeMinute | |
| ExtractFieldDateTimeSecond |
Instances
| IsSql92ExtractFieldSyntax ExtractField Source # | |
Defined in Database.Beam.Backend.SQL.AST | |
| Show ExtractField Source # | |
Defined in Database.Beam.Backend.SQL.AST Methods showsPrec :: Int -> ExtractField -> ShowS # show :: ExtractField -> String # showList :: [ExtractField] -> ShowS # | |
| Eq ExtractField Source # | |
Defined in Database.Beam.Backend.SQL.AST | |
Constructors
| DataTypeChar Bool (Maybe Word) (Maybe Text) | |
| DataTypeNationalChar Bool (Maybe Word) | |
| DataTypeBit Bool (Maybe Word) | |
| DataTypeNumeric (Maybe (Word, Maybe Word)) | |
| DataTypeDecimal (Maybe (Word, Maybe Word)) | |
| DataTypeInteger | |
| DataTypeSmallInt | |
| DataTypeBigInt | |
| DataTypeFloat (Maybe Word) | |
| DataTypeReal | |
| DataTypeDoublePrecision | |
| DataTypeDate | |
| DataTypeTime (Maybe Word) Bool | |
| DataTypeTimeStamp (Maybe Word) Bool | |
| DataTypeInterval ExtractField | |
| DataTypeIntervalFromTo ExtractField ExtractField | |
| DataTypeBoolean | |
| DataTypeBinaryLargeObject | |
| DataTypeCharacterLargeObject | |
| DataTypeArray DataType Int | |
| DataTypeRow [(Text, DataType)] | |
| DataTypeDomain Text |
Instances
| IsSql2008BigIntDataTypeSyntax DataType Source # | |
Defined in Database.Beam.Backend.SQL.AST Methods | |
| IsSql92DataTypeSyntax DataType Source # | |
Defined in Database.Beam.Backend.SQL.AST Methods 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 # | |
| Show DataType Source # | |
| Eq DataType Source # | |
data SetQuantifier Source #
Constructors
| SetQuantifierAll | |
| SetQuantifierDistinct |
Instances
| IsSql92AggregationSetQuantifierSyntax SetQuantifier Source # | |
Defined in Database.Beam.Backend.SQL.AST | |
| Show SetQuantifier Source # | |
Defined in Database.Beam.Backend.SQL.AST Methods showsPrec :: Int -> SetQuantifier -> ShowS # show :: SetQuantifier -> String # showList :: [SetQuantifier] -> ShowS # | |
| Eq SetQuantifier Source # | |
Defined in Database.Beam.Backend.SQL.AST Methods (==) :: SetQuantifier -> SetQuantifier -> Bool # (/=) :: SetQuantifier -> SetQuantifier -> Bool # | |
data Expression Source #
Constructors
| ExpressionValue Value | |
| ExpressionDefault | |
| ExpressionRow [Expression] | |
| ExpressionIn Expression [Expression] | |
| ExpressionInSelect Expression Select | |
| ExpressionIsNull Expression | |
| ExpressionIsNotNull Expression | |
| ExpressionIsTrue Expression | |
| ExpressionIsNotTrue Expression | |
| ExpressionIsFalse Expression | |
| ExpressionIsNotFalse Expression | |
| ExpressionIsUnknown Expression | |
| ExpressionIsNotUnknown Expression | |
| ExpressionCase [(Expression, Expression)] Expression | |
| ExpressionCoalesce [Expression] | |
| ExpressionNullIf Expression Expression | |
| ExpressionFieldName FieldName | |
| ExpressionBetween Expression Expression Expression | |
| ExpressionBinOp Text Expression Expression | |
| ExpressionCompOp Text (Maybe ComparatorQuantifier) Expression Expression | |
| ExpressionUnOp Text Expression | |
| ExpressionPosition Expression Expression | |
| ExpressionCast Expression DataType | |
| ExpressionExtract ExtractField Expression | |
| ExpressionCharLength Expression | |
| ExpressionOctetLength Expression | |
| ExpressionBitLength Expression | |
| ExpressionAbs Expression | |
| ExpressionLower Expression | |
| ExpressionUpper Expression | |
| ExpressionTrim Expression | |
| ExpressionNamedFunction Text | |
| ExpressionFunctionCall Expression [Expression] | |
| ExpressionInstanceField Expression Text | |
| ExpressionRefField Expression Text | |
| ExpressionCountAll | |
| ExpressionAgg Text (Maybe SetQuantifier) [Expression] | |
| ExpressionBuiltinFunction Text [Expression] | |
| ExpressionSubquery Select | |
| ExpressionUnique Select | |
| ExpressionDistinct Select | |
| ExpressionExists Select | |
| ExpressionOver Expression WindowFrame | |
| ExpressionCurrentTimestamp |
Instances
| IsSql2003EnhancedNumericFunctionsAggregationExpressionSyntax Expression Source # | |||||||||||||||||||||||||
Defined in Database.Beam.Backend.SQL.AST Methods stddevPopE :: Maybe (Sql92AggregationSetQuantifierSyntax Expression) -> Expression -> Expression Source # stddevSampE :: Maybe (Sql92AggregationSetQuantifierSyntax Expression) -> Expression -> Expression Source # varPopE :: Maybe (Sql92AggregationSetQuantifierSyntax Expression) -> Expression -> Expression Source # varSampE :: Maybe (Sql92AggregationSetQuantifierSyntax Expression) -> Expression -> Expression Source # covarPopE :: Maybe (Sql92AggregationSetQuantifierSyntax Expression) -> Expression -> Expression -> Expression Source # covarSampE :: Maybe (Sql92AggregationSetQuantifierSyntax Expression) -> Expression -> Expression -> Expression Source # corrE :: Maybe (Sql92AggregationSetQuantifierSyntax Expression) -> Expression -> Expression -> Expression Source # regrSlopeE :: Maybe (Sql92AggregationSetQuantifierSyntax Expression) -> Expression -> Expression -> Expression Source # regrInterceptE :: Maybe (Sql92AggregationSetQuantifierSyntax Expression) -> Expression -> Expression -> Expression Source # regrCountE :: Maybe (Sql92AggregationSetQuantifierSyntax Expression) -> Expression -> Expression -> Expression Source # regrRSquaredE :: Maybe (Sql92AggregationSetQuantifierSyntax Expression) -> Expression -> Expression -> Expression Source # regrAvgXE :: Maybe (Sql92AggregationSetQuantifierSyntax Expression) -> Expression -> Expression -> Expression Source # regrAvgYE :: Maybe (Sql92AggregationSetQuantifierSyntax Expression) -> Expression -> Expression -> Expression Source # regrSXXE :: Maybe (Sql92AggregationSetQuantifierSyntax Expression) -> Expression -> Expression -> Expression Source # regrSXYE :: Maybe (Sql92AggregationSetQuantifierSyntax Expression) -> Expression -> Expression -> Expression Source # regrSYYE :: Maybe (Sql92AggregationSetQuantifierSyntax Expression) -> Expression -> Expression -> Expression Source # | |||||||||||||||||||||||||
| IsSql2003EnhancedNumericFunctionsExpressionSyntax Expression Source # | |||||||||||||||||||||||||
Defined in Database.Beam.Backend.SQL.AST Methods lnE :: Expression -> Expression Source # expE :: Expression -> Expression Source # sqrtE :: Expression -> Expression Source # ceilE :: Expression -> Expression Source # floorE :: Expression -> Expression Source # powerE :: Expression -> Expression -> Expression Source # | |||||||||||||||||||||||||
| IsSql2003ExpressionSyntax Expression Source # | |||||||||||||||||||||||||
Defined in Database.Beam.Backend.SQL.AST Associated Types
Methods overE :: Expression -> Sql2003ExpressionWindowFrameSyntax Expression -> Expression Source # | |||||||||||||||||||||||||
| IsSql2003LeadAndLagExpressionSyntax Expression Source # | |||||||||||||||||||||||||
Defined in Database.Beam.Backend.SQL.AST Methods leadE :: Expression -> Maybe Expression -> Maybe Expression -> Expression Source # lagE :: Expression -> Maybe Expression -> Maybe Expression -> Expression Source # | |||||||||||||||||||||||||
| IsSql2003NthValueExpressionSyntax Expression Source # | |||||||||||||||||||||||||
Defined in Database.Beam.Backend.SQL.AST Methods nthValueE :: Expression -> Expression -> Expression Source # | |||||||||||||||||||||||||
| IsSql2003NtileExpressionSyntax Expression Source # | |||||||||||||||||||||||||
Defined in Database.Beam.Backend.SQL.AST Methods ntileE :: Expression -> Expression Source # | |||||||||||||||||||||||||
| IsSql92AggregationExpressionSyntax Expression Source # | |||||||||||||||||||||||||
Defined in Database.Beam.Backend.SQL.AST Associated Types
Methods countAllE :: Expression Source # countE :: Maybe (Sql92AggregationSetQuantifierSyntax Expression) -> Expression -> Expression Source # avgE :: Maybe (Sql92AggregationSetQuantifierSyntax Expression) -> Expression -> Expression Source # maxE :: Maybe (Sql92AggregationSetQuantifierSyntax Expression) -> Expression -> Expression Source # minE :: Maybe (Sql92AggregationSetQuantifierSyntax Expression) -> Expression -> Expression Source # sumE :: Maybe (Sql92AggregationSetQuantifierSyntax Expression) -> Expression -> Expression Source # | |||||||||||||||||||||||||
| IsSql92ExpressionSyntax Expression Source # | |||||||||||||||||||||||||
Defined in Database.Beam.Backend.SQL.AST Associated Types
Methods valueE :: Sql92ExpressionValueSyntax Expression -> Expression Source # rowE :: [Expression] -> Expression Source # quantifierListE :: [Expression] -> Expression Source # coalesceE :: [Expression] -> Expression Source # caseE :: [(Expression, Expression)] -> Expression -> Expression Source # fieldE :: Sql92ExpressionFieldNameSyntax Expression -> Expression Source # betweenE :: Expression -> Expression -> Expression -> Expression Source # andE :: Expression -> Expression -> Expression Source # orE :: Expression -> Expression -> Expression Source # addE :: Expression -> Expression -> Expression Source # subE :: Expression -> Expression -> Expression Source # mulE :: Expression -> Expression -> Expression Source # divE :: Expression -> Expression -> Expression Source # likeE :: Expression -> Expression -> Expression Source # modE :: Expression -> Expression -> Expression Source # overlapsE :: Expression -> Expression -> Expression Source # nullIfE :: Expression -> Expression -> Expression Source # positionE :: Expression -> Expression -> Expression Source # eqE :: Maybe (Sql92ExpressionQuantifierSyntax Expression) -> Expression -> Expression -> Expression Source # neqE :: Maybe (Sql92ExpressionQuantifierSyntax Expression) -> Expression -> Expression -> Expression Source # ltE :: Maybe (Sql92ExpressionQuantifierSyntax Expression) -> Expression -> Expression -> Expression Source # gtE :: Maybe (Sql92ExpressionQuantifierSyntax Expression) -> Expression -> Expression -> Expression Source # leE :: Maybe (Sql92ExpressionQuantifierSyntax Expression) -> Expression -> Expression -> Expression Source # geE :: Maybe (Sql92ExpressionQuantifierSyntax Expression) -> Expression -> Expression -> Expression Source # eqMaybeE :: Expression -> Expression -> Expression -> Expression Source # neqMaybeE :: Expression -> Expression -> Expression -> Expression Source # castE :: Expression -> Sql92ExpressionCastTargetSyntax Expression -> Expression Source # notE :: Expression -> Expression Source # negateE :: Expression -> Expression Source # isNullE :: Expression -> Expression Source # isNotNullE :: Expression -> Expression Source # isTrueE :: Expression -> Expression Source # isNotTrueE :: Expression -> Expression Source # isFalseE :: Expression -> Expression Source # isNotFalseE :: Expression -> Expression Source # isUnknownE :: Expression -> Expression Source # isNotUnknownE :: Expression -> Expression Source # charLengthE :: Expression -> Expression Source # octetLengthE :: Expression -> Expression Source # bitLengthE :: Expression -> Expression Source # lowerE :: Expression -> Expression Source # upperE :: Expression -> Expression Source # trimE :: Expression -> Expression Source # absE :: Expression -> Expression Source # extractE :: Sql92ExpressionExtractFieldSyntax Expression -> Expression -> Expression Source # existsE :: Sql92ExpressionSelectSyntax Expression -> Expression Source # uniqueE :: Sql92ExpressionSelectSyntax Expression -> Expression Source # subqueryE :: Sql92ExpressionSelectSyntax Expression -> Expression Source # currentTimestampE :: Expression Source # defaultE :: Expression Source # inE :: Expression -> [Expression] -> Expression Source # inSelectE :: Expression -> Sql92ExpressionSelectSyntax Expression -> Expression Source # | |||||||||||||||||||||||||
| IsSql99AggregationExpressionSyntax Expression Source # | |||||||||||||||||||||||||
Defined in Database.Beam.Backend.SQL.AST Methods everyE :: Maybe (Sql92AggregationSetQuantifierSyntax Expression) -> Expression -> Expression Source # someE :: Maybe (Sql92AggregationSetQuantifierSyntax Expression) -> Expression -> Expression Source # anyE :: Maybe (Sql92AggregationSetQuantifierSyntax Expression) -> Expression -> Expression Source # | |||||||||||||||||||||||||
| IsSql99ExpressionSyntax Expression Source # | |||||||||||||||||||||||||
Defined in Database.Beam.Backend.SQL.AST Methods distinctE :: Sql92ExpressionSelectSyntax Expression -> Expression Source # similarToE :: Expression -> Expression -> Expression Source # instanceFieldE :: Expression -> Text -> Expression Source # refFieldE :: Expression -> Text -> Expression Source # | |||||||||||||||||||||||||
| IsSql99FunctionExpressionSyntax Expression Source # | |||||||||||||||||||||||||
Defined in Database.Beam.Backend.SQL.AST Methods functionCallE :: Expression -> [Expression] -> Expression Source # functionNameE :: Text -> Expression Source # | |||||||||||||||||||||||||
| Show Expression Source # | |||||||||||||||||||||||||
Defined in Database.Beam.Backend.SQL.AST Methods showsPrec :: Int -> Expression -> ShowS # show :: Expression -> String # showList :: [Expression] -> ShowS # | |||||||||||||||||||||||||
| Eq Expression Source # | |||||||||||||||||||||||||
Defined in Database.Beam.Backend.SQL.AST | |||||||||||||||||||||||||
| type Sql2003ExpressionWindowFrameSyntax Expression Source # | |||||||||||||||||||||||||
Defined in Database.Beam.Backend.SQL.AST | |||||||||||||||||||||||||
| type Sql92AggregationSetQuantifierSyntax Expression Source # | |||||||||||||||||||||||||
| type Sql92ExpressionCastTargetSyntax Expression Source # | |||||||||||||||||||||||||
Defined in Database.Beam.Backend.SQL.AST | |||||||||||||||||||||||||
| type Sql92ExpressionExtractFieldSyntax Expression Source # | |||||||||||||||||||||||||
Defined in Database.Beam.Backend.SQL.AST | |||||||||||||||||||||||||
| type Sql92ExpressionFieldNameSyntax Expression Source # | |||||||||||||||||||||||||
Defined in Database.Beam.Backend.SQL.AST | |||||||||||||||||||||||||
| type Sql92ExpressionQuantifierSyntax Expression Source # | |||||||||||||||||||||||||
| type Sql92ExpressionSelectSyntax Expression Source # | |||||||||||||||||||||||||
Defined in Database.Beam.Backend.SQL.AST | |||||||||||||||||||||||||
| type Sql92ExpressionValueSyntax Expression Source # | |||||||||||||||||||||||||
Defined in Database.Beam.Backend.SQL.AST | |||||||||||||||||||||||||
newtype Projection Source #
Constructors
| ProjExprs [(Expression, Maybe Text)] |
Instances
| IsSql92ProjectionSyntax Projection Source # | |||||
Defined in Database.Beam.Backend.SQL.AST Associated Types
Methods projExprs :: [(Sql92ProjectionExpressionSyntax Projection, Maybe Text)] -> Projection Source # | |||||
| Show Projection Source # | |||||
Defined in Database.Beam.Backend.SQL.AST Methods showsPrec :: Int -> Projection -> ShowS # show :: Projection -> String # showList :: [Projection] -> ShowS # | |||||
| Eq Projection Source # | |||||
Defined in Database.Beam.Backend.SQL.AST | |||||
| type Sql92ProjectionExpressionSyntax Projection Source # | |||||
Defined in Database.Beam.Backend.SQL.AST | |||||
Constructors
| OrderingAsc Expression | |
| OrderingDesc Expression |
Instances
| IsSql92OrderingSyntax Ordering Source # | |||||
Defined in Database.Beam.Backend.SQL.AST Associated Types
| |||||
| Show Ordering Source # | |||||
| Eq Ordering Source # | |||||
| type Sql92OrderingExpressionSyntax Ordering Source # | |||||
Defined in Database.Beam.Backend.SQL.AST | |||||
Constructors
| Grouping [Expression] |
Instances
| IsSql92GroupingSyntax Grouping Source # | |||||
Defined in Database.Beam.Backend.SQL.AST Associated Types
Methods groupByExpressions :: [Sql92GroupingExpressionSyntax Grouping] -> Grouping Source # | |||||
| Show Grouping Source # | |||||
| Eq Grouping Source # | |||||
| type Sql92GroupingExpressionSyntax Grouping Source # | |||||
Defined in Database.Beam.Backend.SQL.AST | |||||
data SchemaName Source #
Constructors
| SchemaName Text |
Instances
| IsSql92SchemaNameSyntax SchemaName Source # | |
Defined in Database.Beam.Backend.SQL.AST Methods schemaName :: Text -> SchemaName Source # | |
| Show SchemaName Source # | |
Defined in Database.Beam.Backend.SQL.AST Methods showsPrec :: Int -> SchemaName -> ShowS # show :: SchemaName -> String # showList :: [SchemaName] -> ShowS # | |
| Eq SchemaName Source # | |
Defined in Database.Beam.Backend.SQL.AST | |
| Ord SchemaName Source # | |
Defined in Database.Beam.Backend.SQL.AST Methods compare :: SchemaName -> SchemaName -> Ordering # (<) :: SchemaName -> SchemaName -> Bool # (<=) :: SchemaName -> SchemaName -> Bool # (>) :: SchemaName -> SchemaName -> Bool # (>=) :: SchemaName -> SchemaName -> Bool # max :: SchemaName -> SchemaName -> SchemaName # min :: SchemaName -> SchemaName -> SchemaName # | |
Instances
| IsSql92TableNameSyntax TableName Source # | |
| Show TableName Source # | |
| Eq TableName Source # | |
| Ord TableName Source # | |
data TableSource Source #
Constructors
| TableNamed TableName | |
| TableFromSubSelect Select | |
| TableFromValues [[Expression]] |
Instances
| IsSql92TableSourceSyntax TableSource Source # | |||||||||||||
Defined in Database.Beam.Backend.SQL.AST Associated Types
| |||||||||||||
| Show TableSource Source # | |||||||||||||
Defined in Database.Beam.Backend.SQL.AST Methods showsPrec :: Int -> TableSource -> ShowS # show :: TableSource -> String # showList :: [TableSource] -> ShowS # | |||||||||||||
| Eq TableSource Source # | |||||||||||||
Defined in Database.Beam.Backend.SQL.AST | |||||||||||||
| 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 | |||||||||||||
Constructors
| 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
| IsSql92FromSyntax From Source # | |||||||||
Defined in Database.Beam.Backend.SQL.AST Associated Types
Methods 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 # | |||||||||
| Show 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
| Show Value Source # | |
| Eq Value Source # | |
| HasSqlValueSyntax Value SqlNull Source # | |
Defined in Database.Beam.Backend.SQL.AST Methods sqlValueSyntax :: SqlNull -> Value Source # | |
| HasSqlValueSyntax Value ByteString Source # | |
Defined in Database.Beam.Backend.SQL.AST Methods sqlValueSyntax :: ByteString -> Value Source # | |
| HasSqlValueSyntax Value Int16 Source # | |
Defined in Database.Beam.Backend.SQL.AST Methods sqlValueSyntax :: Int16 -> Value Source # | |
| HasSqlValueSyntax Value Int32 Source # | |
Defined in Database.Beam.Backend.SQL.AST Methods sqlValueSyntax :: Int32 -> Value Source # | |
| HasSqlValueSyntax Value Int64 Source # | |
Defined in Database.Beam.Backend.SQL.AST Methods sqlValueSyntax :: Int64 -> Value Source # | |
| HasSqlValueSyntax Value Word16 Source # | |
Defined in Database.Beam.Backend.SQL.AST Methods sqlValueSyntax :: Word16 -> Value Source # | |
| HasSqlValueSyntax Value Word32 Source # | |
Defined in Database.Beam.Backend.SQL.AST Methods sqlValueSyntax :: Word32 -> Value Source # | |
| HasSqlValueSyntax Value Word64 Source # | |
Defined in Database.Beam.Backend.SQL.AST Methods sqlValueSyntax :: Word64 -> Value Source # | |
| HasSqlValueSyntax Value Text Source # | |
Defined in Database.Beam.Backend.SQL.AST Methods sqlValueSyntax :: Text -> Value Source # | |
| HasSqlValueSyntax Value Day Source # | |
Defined in Database.Beam.Backend.SQL.AST Methods sqlValueSyntax :: Day -> Value Source # | |
| HasSqlValueSyntax Value UTCTime Source # | |
Defined in Database.Beam.Backend.SQL.AST Methods sqlValueSyntax :: UTCTime -> Value Source # | |
| HasSqlValueSyntax Value LocalTime Source # | |
Defined in Database.Beam.Backend.SQL.AST Methods sqlValueSyntax :: LocalTime -> Value Source # | |
| HasSqlValueSyntax Value TimeOfDay Source # | |
Defined in Database.Beam.Backend.SQL.AST Methods sqlValueSyntax :: TimeOfDay -> Value Source # | |
| HasSqlValueSyntax Value Integer Source # | |
Defined in Database.Beam.Backend.SQL.AST Methods sqlValueSyntax :: Integer -> Value Source # | |
| HasSqlValueSyntax Value String Source # | |
Defined in Database.Beam.Backend.SQL.AST Methods sqlValueSyntax :: String -> Value Source # | |
| HasSqlValueSyntax Value Bool Source # | |
Defined in Database.Beam.Backend.SQL.AST Methods sqlValueSyntax :: Bool -> Value Source # | |
| HasSqlValueSyntax Value Double Source # | |
Defined in Database.Beam.Backend.SQL.AST Methods sqlValueSyntax :: Double -> Value Source # | |
| (TypeError (PreferExplicitSize Int Int32) :: Constraint) => HasSqlValueSyntax Value Int Source # | |
Defined in Database.Beam.Backend.SQL.AST Methods sqlValueSyntax :: Int -> Value Source # | |
| (TypeError (PreferExplicitSize Word Word32) :: Constraint) => HasSqlValueSyntax Value Word Source # | |
Defined in Database.Beam.Backend.SQL.AST Methods sqlValueSyntax :: Word -> Value Source # | |
| HasSqlValueSyntax Value x => HasSqlValueSyntax Value (Maybe x) Source # | |
Defined in Database.Beam.Backend.SQL.AST Methods sqlValueSyntax :: Maybe x -> Value Source # | |
data WindowFrame Source #
Constructors
| WindowFrame | |
Fields | |
Instances
| IsSql2003WindowFrameSyntax WindowFrame Source # | |||||||||||||
Defined in Database.Beam.Backend.SQL.AST Associated Types
| |||||||||||||
| Show WindowFrame Source # | |||||||||||||
Defined in Database.Beam.Backend.SQL.AST Methods showsPrec :: Int -> WindowFrame -> ShowS # show :: WindowFrame -> String # showList :: [WindowFrame] -> ShowS # | |||||||||||||
| Eq WindowFrame Source # | |||||||||||||
Defined in Database.Beam.Backend.SQL.AST | |||||||||||||
| 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 #
Constructors
| WindowFrameBounds | |
Fields | |
Instances
| IsSql2003WindowFrameBoundsSyntax WindowFrameBounds Source # | |||||
Defined in Database.Beam.Backend.SQL.AST Associated Types
| |||||
| Show WindowFrameBounds Source # | |||||
Defined in Database.Beam.Backend.SQL.AST Methods showsPrec :: Int -> WindowFrameBounds -> ShowS # show :: WindowFrameBounds -> String # showList :: [WindowFrameBounds] -> ShowS # | |||||
| Eq WindowFrameBounds Source # | |||||
Defined in Database.Beam.Backend.SQL.AST Methods (==) :: WindowFrameBounds -> WindowFrameBounds -> Bool # (/=) :: WindowFrameBounds -> WindowFrameBounds -> Bool # | |||||
| type Sql2003WindowFrameBoundsBoundSyntax WindowFrameBounds Source # | |||||
data WindowFrameBound Source #
Constructors
| WindowFrameUnbounded | |
| WindowFrameBoundNRows Int |
Instances
| IsSql2003WindowFrameBoundSyntax WindowFrameBound Source # | |
Defined in Database.Beam.Backend.SQL.AST Methods | |
| Show WindowFrameBound Source # | |
Defined in Database.Beam.Backend.SQL.AST Methods showsPrec :: Int -> WindowFrameBound -> ShowS # show :: WindowFrameBound -> String # showList :: [WindowFrameBound] -> ShowS # | |
| Eq WindowFrameBound Source # | |
Defined in Database.Beam.Backend.SQL.AST Methods (==) :: WindowFrameBound -> WindowFrameBound -> Bool # (/=) :: WindowFrameBound -> WindowFrameBound -> Bool # | |