Safe Haskell | None |
---|---|
Language | Haskell2010 |
PostgresqlSyntax.Ast
Contents
Description
Names for nodes mostly resemble the according definitions in the gram.y
original Postgres parser file, except for the cases where we can optimize on that.
For reasoning see the docs of the parsing module of this project.
Synopsis
- data PreparableStmt
- data InsertStmt = InsertStmt (Maybe WithClause) InsertTarget InsertRest (Maybe OnConflict) (Maybe ReturningClause)
- data InsertTarget = InsertTarget QualifiedName (Maybe ColId)
- data InsertRest
- data OverrideKind
- type InsertColumnList = NonEmpty InsertColumnItem
- data InsertColumnItem = InsertColumnItem ColId (Maybe Indirection)
- data OnConflict = OnConflict (Maybe ConfExpr) OnConflictDo
- data OnConflictDo
- data ConfExpr
- type ReturningClause = TargetList
- data UpdateStmt = UpdateStmt (Maybe WithClause) RelationExprOptAlias SetClauseList (Maybe FromClause) (Maybe WhereOrCurrentClause) (Maybe ReturningClause)
- type SetClauseList = NonEmpty SetClause
- data SetClause
- data SetTarget = SetTarget ColId (Maybe Indirection)
- type SetTargetList = NonEmpty SetTarget
- data DeleteStmt = DeleteStmt (Maybe WithClause) RelationExprOptAlias (Maybe UsingClause) (Maybe WhereOrCurrentClause) (Maybe ReturningClause)
- type UsingClause = FromList
- type SelectStmt = Either SelectNoParens SelectWithParens
- data SelectWithParens
- data SelectNoParens = SelectNoParens (Maybe WithClause) SelectClause (Maybe SortClause) (Maybe SelectLimit) (Maybe ForLockingClause)
- type SelectClause = Either SimpleSelect SelectWithParens
- data SimpleSelect
- data Targeting
- type TargetList = NonEmpty TargetEl
- data TargetEl
- data SelectBinOp
- data WithClause = WithClause Bool (NonEmpty CommonTableExpr)
- data CommonTableExpr = CommonTableExpr Ident (Maybe (NonEmpty Ident)) (Maybe Bool) PreparableStmt
- type IntoClause = OptTempTableName
- data OptTempTableName
- = TemporaryOptTempTableName Bool QualifiedName
- | TempOptTempTableName Bool QualifiedName
- | LocalTemporaryOptTempTableName Bool QualifiedName
- | LocalTempOptTempTableName Bool QualifiedName
- | GlobalTemporaryOptTempTableName Bool QualifiedName
- | GlobalTempOptTempTableName Bool QualifiedName
- | UnloggedOptTempTableName Bool QualifiedName
- | TableOptTempTableName QualifiedName
- | QualifedOptTempTableName QualifiedName
- type FromClause = NonEmpty TableRef
- type GroupClause = NonEmpty GroupByItem
- data GroupByItem
- type HavingClause = AExpr
- type WindowClause = NonEmpty WindowDefinition
- data WindowDefinition = WindowDefinition Ident WindowSpecification
- data WindowSpecification = WindowSpecification (Maybe ExistingWindowName) (Maybe PartitionClause) (Maybe SortClause) (Maybe FrameClause)
- type ExistingWindowName = ColId
- type PartitionClause = ExprList
- data FrameClause = FrameClause FrameClauseMode FrameExtent (Maybe WindowExclusionClause)
- data FrameClauseMode
- data FrameExtent
- data FrameBound
- data WindowExclusionClause
- type ValuesClause = NonEmpty ExprList
- type SortClause = NonEmpty SortBy
- data SortBy
- data SelectLimit
- data LimitClause
- data SelectFetchFirstValue
- data SelectLimitValue
- data OffsetClause
- data ForLockingClause
- data ForLockingItem = ForLockingItem ForLockingStrength (Maybe (NonEmpty QualifiedName)) (Maybe Bool)
- data ForLockingStrength
- type FromList = NonEmpty TableRef
- data TableRef
- data RelationExpr
- data RelationExprOptAlias = RelationExprOptAlias RelationExpr (Maybe (Bool, ColId))
- data TablesampleClause = TablesampleClause FuncName ExprList (Maybe RepeatableClause)
- type RepeatableClause = AExpr
- data FuncTable
- data RowsfromItem = RowsfromItem FuncExprWindowless (Maybe ColDefList)
- type RowsfromList = NonEmpty RowsfromItem
- type ColDefList = TableFuncElementList
- type OptOrdinality = Bool
- type TableFuncElementList = NonEmpty TableFuncElement
- data TableFuncElement = TableFuncElement ColId Typename (Maybe CollateClause)
- type CollateClause = AnyName
- data AliasClause = AliasClause Bool ColId (Maybe NameList)
- data FuncAliasClause
- data JoinedTable
- data JoinMeth
- data JoinType
- data JoinQual
- type WhereClause = AExpr
- data WhereOrCurrentClause
- type ExprList = NonEmpty AExpr
- data AExpr
- = CExprAExpr CExpr
- | TypecastAExpr AExpr Typename
- | CollateAExpr AExpr AnyName
- | AtTimeZoneAExpr AExpr AExpr
- | PlusAExpr AExpr
- | MinusAExpr AExpr
- | SymbolicBinOpAExpr AExpr SymbolicExprBinOp AExpr
- | PrefixQualOpAExpr QualOp AExpr
- | SuffixQualOpAExpr AExpr QualOp
- | AndAExpr AExpr AExpr
- | OrAExpr AExpr AExpr
- | NotAExpr AExpr
- | VerbalExprBinOpAExpr AExpr Bool VerbalExprBinOp AExpr (Maybe AExpr)
- | ReversableOpAExpr AExpr Bool AExprReversableOp
- | IsnullAExpr AExpr
- | NotnullAExpr AExpr
- | OverlapsAExpr Row Row
- | SubqueryAExpr AExpr SubqueryOp SubType (Either SelectWithParens AExpr)
- | UniqueAExpr SelectWithParens
- | DefaultAExpr
- data BExpr
- data CExpr
- = ColumnrefCExpr Columnref
- | AexprConstCExpr AexprConst
- | ParamCExpr Int (Maybe Indirection)
- | InParensCExpr AExpr (Maybe Indirection)
- | CaseCExpr CaseExpr
- | FuncCExpr FuncExpr
- | SelectWithParensCExpr SelectWithParens (Maybe Indirection)
- | ExistsCExpr SelectWithParens
- | ArrayCExpr (Either SelectWithParens ArrayExpr)
- | ExplicitRowCExpr ExplicitRow
- | ImplicitRowCExpr ImplicitRow
- | GroupingCExpr ExprList
- data InExpr
- data SubType
- data ArrayExpr
- type ArrayExprList = NonEmpty ArrayExpr
- data Row
- type ExplicitRow = Maybe ExprList
- data ImplicitRow = ImplicitRow ExprList AExpr
- data FuncExpr
- data FuncExprWindowless
- type WithinGroupClause = SortClause
- type FilterClause = AExpr
- data OverClause
- data FuncExprCommonSubexpr
- = CollationForFuncExprCommonSubexpr AExpr
- | CurrentDateFuncExprCommonSubexpr
- | CurrentTimeFuncExprCommonSubexpr (Maybe Int64)
- | CurrentTimestampFuncExprCommonSubexpr (Maybe Int64)
- | LocalTimeFuncExprCommonSubexpr (Maybe Int64)
- | LocalTimestampFuncExprCommonSubexpr (Maybe Int64)
- | CurrentRoleFuncExprCommonSubexpr
- | CurrentUserFuncExprCommonSubexpr
- | SessionUserFuncExprCommonSubexpr
- | UserFuncExprCommonSubexpr
- | CurrentCatalogFuncExprCommonSubexpr
- | CurrentSchemaFuncExprCommonSubexpr
- | CastFuncExprCommonSubexpr AExpr Typename
- | ExtractFuncExprCommonSubexpr (Maybe ExtractList)
- | OverlayFuncExprCommonSubexpr OverlayList
- | PositionFuncExprCommonSubexpr (Maybe PositionList)
- | SubstringFuncExprCommonSubexpr (Maybe SubstrList)
- | TreatFuncExprCommonSubexpr AExpr Typename
- | TrimFuncExprCommonSubexpr (Maybe TrimModifier) TrimList
- | NullIfFuncExprCommonSubexpr AExpr AExpr
- | CoalesceFuncExprCommonSubexpr ExprList
- | GreatestFuncExprCommonSubexpr ExprList
- | LeastFuncExprCommonSubexpr ExprList
- data ExtractList = ExtractList ExtractArg AExpr
- data ExtractArg
- data OverlayList = OverlayList AExpr OverlayPlacing SubstrFrom (Maybe SubstrFor)
- type OverlayPlacing = AExpr
- data PositionList = PositionList BExpr BExpr
- data SubstrList
- data SubstrListFromFor
- type SubstrFrom = AExpr
- type SubstrFor = AExpr
- data TrimModifier
- data TrimList
- data CaseExpr = CaseExpr (Maybe CaseArg) WhenClauseList (Maybe CaseDefault)
- type CaseArg = AExpr
- type WhenClauseList = NonEmpty WhenClause
- type CaseDefault = AExpr
- data WhenClause = WhenClause AExpr AExpr
- data FuncApplication = FuncApplication FuncName (Maybe FuncApplicationParams)
- data FuncApplicationParams
- data FuncArgExpr
- type Sconst = Text
- type Iconst = Int64
- type Fconst = Double
- type Bconst = Text
- type Xconst = Text
- data AexprConst
- = IAexprConst Iconst
- | FAexprConst Fconst
- | SAexprConst Sconst
- | BAexprConst Bconst
- | XAexprConst Xconst
- | FuncAexprConst FuncName (Maybe FuncConstArgs) Sconst
- | ConstTypenameAexprConst ConstTypename Sconst
- | StringIntervalAexprConst Sconst (Maybe Interval)
- | IntIntervalAexprConst Iconst Sconst
- | BoolAexprConst Bool
- | NullAexprConst
- data FuncConstArgs = FuncConstArgs (NonEmpty FuncArgExpr) (Maybe SortClause)
- data ConstTypename
- data Numeric
- data Bit = Bit OptVarying (Maybe ExprList)
- type ConstBit = Bit
- type OptVarying = Bool
- data ConstCharacter = ConstCharacter Character (Maybe Int64)
- data Character
- data ConstDatetime
- type Timezone = Bool
- data Interval
- type IntervalSecond = Maybe Int64
- data Ident
- type ColId = Ident
- type ColLabel = Ident
- type Name = ColId
- type NameList = NonEmpty Name
- type CursorName = Name
- data Columnref = Columnref ColId (Maybe Indirection)
- data AnyName = AnyName ColId (Maybe Attrs)
- data FuncName
- type TypeFunctionName = Ident
- data QualifiedName
- type Indirection = NonEmpty IndirectionEl
- data IndirectionEl
- data Typename = Typename Bool SimpleTypename Bool (Maybe (TypenameArrayDimensions, Bool))
- data TypenameArrayDimensions
- type ArrayBounds = NonEmpty (Maybe Iconst)
- data SimpleTypename
- data GenericType = GenericType TypeFunctionName (Maybe Attrs) (Maybe TypeModifiers)
- type Attrs = NonEmpty AttrName
- type AttrName = ColLabel
- type TypeModifiers = ExprList
- type TypeList = NonEmpty Typename
- data QualOp
- data QualAllOp
- type Op = Text
- data AnyOperator
- data AllOp
- data MathOp
- data SymbolicExprBinOp
- data VerbalExprBinOp
- data AExprReversableOp
- = NullAExprReversableOp
- | TrueAExprReversableOp
- | FalseAExprReversableOp
- | UnknownAExprReversableOp
- | DistinctFromAExprReversableOp AExpr
- | OfAExprReversableOp TypeList
- | BetweenAExprReversableOp Bool BExpr AExpr
- | BetweenSymmetricAExprReversableOp BExpr AExpr
- | InAExprReversableOp InExpr
- | DocumentAExprReversableOp
- data BExprIsOp
- data SubqueryOp
- type IndexParams = NonEmpty IndexElem
- data IndexElem = IndexElem IndexElemDef (Maybe Collate) (Maybe Class) (Maybe AscDesc) (Maybe NullsOrder)
- data IndexElemDef
- type Collate = AnyName
- type Class = AnyName
- data AscDesc
- data NullsOrder
Statement
data PreparableStmt Source #
Constructors
SelectPreparableStmt SelectStmt | |
InsertPreparableStmt InsertStmt | |
UpdatePreparableStmt UpdateStmt | |
DeletePreparableStmt DeleteStmt |
Instances
Insert
data InsertStmt Source #
Constructors
InsertStmt (Maybe WithClause) InsertTarget InsertRest (Maybe OnConflict) (Maybe ReturningClause) |
Instances
data InsertTarget Source #
Constructors
InsertTarget QualifiedName (Maybe ColId) |
Instances
data InsertRest Source #
Constructors
SelectInsertRest (Maybe InsertColumnList) (Maybe OverrideKind) SelectStmt | |
DefaultValuesInsertRest |
Instances
data OverrideKind Source #
Constructors
UserOverrideKind | |
SystemOverrideKind |
Instances
data InsertColumnItem Source #
Constructors
InsertColumnItem ColId (Maybe Indirection) |
Instances
data OnConflict Source #
Constructors
OnConflict (Maybe ConfExpr) OnConflictDo |
Instances
data OnConflictDo Source #
Constructors
UpdateOnConflictDo SetClauseList (Maybe WhereClause) | |
NothingOnConflictDo |
Instances
Constructors
WhereConfExpr IndexParams (Maybe WhereClause) | |
ConstraintConfExpr Name |
Instances
Eq ConfExpr Source # | |
Ord ConfExpr Source # | |
Defined in PostgresqlSyntax.Ast | |
Show ConfExpr Source # | |
Generic ConfExpr Source # | |
type Rep ConfExpr Source # | |
Defined in PostgresqlSyntax.Ast type Rep ConfExpr = D1 (MetaData "ConfExpr" "PostgresqlSyntax.Ast" "postgresql-syntax-0.3-6sU7qmpYmFEERprbpTYw19" False) (C1 (MetaCons "WhereConfExpr" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 IndexParams) :*: S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe WhereClause))) :+: C1 (MetaCons "ConstraintConfExpr" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Name))) |
type ReturningClause = TargetList Source #
Update
data UpdateStmt Source #
Constructors
UpdateStmt (Maybe WithClause) RelationExprOptAlias SetClauseList (Maybe FromClause) (Maybe WhereOrCurrentClause) (Maybe ReturningClause) |
Instances
type SetClauseList = NonEmpty SetClause Source #
Constructors
TargetSetClause SetTarget AExpr | |
TargetListSetClause SetTargetList AExpr |
Instances
Eq SetClause Source # | |
Ord SetClause Source # | |
Show SetClause Source # | |
Generic SetClause Source # | |
type Rep SetClause Source # | |
Defined in PostgresqlSyntax.Ast type Rep SetClause = D1 (MetaData "SetClause" "PostgresqlSyntax.Ast" "postgresql-syntax-0.3-6sU7qmpYmFEERprbpTYw19" False) (C1 (MetaCons "TargetSetClause" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 SetTarget) :*: S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 AExpr)) :+: C1 (MetaCons "TargetListSetClause" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 SetTargetList) :*: S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 AExpr))) |
Constructors
SetTarget ColId (Maybe Indirection) |
Instances
Eq SetTarget Source # | |
Ord SetTarget Source # | |
Show SetTarget Source # | |
Generic SetTarget Source # | |
type Rep SetTarget Source # | |
Defined in PostgresqlSyntax.Ast type Rep SetTarget = D1 (MetaData "SetTarget" "PostgresqlSyntax.Ast" "postgresql-syntax-0.3-6sU7qmpYmFEERprbpTYw19" False) (C1 (MetaCons "SetTarget" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 ColId) :*: S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Indirection)))) |
type SetTargetList = NonEmpty SetTarget Source #
Delete
data DeleteStmt Source #
Constructors
DeleteStmt (Maybe WithClause) RelationExprOptAlias (Maybe UsingClause) (Maybe WhereOrCurrentClause) (Maybe ReturningClause) |
Instances
type UsingClause = FromList Source #
Select
data SelectWithParens Source #
Instances
data SelectNoParens Source #
Covers the following cases:
select_no_parens: | simple_select | select_clause sort_clause | select_clause opt_sort_clause for_locking_clause opt_select_limit | select_clause opt_sort_clause select_limit opt_for_locking_clause | with_clause select_clause | with_clause select_clause sort_clause | with_clause select_clause opt_sort_clause for_locking_clause opt_select_limit | with_clause select_clause opt_sort_clause select_limit opt_for_locking_clause
Constructors
SelectNoParens (Maybe WithClause) SelectClause (Maybe SortClause) (Maybe SelectLimit) (Maybe ForLockingClause) |
Instances
type SelectClause = Either SimpleSelect SelectWithParens Source #
select_clause: | simple_select | select_with_parens
data SimpleSelect Source #
Constructors
Instances
Covers these parts of spec:
simple_select: | SELECT opt_all_clause opt_target_list into_clause from_clause where_clause group_clause having_clause window_clause | SELECT distinct_clause target_list into_clause from_clause where_clause group_clause having_clause window_clause distinct_clause: | DISTINCT | DISTINCT ON '(' expr_list ')'
Constructors
NormalTargeting TargetList | |
AllTargeting (Maybe TargetList) | |
DistinctTargeting (Maybe ExprList) TargetList |
Instances
Eq Targeting Source # | |
Ord Targeting Source # | |
Show Targeting Source # | |
Generic Targeting Source # | |
type Rep Targeting Source # | |
Defined in PostgresqlSyntax.Ast type Rep Targeting = D1 (MetaData "Targeting" "PostgresqlSyntax.Ast" "postgresql-syntax-0.3-6sU7qmpYmFEERprbpTYw19" False) (C1 (MetaCons "NormalTargeting" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 TargetList)) :+: (C1 (MetaCons "AllTargeting" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe TargetList))) :+: C1 (MetaCons "DistinctTargeting" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe ExprList)) :*: S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 TargetList)))) |
type TargetList = NonEmpty TargetEl Source #
Constructors
AliasedExprTargetEl AExpr Ident | |
ImplicitlyAliasedExprTargetEl AExpr Ident | |
ExprTargetEl AExpr | |
AsteriskTargetEl |
Instances
data SelectBinOp Source #
Constructors
UnionSelectBinOp | |
IntersectSelectBinOp | |
ExceptSelectBinOp |
Instances
data WithClause Source #
Constructors
WithClause Bool (NonEmpty CommonTableExpr) |
Instances
data CommonTableExpr Source #
Constructors
CommonTableExpr Ident (Maybe (NonEmpty Ident)) (Maybe Bool) PreparableStmt |
Instances
type IntoClause = OptTempTableName Source #
data OptTempTableName Source #
Constructors
Instances
type FromClause = NonEmpty TableRef Source #
type GroupClause = NonEmpty GroupByItem Source #
data GroupByItem Source #
Constructors
ExprGroupByItem AExpr | |
EmptyGroupingSetGroupByItem | |
RollupGroupByItem ExprList | |
CubeGroupByItem ExprList | |
GroupingSetsGroupByItem (NonEmpty GroupByItem) |
Instances
type HavingClause = AExpr Source #
having_clause: | HAVING a_expr | EMPTY
type WindowClause = NonEmpty WindowDefinition Source #
window_clause: | WINDOW window_definition_list | EMPTY window_definition_list: | window_definition | window_definition_list ',' window_definition
data WindowDefinition Source #
window_definition: | ColId AS window_specification
Constructors
WindowDefinition Ident WindowSpecification |
Instances
data WindowSpecification Source #
window_specification: | '(' opt_existing_window_name opt_partition_clause opt_sort_clause opt_frame_clause ')' opt_existing_window_name: | ColId | EMPTY opt_partition_clause: | PARTITION BY expr_list | EMPTY
Constructors
WindowSpecification (Maybe ExistingWindowName) (Maybe PartitionClause) (Maybe SortClause) (Maybe FrameClause) |
Instances
type ExistingWindowName = ColId Source #
type PartitionClause = ExprList Source #
data FrameClause Source #
Constructors
FrameClause FrameClauseMode FrameExtent (Maybe WindowExclusionClause) |
Instances
data FrameClauseMode Source #
Instances
data FrameExtent Source #
Instances
data FrameBound Source #
Constructors
UnboundedPrecedingFrameBound | |
UnboundedFollowingFrameBound | |
CurrentRowFrameBound | |
PrecedingFrameBound AExpr | |
FollowingFrameBound AExpr |
Instances
data WindowExclusionClause Source #
Constructors
CurrentRowWindowExclusionClause | |
GroupWindowExclusionClause | |
TiesWindowExclusionClause | |
NoOthersWindowExclusionClause |
Instances
type ValuesClause = NonEmpty ExprList Source #
type SortClause = NonEmpty SortBy Source #
sort_clause: | ORDER BY sortby_list
sortby_list: | sortby | sortby_list ',' sortby
Constructors
UsingSortBy AExpr QualAllOp (Maybe NullsOrder) | |
AscDescSortBy AExpr (Maybe AscDesc) (Maybe NullsOrder) |
Instances
data SelectLimit Source #
Constructors
LimitOffsetSelectLimit LimitClause OffsetClause | |
OffsetLimitSelectLimit OffsetClause LimitClause | |
LimitSelectLimit LimitClause | |
OffsetSelectLimit OffsetClause |
Instances
data LimitClause Source #
Constructors
LimitLimitClause SelectLimitValue (Maybe AExpr) | |
FetchOnlyLimitClause Bool (Maybe SelectFetchFirstValue) Bool |
Instances
data SelectFetchFirstValue Source #
Constructors
ExprSelectFetchFirstValue CExpr | |
NumSelectFetchFirstValue Bool (Either Int64 Double) |
Instances
data SelectLimitValue Source #
Constructors
ExprSelectLimitValue AExpr | |
AllSelectLimitValue |
Instances
data OffsetClause Source #
Instances
For Locking
data ForLockingClause Source #
Constructors
ItemsForLockingClause (NonEmpty ForLockingItem) | |
ReadOnlyForLockingClause |
Instances
data ForLockingItem Source #
Constructors
ForLockingItem ForLockingStrength (Maybe (NonEmpty QualifiedName)) (Maybe Bool) |
Instances
data ForLockingStrength Source #
Constructors
UpdateForLockingStrength | |
NoKeyUpdateForLockingStrength | |
ShareForLockingStrength | |
KeyForLockingStrength |
Instances
Table references and joining
Constructors
Instances
data RelationExpr Source #
Constructors
SimpleRelationExpr QualifiedName Bool | |
OnlyRelationExpr QualifiedName Bool |
Instances
data RelationExprOptAlias Source #
Constructors
RelationExprOptAlias RelationExpr (Maybe (Bool, ColId)) |
Instances
data TablesampleClause Source #
Constructors
TablesampleClause FuncName ExprList (Maybe RepeatableClause) |
Instances
type RepeatableClause = AExpr Source #
Constructors
FuncExprFuncTable FuncExprWindowless OptOrdinality | |
RowsFromFuncTable RowsfromList OptOrdinality |
Instances
Eq FuncTable Source # | |
Ord FuncTable Source # | |
Show FuncTable Source # | |
Generic FuncTable Source # | |
type Rep FuncTable Source # | |
Defined in PostgresqlSyntax.Ast type Rep FuncTable = D1 (MetaData "FuncTable" "PostgresqlSyntax.Ast" "postgresql-syntax-0.3-6sU7qmpYmFEERprbpTYw19" False) (C1 (MetaCons "FuncExprFuncTable" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 FuncExprWindowless) :*: S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 OptOrdinality)) :+: C1 (MetaCons "RowsFromFuncTable" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 RowsfromList) :*: S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 OptOrdinality))) |
data RowsfromItem Source #
Constructors
RowsfromItem FuncExprWindowless (Maybe ColDefList) |
Instances
type RowsfromList = NonEmpty RowsfromItem Source #
type ColDefList = TableFuncElementList Source #
type OptOrdinality = Bool Source #
data TableFuncElement Source #
Constructors
TableFuncElement ColId Typename (Maybe CollateClause) |
Instances
type CollateClause = AnyName Source #
data AliasClause Source #
Constructors
AliasClause Bool ColId (Maybe NameList) |
Instances
data FuncAliasClause Source #
Constructors
AliasFuncAliasClause AliasClause | |
AsFuncAliasClause TableFuncElementList | |
AsColIdFuncAliasClause ColId TableFuncElementList | |
ColIdFuncAliasClause ColId TableFuncElementList |
Instances
data JoinedTable Source #
Instances
Constructors
CrossJoinMeth | |
QualJoinMeth (Maybe JoinType) JoinQual | |
NaturalJoinMeth (Maybe JoinType) |
Instances
Eq JoinMeth Source # | |
Ord JoinMeth Source # | |
Defined in PostgresqlSyntax.Ast | |
Show JoinMeth Source # | |
Generic JoinMeth Source # | |
type Rep JoinMeth Source # | |
Defined in PostgresqlSyntax.Ast type Rep JoinMeth = D1 (MetaData "JoinMeth" "PostgresqlSyntax.Ast" "postgresql-syntax-0.3-6sU7qmpYmFEERprbpTYw19" False) (C1 (MetaCons "CrossJoinMeth" PrefixI False) (U1 :: Type -> Type) :+: (C1 (MetaCons "QualJoinMeth" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe JoinType)) :*: S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 JoinQual)) :+: C1 (MetaCons "NaturalJoinMeth" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe JoinType))))) |
Constructors
FullJoinType Bool | |
LeftJoinType Bool | |
RightJoinType Bool | |
InnerJoinType |
Instances
Eq JoinType Source # | |
Ord JoinType Source # | |
Defined in PostgresqlSyntax.Ast | |
Show JoinType Source # | |
Generic JoinType Source # | |
type Rep JoinType Source # | |
Defined in PostgresqlSyntax.Ast type Rep JoinType = D1 (MetaData "JoinType" "PostgresqlSyntax.Ast" "postgresql-syntax-0.3-6sU7qmpYmFEERprbpTYw19" False) ((C1 (MetaCons "FullJoinType" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Bool)) :+: C1 (MetaCons "LeftJoinType" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Bool))) :+: (C1 (MetaCons "RightJoinType" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Bool)) :+: C1 (MetaCons "InnerJoinType" PrefixI False) (U1 :: Type -> Type))) |
Constructors
UsingJoinQual (NonEmpty Ident) | |
OnJoinQual AExpr |
Instances
Eq JoinQual Source # | |
Ord JoinQual Source # | |
Defined in PostgresqlSyntax.Ast | |
Show JoinQual Source # | |
Generic JoinQual Source # | |
type Rep JoinQual Source # | |
Defined in PostgresqlSyntax.Ast type Rep JoinQual = D1 (MetaData "JoinQual" "PostgresqlSyntax.Ast" "postgresql-syntax-0.3-6sU7qmpYmFEERprbpTYw19" False) (C1 (MetaCons "UsingJoinQual" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (NonEmpty Ident))) :+: C1 (MetaCons "OnJoinQual" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 AExpr))) |
Where
type WhereClause = AExpr Source #
data WhereOrCurrentClause Source #
Instances
Expression
Constructors
Instances
Constructors
CExprBExpr CExpr | |
TypecastBExpr BExpr Typename | |
PlusBExpr BExpr | |
MinusBExpr BExpr | |
SymbolicBinOpBExpr BExpr SymbolicExprBinOp BExpr | |
QualOpBExpr QualOp BExpr | |
IsOpBExpr BExpr Bool BExprIsOp |
Instances
Constructors
Instances
Constructors
SelectInExpr SelectWithParens | |
ExprListInExpr ExprList |
Instances
Eq InExpr Source # | |
Ord InExpr Source # | |
Show InExpr Source # | |
Generic InExpr Source # | |
type Rep InExpr Source # | |
Defined in PostgresqlSyntax.Ast type Rep InExpr = D1 (MetaData "InExpr" "PostgresqlSyntax.Ast" "postgresql-syntax-0.3-6sU7qmpYmFEERprbpTYw19" False) (C1 (MetaCons "SelectInExpr" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 SelectWithParens)) :+: C1 (MetaCons "ExprListInExpr" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 ExprList))) |
Constructors
AnySubType | |
SomeSubType | |
AllSubType |
Instances
Bounded SubType Source # | |
Enum SubType Source # | |
Eq SubType Source # | |
Ord SubType Source # | |
Defined in PostgresqlSyntax.Ast | |
Show SubType Source # | |
Generic SubType Source # | |
type Rep SubType Source # | |
Defined in PostgresqlSyntax.Ast type Rep SubType = D1 (MetaData "SubType" "PostgresqlSyntax.Ast" "postgresql-syntax-0.3-6sU7qmpYmFEERprbpTYw19" False) (C1 (MetaCons "AnySubType" PrefixI False) (U1 :: Type -> Type) :+: (C1 (MetaCons "SomeSubType" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "AllSubType" PrefixI False) (U1 :: Type -> Type))) |
Instances
Eq ArrayExpr Source # | |
Ord ArrayExpr Source # | |
Show ArrayExpr Source # | |
Generic ArrayExpr Source # | |
type Rep ArrayExpr Source # | |
Defined in PostgresqlSyntax.Ast type Rep ArrayExpr = D1 (MetaData "ArrayExpr" "PostgresqlSyntax.Ast" "postgresql-syntax-0.3-6sU7qmpYmFEERprbpTYw19" False) (C1 (MetaCons "ExprListArrayExpr" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 ExprList)) :+: (C1 (MetaCons "ArrayExprListArrayExpr" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 ArrayExprList)) :+: C1 (MetaCons "EmptyArrayExpr" PrefixI False) (U1 :: Type -> Type))) |
type ArrayExprList = NonEmpty ArrayExpr Source #
Constructors
ExplicitRowRow ExplicitRow | |
ImplicitRowRow ImplicitRow |
Instances
Eq Row Source # | |
Ord Row Source # | |
Show Row Source # | |
Generic Row Source # | |
type Rep Row Source # | |
Defined in PostgresqlSyntax.Ast type Rep Row = D1 (MetaData "Row" "PostgresqlSyntax.Ast" "postgresql-syntax-0.3-6sU7qmpYmFEERprbpTYw19" False) (C1 (MetaCons "ExplicitRowRow" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 ExplicitRow)) :+: C1 (MetaCons "ImplicitRowRow" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 ImplicitRow))) |
type ExplicitRow = Maybe ExprList Source #
data ImplicitRow Source #
Constructors
ImplicitRow ExprList AExpr |
Instances
Constructors
ApplicationFuncExpr FuncApplication (Maybe WithinGroupClause) (Maybe FilterClause) (Maybe OverClause) | |
SubexprFuncExpr FuncExprCommonSubexpr |
Instances
data FuncExprWindowless Source #
Constructors
ApplicationFuncExprWindowless FuncApplication | |
CommonSubexprFuncExprWindowless FuncExprCommonSubexpr |
Instances
type WithinGroupClause = SortClause Source #
type FilterClause = AExpr Source #
data OverClause Source #
Constructors
WindowOverClause WindowSpecification | |
ColIdOverClause ColId |
Instances
data FuncExprCommonSubexpr Source #
Constructors
Instances
data ExtractList Source #
Constructors
ExtractList ExtractArg AExpr |
Instances
data ExtractArg Source #
Constructors
IdentExtractArg Ident | |
YearExtractArg | |
MonthExtractArg | |
DayExtractArg | |
HourExtractArg | |
MinuteExtractArg | |
SecondExtractArg | |
SconstExtractArg Sconst |
Instances
data OverlayList Source #
Constructors
OverlayList AExpr OverlayPlacing SubstrFrom (Maybe SubstrFor) |
Instances
type OverlayPlacing = AExpr Source #
data PositionList Source #
Constructors
PositionList BExpr BExpr |
Instances
data SubstrList Source #
Constructors
ExprSubstrList AExpr SubstrListFromFor | |
ExprListSubstrList ExprList |
Instances
data SubstrListFromFor Source #
Constructors
FromForSubstrListFromFor SubstrFrom SubstrFor | |
ForFromSubstrListFromFor SubstrFor SubstrFrom | |
FromSubstrListFromFor SubstrFrom | |
ForSubstrListFromFor SubstrFor |
Instances
type SubstrFrom = AExpr Source #
data TrimModifier Source #
Constructors
BothTrimModifier | |
LeadingTrimModifier | |
TrailingTrimModifier |
Instances
Constructors
ExprFromExprListTrimList AExpr ExprList | |
FromExprListTrimList ExprList | |
ExprListTrimList ExprList |
Instances
Eq TrimList Source # | |
Ord TrimList Source # | |
Defined in PostgresqlSyntax.Ast | |
Show TrimList Source # | |
Generic TrimList Source # | |
type Rep TrimList Source # | |
Defined in PostgresqlSyntax.Ast type Rep TrimList = D1 (MetaData "TrimList" "PostgresqlSyntax.Ast" "postgresql-syntax-0.3-6sU7qmpYmFEERprbpTYw19" False) (C1 (MetaCons "ExprFromExprListTrimList" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 AExpr) :*: S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 ExprList)) :+: (C1 (MetaCons "FromExprListTrimList" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 ExprList)) :+: C1 (MetaCons "ExprListTrimList" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 ExprList)))) |
Constructors
CaseExpr (Maybe CaseArg) WhenClauseList (Maybe CaseDefault) |
Instances
Eq CaseExpr Source # | |
Ord CaseExpr Source # | |
Defined in PostgresqlSyntax.Ast | |
Show CaseExpr Source # | |
Generic CaseExpr Source # | |
type Rep CaseExpr Source # | |
Defined in PostgresqlSyntax.Ast type Rep CaseExpr = D1 (MetaData "CaseExpr" "PostgresqlSyntax.Ast" "postgresql-syntax-0.3-6sU7qmpYmFEERprbpTYw19" False) (C1 (MetaCons "CaseExpr" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe CaseArg)) :*: (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 WhenClauseList) :*: S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe CaseDefault))))) |
type WhenClauseList = NonEmpty WhenClause Source #
type CaseDefault = AExpr Source #
data WhenClause Source #
Constructors
WhenClause AExpr AExpr |
Instances
data FuncApplication Source #
Constructors
FuncApplication FuncName (Maybe FuncApplicationParams) |
Instances
data FuncApplicationParams Source #
Constructors
Instances
data FuncArgExpr Source #
Constructors
ExprFuncArgExpr AExpr | |
ColonEqualsFuncArgExpr Ident AExpr | |
EqualsGreaterFuncArgExpr Ident AExpr |
Instances
Constants
data AexprConst Source #
AexprConst: | Iconst | FCONST | Sconst | BCONST | XCONST | func_name Sconst | func_name '(' func_arg_list opt_sort_clause ')' Sconst | ConstTypename Sconst | ConstInterval Sconst opt_interval | ConstInterval '(' Iconst ')' Sconst | TRUE_P | FALSE_P | NULL_P
Constructors
Instances
data FuncConstArgs Source #
Constructors
FuncConstArgs (NonEmpty FuncArgExpr) (Maybe SortClause) |
Instances
data ConstTypename Source #
Constructors
NumericConstTypename Numeric | |
ConstBitConstTypename ConstBit | |
ConstCharacterConstTypename ConstCharacter | |
ConstDatetimeConstTypename ConstDatetime |
Instances
Constructors
Instances
Constructors
Bit OptVarying (Maybe ExprList) |
Instances
Eq Bit Source # | |
Ord Bit Source # | |
Show Bit Source # | |
Generic Bit Source # | |
type Rep Bit Source # | |
Defined in PostgresqlSyntax.Ast type Rep Bit = D1 (MetaData "Bit" "PostgresqlSyntax.Ast" "postgresql-syntax-0.3-6sU7qmpYmFEERprbpTYw19" False) (C1 (MetaCons "Bit" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 OptVarying) :*: S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe ExprList)))) |
type OptVarying = Bool Source #
data ConstCharacter Source #
Constructors
ConstCharacter Character (Maybe Int64) |
Instances
Constructors
CharacterCharacter OptVarying | |
CharCharacter OptVarying | |
VarcharCharacter | |
NationalCharacterCharacter OptVarying | |
NationalCharCharacter OptVarying | |
NcharCharacter OptVarying |
Instances
data ConstDatetime Source #
Constructors
TimestampConstDatetime (Maybe Int64) (Maybe Timezone) | |
TimeConstDatetime (Maybe Int64) (Maybe Timezone) |
Instances
Constructors
Instances
type IntervalSecond = Maybe Int64 Source #
Names & References
Constructors
QuotedIdent Text | |
UnquotedIdent Text |
Instances
Eq Ident Source # | |
Ord Ident Source # | |
Show Ident Source # | |
Generic Ident Source # | |
type Rep Ident Source # | |
Defined in PostgresqlSyntax.Ast type Rep Ident = D1 (MetaData "Ident" "PostgresqlSyntax.Ast" "postgresql-syntax-0.3-6sU7qmpYmFEERprbpTYw19" False) (C1 (MetaCons "QuotedIdent" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)) :+: C1 (MetaCons "UnquotedIdent" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text))) |
type CursorName = Name Source #
Constructors
Columnref ColId (Maybe Indirection) |
Instances
Eq Columnref Source # | |
Ord Columnref Source # | |
Show Columnref Source # | |
Generic Columnref Source # | |
type Rep Columnref Source # | |
Defined in PostgresqlSyntax.Ast type Rep Columnref = D1 (MetaData "Columnref" "PostgresqlSyntax.Ast" "postgresql-syntax-0.3-6sU7qmpYmFEERprbpTYw19" False) (C1 (MetaCons "Columnref" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 ColId) :*: S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Indirection)))) |
Instances
Eq AnyName Source # | |
Ord AnyName Source # | |
Defined in PostgresqlSyntax.Ast | |
Show AnyName Source # | |
Generic AnyName Source # | |
type Rep AnyName Source # | |
Defined in PostgresqlSyntax.Ast type Rep AnyName = D1 (MetaData "AnyName" "PostgresqlSyntax.Ast" "postgresql-syntax-0.3-6sU7qmpYmFEERprbpTYw19" False) (C1 (MetaCons "AnyName" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 ColId) :*: S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Attrs)))) |
Constructors
TypeFuncName TypeFunctionName | |
IndirectedFuncName ColId Indirection |
Instances
Eq FuncName Source # | |
Ord FuncName Source # | |
Defined in PostgresqlSyntax.Ast | |
Show FuncName Source # | |
Generic FuncName Source # | |
type Rep FuncName Source # | |
Defined in PostgresqlSyntax.Ast type Rep FuncName = D1 (MetaData "FuncName" "PostgresqlSyntax.Ast" "postgresql-syntax-0.3-6sU7qmpYmFEERprbpTYw19" False) (C1 (MetaCons "TypeFuncName" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 TypeFunctionName)) :+: C1 (MetaCons "IndirectedFuncName" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 ColId) :*: S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Indirection))) |
type TypeFunctionName = Ident Source #
data QualifiedName Source #
Constructors
SimpleQualifiedName Ident | |
IndirectedQualifiedName Ident Indirection |
Instances
type Indirection = NonEmpty IndirectionEl Source #
data IndirectionEl Source #
Constructors
AttrNameIndirectionEl Ident | |
AllIndirectionEl | |
ExprIndirectionEl AExpr | |
SliceIndirectionEl (Maybe AExpr) (Maybe AExpr) |
Instances
Types
Typename definition extended with custom question-marks for nullability specification.
To match the standard Postgres syntax simply interpret their presence as a parsing error.
Constructors
Typename | |
Fields
|
Instances
Eq Typename Source # | |
Ord Typename Source # | |
Defined in PostgresqlSyntax.Ast | |
Show Typename Source # | |
Generic Typename Source # | |
type Rep Typename Source # | |
Defined in PostgresqlSyntax.Ast type Rep Typename = D1 (MetaData "Typename" "PostgresqlSyntax.Ast" "postgresql-syntax-0.3-6sU7qmpYmFEERprbpTYw19" False) (C1 (MetaCons "Typename" PrefixI False) ((S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Bool) :*: S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 SimpleTypename)) :*: (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Bool) :*: S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe (TypenameArrayDimensions, Bool)))))) |
data TypenameArrayDimensions Source #
Constructors
BoundsTypenameArrayDimensions ArrayBounds | |
ExplicitTypenameArrayDimensions (Maybe Iconst) |
Instances
data SimpleTypename Source #
Constructors
Instances
data GenericType Source #
Constructors
GenericType TypeFunctionName (Maybe Attrs) (Maybe TypeModifiers) |
Instances
type TypeModifiers = ExprList Source #
Operators
Constructors
OpQualOp Op | |
OperatorQualOp AnyOperator |
Instances
Eq QualOp Source # | |
Ord QualOp Source # | |
Show QualOp Source # | |
Generic QualOp Source # | |
type Rep QualOp Source # | |
Defined in PostgresqlSyntax.Ast type Rep QualOp = D1 (MetaData "QualOp" "PostgresqlSyntax.Ast" "postgresql-syntax-0.3-6sU7qmpYmFEERprbpTYw19" False) (C1 (MetaCons "OpQualOp" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Op)) :+: C1 (MetaCons "OperatorQualOp" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 AnyOperator))) |
Constructors
AllQualAllOp AllOp | |
AnyQualAllOp AnyOperator |
Instances
Eq QualAllOp Source # | |
Ord QualAllOp Source # | |
Show QualAllOp Source # | |
Generic QualAllOp Source # | |
type Rep QualAllOp Source # | |
Defined in PostgresqlSyntax.Ast type Rep QualAllOp = D1 (MetaData "QualAllOp" "PostgresqlSyntax.Ast" "postgresql-syntax-0.3-6sU7qmpYmFEERprbpTYw19" False) (C1 (MetaCons "AllQualAllOp" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 AllOp)) :+: C1 (MetaCons "AnyQualAllOp" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 AnyOperator))) |
data AnyOperator Source #
Constructors
AllOpAnyOperator AllOp | |
QualifiedAnyOperator ColId AnyOperator |
Instances
Instances
Eq AllOp Source # | |
Ord AllOp Source # | |
Show AllOp Source # | |
Generic AllOp Source # | |
type Rep AllOp Source # | |
Defined in PostgresqlSyntax.Ast type Rep AllOp = D1 (MetaData "AllOp" "PostgresqlSyntax.Ast" "postgresql-syntax-0.3-6sU7qmpYmFEERprbpTYw19" False) (C1 (MetaCons "OpAllOp" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Op)) :+: C1 (MetaCons "MathAllOp" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 MathOp))) |
Constructors
Instances
Bounded MathOp Source # | |
Enum MathOp Source # | |
Defined in PostgresqlSyntax.Ast | |
Eq MathOp Source # | |
Ord MathOp Source # | |
Show MathOp Source # | |
Generic MathOp Source # | |
type Rep MathOp Source # | |
Defined in PostgresqlSyntax.Ast type Rep MathOp = D1 (MetaData "MathOp" "PostgresqlSyntax.Ast" "postgresql-syntax-0.3-6sU7qmpYmFEERprbpTYw19" False) (((C1 (MetaCons "PlusMathOp" PrefixI False) (U1 :: Type -> Type) :+: (C1 (MetaCons "MinusMathOp" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "AsteriskMathOp" PrefixI False) (U1 :: Type -> Type))) :+: (C1 (MetaCons "SlashMathOp" PrefixI False) (U1 :: Type -> Type) :+: (C1 (MetaCons "PercentMathOp" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "ArrowUpMathOp" PrefixI False) (U1 :: Type -> Type)))) :+: ((C1 (MetaCons "ArrowLeftMathOp" PrefixI False) (U1 :: Type -> Type) :+: (C1 (MetaCons "ArrowRightMathOp" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "EqualsMathOp" PrefixI False) (U1 :: Type -> Type))) :+: ((C1 (MetaCons "LessEqualsMathOp" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "GreaterEqualsMathOp" PrefixI False) (U1 :: Type -> Type)) :+: (C1 (MetaCons "ArrowLeftArrowRightMathOp" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "ExclamationEqualsMathOp" PrefixI False) (U1 :: Type -> Type))))) |
data SymbolicExprBinOp Source #
Constructors
MathSymbolicExprBinOp MathOp | |
QualSymbolicExprBinOp QualOp |
Instances
data VerbalExprBinOp Source #
Instances
data AExprReversableOp Source #
Constructors
Instances
Constructors
DistinctFromBExprIsOp BExpr | |
OfBExprIsOp TypeList | |
DocumentBExprIsOp |
Instances
Eq BExprIsOp Source # | |
Ord BExprIsOp Source # | |
Show BExprIsOp Source # | |
Generic BExprIsOp Source # | |
type Rep BExprIsOp Source # | |
Defined in PostgresqlSyntax.Ast type Rep BExprIsOp = D1 (MetaData "BExprIsOp" "PostgresqlSyntax.Ast" "postgresql-syntax-0.3-6sU7qmpYmFEERprbpTYw19" False) (C1 (MetaCons "DistinctFromBExprIsOp" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 BExpr)) :+: (C1 (MetaCons "OfBExprIsOp" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 TypeList)) :+: C1 (MetaCons "DocumentBExprIsOp" PrefixI False) (U1 :: Type -> Type))) |
data SubqueryOp Source #
Instances
Indexes
type IndexParams = NonEmpty IndexElem Source #
Constructors
IndexElem IndexElemDef (Maybe Collate) (Maybe Class) (Maybe AscDesc) (Maybe NullsOrder) |
Instances
Eq IndexElem Source # | |
Ord IndexElem Source # | |
Show IndexElem Source # | |
Generic IndexElem Source # | |
type Rep IndexElem Source # | |
Defined in PostgresqlSyntax.Ast type Rep IndexElem = D1 (MetaData "IndexElem" "PostgresqlSyntax.Ast" "postgresql-syntax-0.3-6sU7qmpYmFEERprbpTYw19" False) (C1 (MetaCons "IndexElem" PrefixI False) ((S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 IndexElemDef) :*: S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Collate))) :*: (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Class)) :*: (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe AscDesc)) :*: S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe NullsOrder)))))) |
data IndexElemDef Source #
Instances
Constructors
AscAscDesc | |
DescAscDesc |
Instances
Bounded AscDesc Source # | |
Enum AscDesc Source # | |
Eq AscDesc Source # | |
Ord AscDesc Source # | |
Defined in PostgresqlSyntax.Ast | |
Show AscDesc Source # | |
Generic AscDesc Source # | |
type Rep AscDesc Source # | |
data NullsOrder Source #
Constructors
FirstNullsOrder | |
LastNullsOrder |