Documentation ¶
Index ¶
- type A_ArrayExpr
- type A_Const
- type A_Expr
- type A_Expr_Kind
- type A_Indices
- type A_Indirection
- type A_Star
- type AccessPriv
- type AclMode
- type AggSplit
- type AggStrategy
- type Aggref
- type Alias
- type AlterCollationStmt
- type AlterDatabaseSetStmt
- type AlterDatabaseStmt
- type AlterDefaultPrivilegesStmt
- type AlterDomainStmt
- type AlterEnumStmt
- type AlterEventTrigStmt
- type AlterExtensionContentsStmt
- type AlterExtensionStmt
- type AlterFdwStmt
- type AlterForeignServerStmt
- type AlterFunctionStmt
- type AlterObjectDependsStmt
- type AlterObjectSchemaStmt
- type AlterOpFamilyStmt
- type AlterOperatorStmt
- type AlterOwnerStmt
- type AlterPolicyStmt
- type AlterPublicationStmt
- type AlterRoleSetStmt
- type AlterRoleStmt
- type AlterSeqStmt
- type AlterSubscriptionStmt
- type AlterSubscriptionType
- type AlterSystemStmt
- type AlterTSConfigType
- type AlterTSConfigurationStmt
- type AlterTSDictionaryStmt
- type AlterTableCmd
- type AlterTableMoveAllStmt
- type AlterTableSetSchemaStmt
- type AlterTableSpaceOptionsStmt
- type AlterTableStmt
- type AlterTableType
- type AlterTableType_PG
- type AlterTypeAddValueStmt
- type AlterTypeRenameValueStmt
- type AlterTypeSetSchemaStmt
- type AlterUserMappingStmt
- type AlternativeSubPlan
- type ArrayCoerceExpr
- type ArrayExpr
- type ArrayRef
- type AttrNumber
- type BetweenExpr
- type BitString
- type BlockId
- type BlockIdData
- type BlockNumber
- type BoolExpr
- type BoolExprType
- type BoolTestType
- type Boolean
- type BooleanTest
- type CallStmt
- type CaseExpr
- type CaseTestExpr
- type CaseWhen
- type CheckPointStmt
- type ClosePortalStmt
- type ClusterStmt
- type CmdType
- type CoalesceExpr
- type CoerceToDomain
- type CoerceToDomainValue
- type CoerceViaIO
- type CoercionContext
- type CoercionForm
- type CollateClause
- type CollateExpr
- type ColumnDef
- type ColumnRef
- type CommandId
- type CommentOnColumnStmt
- type CommentOnSchemaStmt
- type CommentOnTableStmt
- type CommentOnTypeStmt
- type CommentStmt
- type CommonTableExpr
- type CompositeTypeStmt
- type Const
- type ConstrType
- type Constraint
- type ConstraintsSetStmt
- type ConvertRowtypeExpr
- type CopyStmt
- type Cost
- type CreateAmStmt
- type CreateCastStmt
- type CreateConversionStmt
- type CreateDomainStmt
- type CreateEnumStmt
- type CreateEventTrigStmt
- type CreateExtensionStmt
- type CreateFdwStmt
- type CreateForeignServerStmt
- type CreateForeignTableStmt
- type CreateFunctionStmt
- type CreateOpClassItem
- type CreateOpClassStmt
- type CreateOpFamilyStmt
- type CreatePLangStmt
- type CreatePolicyStmt
- type CreatePublicationStmt
- type CreateRangeStmt
- type CreateRoleStmt
- type CreateSchemaStmt
- type CreateSeqStmt
- type CreateStatsStmt
- type CreateStmt
- type CreateSubscriptionStmt
- type CreateTableAsStmt
- type CreateTableSpaceStmt
- type CreateTableStmt
- type CreateTransformStmt
- type CreateTrigStmt
- type CreateUserMappingStmt
- type CreatedbStmt
- type CurrentOfExpr
- type Datum
- type DatumPtr
- type DeallocateStmt
- type DeclareCursorStmt
- type DefElem
- type DefElemAction
- type DefineStmt
- type DeleteStmt
- type DiscardMode
- type DiscardStmt
- type DistinctExpr
- type DoStmt
- type DropBehavior
- type DropFunctionStmt
- type DropOwnedStmt
- type DropRoleStmt
- type DropSchemaStmt
- type DropStmt
- type DropSubscriptionStmt
- type DropTableSpaceStmt
- type DropTableStmt
- type DropTypeStmt
- type DropUserMappingStmt
- type DropdbStmt
- type ExecuteStmt
- type ExplainStmt
- type Expr
- type FetchDirection
- type FetchStmt
- type FieldSelect
- type FieldStore
- type Float
- type FromExpr
- type FuncCall
- type FuncExpr
- type FuncName
- type FuncParam
- type FuncParamMode
- type FuncSpec
- type FunctionParameter
- type FunctionParameterMode
- type GrantObjectType
- type GrantRoleStmt
- type GrantStmt
- type GrantTargetType
- type GroupingFunc
- type GroupingSet
- type GroupingSetKind
- type ImportForeignSchemaStmt
- type ImportForeignSchemaType
- type In
- type Index
- type IndexElem
- type IndexStmt
- type InferClause
- type InferenceElem
- type InlineCodeBlock
- type InsertStmt
- type Integer
- type IntoClause
- type JoinExpr
- type JoinType
- type List
- type ListenStmt
- type LoadStmt
- type LocalTransactionId
- type LockClauseStrength
- type LockStmt
- type LockWaitPolicy
- type LockingClause
- type MinMaxExpr
- type MinMaxOp
- type MultiAssignRef
- type MultiXactId
- type MultiXactOffset
- type NamedArgExpr
- type NextValueExpr
- type Node
- type NotifyStmt
- type Null
- type NullIfExpr
- type NullTest
- type NullTestType
- type ObjectType
- type ObjectWithArgs
- type Offset
- type Oid
- type OnCommitAction
- type OnConflictAction
- type OnConflictClause
- type OnConflictExpr
- type OpExpr
- type OverridingKind
- type Param
- type ParamExecData
- type ParamExternData
- type ParamKind
- type ParamListInfo
- type ParamListInfoData
- type ParamRef
- type PartitionBoundSpec
- type PartitionCmd
- type PartitionElem
- type PartitionRangeDatum
- type PartitionRangeDatumKind
- type PartitionSpec
- type Pointer
- type PrepareStmt
- type Query
- type QuerySource
- type RTEKind
- type RangeFunction
- type RangeSubselect
- type RangeTableFunc
- type RangeTableFuncCol
- type RangeTableSample
- type RangeTblEntry
- type RangeTblFunction
- type RangeTblRef
- type RangeVar
- type RawStmt
- type ReassignOwnedStmt
- type RefreshMatViewStmt
- type RegProcedure
- type ReindexObjectType
- type ReindexStmt
- type RelabelType
- type RenameColumnStmt
- type RenameStmt
- type RenameTableStmt
- type RenameTypeStmt
- type ReplicaIdentityStmt
- type ResTarget
- type RoleSpec
- type RoleSpecType
- type RoleStmtType
- type RowCompareExpr
- type RowCompareType
- type RowExpr
- type RowMarkClause
- type RuleStmt
- type SQLValueFunction
- type SQLValueFunctionOp
- type ScalarArrayOpExpr
- type ScanDirection
- type SecLabelStmt
- type SelectStmt
- type Selectivity
- type SetOpCmd
- type SetOpStrategy
- type SetOperation
- type SetOperationStmt
- type SetToDefault
- type SortBy
- type SortByDir
- type SortByNulls
- type SortGroupClause
- type Statement
- type String
- type SubLink
- type SubLinkType
- type SubPlan
- type SubTransactionId
- type TODO
- type TableFunc
- type TableLikeClause
- type TableLikeOption
- type TableName
- type TableSampleClause
- type TargetEntry
- type TransactionId
- type TransactionStmt
- type TransactionStmtKind
- type TriggerTransition
- type TruncateStmt
- type TypeCast
- type TypeName
- type UnlistenStmt
- type UpdateStmt
- type VacuumOption
- type VacuumStmt
- type Var
- type VariableSetKind
- type VariableSetStmt
- type VariableShowStmt
- type ViewCheckOption
- type ViewStmt
- type WCOKind
- type WindowClause
- type WindowDef
- type WindowFunc
- type WithCheckOption
- type WithClause
- type XmlExpr
- type XmlExprOp
- type XmlOptionType
- type XmlSerialize
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type A_ArrayExpr ¶
func (*A_ArrayExpr) Pos ¶
func (n *A_ArrayExpr) Pos() int
type A_Expr ¶
type A_Expr struct { Kind A_Expr_Kind Name *List Lexpr Node Rexpr Node Location int }
type A_Expr_Kind ¶
type A_Expr_Kind uint
func (*A_Expr_Kind) Pos ¶
func (n *A_Expr_Kind) Pos() int
type A_Indirection ¶
func (*A_Indirection) Pos ¶
func (n *A_Indirection) Pos() int
type AccessPriv ¶
func (*AccessPriv) Pos ¶
func (n *AccessPriv) Pos() int
type AggStrategy ¶
type AggStrategy uint
func (*AggStrategy) Pos ¶
func (n *AggStrategy) Pos() int
type Aggref ¶
type AlterCollationStmt ¶
type AlterCollationStmt struct {
Collname *List
}
func (*AlterCollationStmt) Pos ¶
func (n *AlterCollationStmt) Pos() int
type AlterDatabaseSetStmt ¶
type AlterDatabaseSetStmt struct { Dbname *string Setstmt *VariableSetStmt }
func (*AlterDatabaseSetStmt) Pos ¶
func (n *AlterDatabaseSetStmt) Pos() int
type AlterDatabaseStmt ¶
func (*AlterDatabaseStmt) Pos ¶
func (n *AlterDatabaseStmt) Pos() int
type AlterDefaultPrivilegesStmt ¶
func (*AlterDefaultPrivilegesStmt) Pos ¶
func (n *AlterDefaultPrivilegesStmt) Pos() int
type AlterDomainStmt ¶
type AlterDomainStmt struct { Subtype byte TypeName *List Name *string Def Node Behavior DropBehavior MissingOk bool }
func (*AlterDomainStmt) Pos ¶
func (n *AlterDomainStmt) Pos() int
type AlterEnumStmt ¶
type AlterEnumStmt struct { TypeName *List OldVal *string NewVal *string NewValNeighbor *string NewValIsAfter bool SkipIfNewValExists bool }
func (*AlterEnumStmt) Pos ¶
func (n *AlterEnumStmt) Pos() int
type AlterEventTrigStmt ¶
func (*AlterEventTrigStmt) Pos ¶
func (n *AlterEventTrigStmt) Pos() int
type AlterExtensionContentsStmt ¶
type AlterExtensionContentsStmt struct { Extname *string Action int Objtype ObjectType Object Node }
func (*AlterExtensionContentsStmt) Pos ¶
func (n *AlterExtensionContentsStmt) Pos() int
type AlterExtensionStmt ¶
func (*AlterExtensionStmt) Pos ¶
func (n *AlterExtensionStmt) Pos() int
type AlterFdwStmt ¶
func (*AlterFdwStmt) Pos ¶
func (n *AlterFdwStmt) Pos() int
type AlterForeignServerStmt ¶
type AlterForeignServerStmt struct { Servername *string Version *string Options *List HasVersion bool }
func (*AlterForeignServerStmt) Pos ¶
func (n *AlterForeignServerStmt) Pos() int
type AlterFunctionStmt ¶
type AlterFunctionStmt struct { Func *ObjectWithArgs Actions *List }
func (*AlterFunctionStmt) Pos ¶
func (n *AlterFunctionStmt) Pos() int
type AlterObjectDependsStmt ¶
type AlterObjectDependsStmt struct { ObjectType ObjectType Relation *RangeVar Object Node Extname Node }
func (*AlterObjectDependsStmt) Pos ¶
func (n *AlterObjectDependsStmt) Pos() int
type AlterObjectSchemaStmt ¶
type AlterObjectSchemaStmt struct { ObjectType ObjectType Relation *RangeVar Object Node Newschema *string MissingOk bool }
func (*AlterObjectSchemaStmt) Pos ¶
func (n *AlterObjectSchemaStmt) Pos() int
type AlterOpFamilyStmt ¶
func (*AlterOpFamilyStmt) Pos ¶
func (n *AlterOpFamilyStmt) Pos() int
type AlterOperatorStmt ¶
type AlterOperatorStmt struct { Opername *ObjectWithArgs Options *List }
func (*AlterOperatorStmt) Pos ¶
func (n *AlterOperatorStmt) Pos() int
type AlterOwnerStmt ¶
type AlterOwnerStmt struct { ObjectType ObjectType Relation *RangeVar Object Node Newowner *RoleSpec }
func (*AlterOwnerStmt) Pos ¶
func (n *AlterOwnerStmt) Pos() int
type AlterPolicyStmt ¶
type AlterPolicyStmt struct { PolicyName *string Table *RangeVar Roles *List Qual Node WithCheck Node }
func (*AlterPolicyStmt) Pos ¶
func (n *AlterPolicyStmt) Pos() int
type AlterPublicationStmt ¶
type AlterPublicationStmt struct { Pubname *string Options *List Tables *List ForAllTables bool TableAction DefElemAction }
func (*AlterPublicationStmt) Pos ¶
func (n *AlterPublicationStmt) Pos() int
type AlterRoleSetStmt ¶
type AlterRoleSetStmt struct { Role *RoleSpec Database *string Setstmt *VariableSetStmt }
func (*AlterRoleSetStmt) Pos ¶
func (n *AlterRoleSetStmt) Pos() int
type AlterRoleStmt ¶
func (*AlterRoleStmt) Pos ¶
func (n *AlterRoleStmt) Pos() int
type AlterSeqStmt ¶
func (*AlterSeqStmt) Pos ¶
func (n *AlterSeqStmt) Pos() int
type AlterSubscriptionStmt ¶
type AlterSubscriptionStmt struct { Kind AlterSubscriptionType Subname *string Conninfo *string Publication *List Options *List }
func (*AlterSubscriptionStmt) Pos ¶
func (n *AlterSubscriptionStmt) Pos() int
type AlterSubscriptionType ¶
type AlterSubscriptionType uint
func (*AlterSubscriptionType) Pos ¶
func (n *AlterSubscriptionType) Pos() int
type AlterSystemStmt ¶
type AlterSystemStmt struct {
Setstmt *VariableSetStmt
}
func (*AlterSystemStmt) Pos ¶
func (n *AlterSystemStmt) Pos() int
type AlterTSConfigType ¶
type AlterTSConfigType uint
func (*AlterTSConfigType) Pos ¶
func (n *AlterTSConfigType) Pos() int
type AlterTSConfigurationStmt ¶
type AlterTSConfigurationStmt struct { Kind AlterTSConfigType Cfgname *List Tokentype *List Dicts *List Override bool Replace bool MissingOk bool }
func (*AlterTSConfigurationStmt) Pos ¶
func (n *AlterTSConfigurationStmt) Pos() int
type AlterTSDictionaryStmt ¶
func (*AlterTSDictionaryStmt) Pos ¶
func (n *AlterTSDictionaryStmt) Pos() int
type AlterTableCmd ¶
type AlterTableCmd struct { Subtype AlterTableType Name *string Def *ColumnDef Newowner *RoleSpec Behavior DropBehavior MissingOk bool }
func (*AlterTableCmd) Pos ¶
func (n *AlterTableCmd) Pos() int
type AlterTableMoveAllStmt ¶
type AlterTableMoveAllStmt struct { OrigTablespacename *string Objtype ObjectType Roles *List NewTablespacename *string Nowait bool }
func (*AlterTableMoveAllStmt) Pos ¶
func (n *AlterTableMoveAllStmt) Pos() int
type AlterTableSetSchemaStmt ¶
func (*AlterTableSetSchemaStmt) Pos ¶
func (n *AlterTableSetSchemaStmt) Pos() int
type AlterTableSpaceOptionsStmt ¶
func (*AlterTableSpaceOptionsStmt) Pos ¶
func (n *AlterTableSpaceOptionsStmt) Pos() int
type AlterTableStmt ¶
type AlterTableStmt struct { // TODO: Only TableName or Relation should be defined Relation *RangeVar Table *TableName Cmds *List MissingOk bool Relkind ObjectType }
func (*AlterTableStmt) Pos ¶
func (n *AlterTableStmt) Pos() int
type AlterTableType ¶
type AlterTableType int
const ( AT_AddColumn AlterTableType = iota AT_AlterColumnType AT_DropColumn AT_DropNotNull AT_SetNotNull )
func (AlterTableType) String ¶
func (t AlterTableType) String() string
type AlterTableType_PG ¶
type AlterTableType_PG uint
func (*AlterTableType_PG) Pos ¶
func (n *AlterTableType_PG) Pos() int
type AlterTypeAddValueStmt ¶
type AlterTypeAddValueStmt struct { Type *TypeName NewValue *string NewValHasNeighbor bool NewValNeighbor *string NewValIsAfter bool SkipIfNewValExists bool }
func (*AlterTypeAddValueStmt) Pos ¶
func (n *AlterTypeAddValueStmt) Pos() int
type AlterTypeRenameValueStmt ¶
func (*AlterTypeRenameValueStmt) Pos ¶
func (n *AlterTypeRenameValueStmt) Pos() int
type AlterTypeSetSchemaStmt ¶
func (*AlterTypeSetSchemaStmt) Pos ¶
func (n *AlterTypeSetSchemaStmt) Pos() int
type AlterUserMappingStmt ¶
func (*AlterUserMappingStmt) Pos ¶
func (n *AlterUserMappingStmt) Pos() int
type AlternativeSubPlan ¶
func (*AlternativeSubPlan) Pos ¶
func (n *AlternativeSubPlan) Pos() int
type ArrayCoerceExpr ¶
type ArrayCoerceExpr struct { Xpr Node Arg Node Elemfuncid Oid Resulttype Oid Resulttypmod int32 Resultcollid Oid IsExplicit bool Coerceformat CoercionForm Location int }
func (*ArrayCoerceExpr) Pos ¶
func (n *ArrayCoerceExpr) Pos() int
type ArrayExpr ¶
type ArrayRef ¶
type BetweenExpr ¶
type BetweenExpr struct { // Expr is the value expression to be compared. Expr Node // Left is the left expression in the between statement. Left Node // Right is the right expression in the between statement. Right Node // Not is true, the expression is "not between". Not bool Location int }
func (*BetweenExpr) Pos ¶
func (n *BetweenExpr) Pos() int
type BlockIdData ¶
func (*BlockIdData) Pos ¶
func (n *BlockIdData) Pos() int
type BlockNumber ¶
type BlockNumber uint32
func (*BlockNumber) Pos ¶
func (n *BlockNumber) Pos() int
type BoolExprType ¶
type BoolExprType uint
const ( BoolExprTypeAnd BoolExprType BoolExprTypeOr BoolExprTypeNot )
https://github.com/pganalyze/libpg_query/blob/13-latest/protobuf/pg_query.proto#L2783-L2789
func (*BoolExprType) Pos ¶
func (n *BoolExprType) Pos() int
type BoolTestType ¶
type BoolTestType uint
func (*BoolTestType) Pos ¶
func (n *BoolTestType) Pos() int
type BooleanTest ¶
type BooleanTest struct { Xpr Node Arg Node Booltesttype BoolTestType Location int }
func (*BooleanTest) Pos ¶
func (n *BooleanTest) Pos() int
type CaseExpr ¶
type CaseTestExpr ¶
func (*CaseTestExpr) Pos ¶
func (n *CaseTestExpr) Pos() int
type CheckPointStmt ¶
type CheckPointStmt struct { }
func (*CheckPointStmt) Pos ¶
func (n *CheckPointStmt) Pos() int
type ClosePortalStmt ¶
type ClosePortalStmt struct {
Portalname *string
}
func (*ClosePortalStmt) Pos ¶
func (n *ClosePortalStmt) Pos() int
type ClusterStmt ¶
func (*ClusterStmt) Pos ¶
func (n *ClusterStmt) Pos() int
type CoalesceExpr ¶
func (*CoalesceExpr) Pos ¶
func (n *CoalesceExpr) Pos() int
type CoerceToDomain ¶
type CoerceToDomain struct { Xpr Node Arg Node Resulttype Oid Resulttypmod int32 Resultcollid Oid Coercionformat CoercionForm Location int }
func (*CoerceToDomain) Pos ¶
func (n *CoerceToDomain) Pos() int
type CoerceToDomainValue ¶
func (*CoerceToDomainValue) Pos ¶
func (n *CoerceToDomainValue) Pos() int
type CoerceViaIO ¶
type CoerceViaIO struct { Xpr Node Arg Node Resulttype Oid Resultcollid Oid Coerceformat CoercionForm Location int }
func (*CoerceViaIO) Pos ¶
func (n *CoerceViaIO) Pos() int
type CoercionContext ¶
type CoercionContext uint
func (*CoercionContext) Pos ¶
func (n *CoercionContext) Pos() int
type CoercionForm ¶
type CoercionForm uint
func (*CoercionForm) Pos ¶
func (n *CoercionForm) Pos() int
type CollateClause ¶
func (*CollateClause) Pos ¶
func (n *CollateClause) Pos() int
type CollateExpr ¶
func (*CollateExpr) Pos ¶
func (n *CollateExpr) Pos() int
type ColumnDef ¶
type ColumnDef struct { Colname string TypeName *TypeName IsNotNull bool IsArray bool Vals *List Length *int // From pg.ColumnDef Inhcount int IsLocal bool IsFromType bool IsFromParent bool Storage byte RawDefault Node CookedDefault Node Identity byte CollClause *CollateClause CollOid Oid Constraints *List Fdwoptions *List Location int Comment string }
type CommentOnColumnStmt ¶
func (*CommentOnColumnStmt) Pos ¶
func (n *CommentOnColumnStmt) Pos() int
type CommentOnSchemaStmt ¶
func (*CommentOnSchemaStmt) Pos ¶
func (n *CommentOnSchemaStmt) Pos() int
type CommentOnTableStmt ¶
func (*CommentOnTableStmt) Pos ¶
func (n *CommentOnTableStmt) Pos() int
type CommentOnTypeStmt ¶
func (*CommentOnTypeStmt) Pos ¶
func (n *CommentOnTypeStmt) Pos() int
type CommentStmt ¶
type CommentStmt struct { Objtype ObjectType Object Node Comment *string }
func (*CommentStmt) Pos ¶
func (n *CommentStmt) Pos() int
type CommonTableExpr ¶
type CommonTableExpr struct { Ctename *string Aliascolnames *List Ctequery Node Location int Cterecursive bool Cterefcount int Ctecolnames *List Ctecoltypes *List Ctecoltypmods *List Ctecolcollations *List }
func (*CommonTableExpr) Pos ¶
func (n *CommonTableExpr) Pos() int
type CompositeTypeStmt ¶
type CompositeTypeStmt struct {
TypeName *TypeName
}
func (*CompositeTypeStmt) Pos ¶
func (n *CompositeTypeStmt) Pos() int
type Const ¶
type Constraint ¶
type Constraint struct { Contype ConstrType Conname *string Deferrable bool Initdeferred bool Location int IsNoInherit bool RawExpr Node CookedExpr *string GeneratedWhen byte Keys *List Exclusions *List Options *List Indexname *string Indexspace *string AccessMethod *string WhereClause Node Pktable *RangeVar FkAttrs *List PkAttrs *List FkMatchtype byte FkUpdAction byte FkDelAction byte OldConpfeqop *List OldPktableOid Oid SkipValidation bool InitiallyValid bool }
func (*Constraint) Pos ¶
func (n *Constraint) Pos() int
type ConstraintsSetStmt ¶
func (*ConstraintsSetStmt) Pos ¶
func (n *ConstraintsSetStmt) Pos() int
type ConvertRowtypeExpr ¶
type ConvertRowtypeExpr struct { Xpr Node Arg Node Resulttype Oid Convertformat CoercionForm Location int }
func (*ConvertRowtypeExpr) Pos ¶
func (n *ConvertRowtypeExpr) Pos() int
type CopyStmt ¶
type CreateAmStmt ¶
func (*CreateAmStmt) Pos ¶
func (n *CreateAmStmt) Pos() int
type CreateCastStmt ¶
type CreateCastStmt struct { Sourcetype *TypeName Targettype *TypeName Func *ObjectWithArgs Context CoercionContext Inout bool }
func (*CreateCastStmt) Pos ¶
func (n *CreateCastStmt) Pos() int
type CreateConversionStmt ¶
type CreateConversionStmt struct { ConversionName *List ForEncodingName *string ToEncodingName *string FuncName *List Def bool }
func (*CreateConversionStmt) Pos ¶
func (n *CreateConversionStmt) Pos() int
type CreateDomainStmt ¶
type CreateDomainStmt struct { Domainname *List TypeName *TypeName CollClause *CollateClause Constraints *List }
func (*CreateDomainStmt) Pos ¶
func (n *CreateDomainStmt) Pos() int
type CreateEnumStmt ¶
func (*CreateEnumStmt) Pos ¶
func (n *CreateEnumStmt) Pos() int
type CreateEventTrigStmt ¶
type CreateEventTrigStmt struct { Trigname *string Eventname *string Whenclause *List Funcname *List }
func (*CreateEventTrigStmt) Pos ¶
func (n *CreateEventTrigStmt) Pos() int
type CreateExtensionStmt ¶
func (*CreateExtensionStmt) Pos ¶
func (n *CreateExtensionStmt) Pos() int
type CreateFdwStmt ¶
func (*CreateFdwStmt) Pos ¶
func (n *CreateFdwStmt) Pos() int
type CreateForeignServerStmt ¶
type CreateForeignServerStmt struct { Servername *string Servertype *string Version *string Fdwname *string IfNotExists bool Options *List }
func (*CreateForeignServerStmt) Pos ¶
func (n *CreateForeignServerStmt) Pos() int
type CreateForeignTableStmt ¶
type CreateForeignTableStmt struct { Base *CreateStmt Servername *string Options *List }
func (*CreateForeignTableStmt) Pos ¶
func (n *CreateForeignTableStmt) Pos() int
type CreateFunctionStmt ¶
type CreateFunctionStmt struct { Replace bool Params *List ReturnType *TypeName Func *FuncName // TODO: Undertand these two fields Options *List WithClause *List }
func (*CreateFunctionStmt) Pos ¶
func (n *CreateFunctionStmt) Pos() int
type CreateOpClassItem ¶
type CreateOpClassItem struct { Itemtype int Name *ObjectWithArgs Number int OrderFamily *List ClassArgs *List Storedtype *TypeName }
func (*CreateOpClassItem) Pos ¶
func (n *CreateOpClassItem) Pos() int
type CreateOpClassStmt ¶
type CreateOpClassStmt struct { Opclassname *List Opfamilyname *List Amname *string Datatype *TypeName Items *List IsDefault bool }
func (*CreateOpClassStmt) Pos ¶
func (n *CreateOpClassStmt) Pos() int
type CreateOpFamilyStmt ¶
func (*CreateOpFamilyStmt) Pos ¶
func (n *CreateOpFamilyStmt) Pos() int
type CreatePLangStmt ¶
type CreatePLangStmt struct { Replace bool Plname *string Plhandler *List Plinline *List Plvalidator *List Pltrusted bool }
func (*CreatePLangStmt) Pos ¶
func (n *CreatePLangStmt) Pos() int
type CreatePolicyStmt ¶
type CreatePolicyStmt struct { PolicyName *string Table *RangeVar CmdName *string Permissive bool Roles *List Qual Node WithCheck Node }
func (*CreatePolicyStmt) Pos ¶
func (n *CreatePolicyStmt) Pos() int
type CreatePublicationStmt ¶
func (*CreatePublicationStmt) Pos ¶
func (n *CreatePublicationStmt) Pos() int
type CreateRangeStmt ¶
func (*CreateRangeStmt) Pos ¶
func (n *CreateRangeStmt) Pos() int
type CreateRoleStmt ¶
type CreateRoleStmt struct { StmtType RoleStmtType Role *string Options *List }
func (*CreateRoleStmt) Pos ¶
func (n *CreateRoleStmt) Pos() int
type CreateSchemaStmt ¶
func (*CreateSchemaStmt) Pos ¶
func (n *CreateSchemaStmt) Pos() int
type CreateSeqStmt ¶
type CreateSeqStmt struct { Sequence *RangeVar Options *List OwnerId Oid ForIdentity bool IfNotExists bool }
func (*CreateSeqStmt) Pos ¶
func (n *CreateSeqStmt) Pos() int
type CreateStatsStmt ¶
type CreateStatsStmt struct { Defnames *List StatTypes *List Exprs *List Relations *List IfNotExists bool }
func (*CreateStatsStmt) Pos ¶
func (n *CreateStatsStmt) Pos() int
type CreateStmt ¶
type CreateStmt struct { Relation *RangeVar TableElts *List InhRelations *List Partbound *PartitionBoundSpec Partspec *PartitionSpec OfTypename *TypeName Constraints *List Options *List Oncommit OnCommitAction Tablespacename *string IfNotExists bool }
func (*CreateStmt) Pos ¶
func (n *CreateStmt) Pos() int
type CreateSubscriptionStmt ¶
type CreateSubscriptionStmt struct { Subname *string Conninfo *string Publication *List Options *List }
func (*CreateSubscriptionStmt) Pos ¶
func (n *CreateSubscriptionStmt) Pos() int
type CreateTableAsStmt ¶
type CreateTableAsStmt struct { Query Node Into *IntoClause Relkind ObjectType IsSelectInto bool IfNotExists bool }
func (*CreateTableAsStmt) Pos ¶
func (n *CreateTableAsStmt) Pos() int
type CreateTableSpaceStmt ¶
type CreateTableSpaceStmt struct { Tablespacename *string Owner *RoleSpec Location *string Options *List }
func (*CreateTableSpaceStmt) Pos ¶
func (n *CreateTableSpaceStmt) Pos() int
type CreateTableStmt ¶
type CreateTableStmt struct { IfNotExists bool Name *TableName Cols []*ColumnDef ReferTable *TableName Comment string Inherits []*TableName }
func (*CreateTableStmt) Pos ¶
func (n *CreateTableStmt) Pos() int
type CreateTransformStmt ¶
type CreateTransformStmt struct { Replace bool TypeName *TypeName Lang *string Fromsql *ObjectWithArgs Tosql *ObjectWithArgs }
func (*CreateTransformStmt) Pos ¶
func (n *CreateTransformStmt) Pos() int
type CreateTrigStmt ¶
type CreateTrigStmt struct { Trigname *string Relation *RangeVar Funcname *List Args *List Row bool Timing int16 Events int16 Columns *List WhenClause Node Isconstraint bool TransitionRels *List Deferrable bool Initdeferred bool Constrrel *RangeVar }
func (*CreateTrigStmt) Pos ¶
func (n *CreateTrigStmt) Pos() int
type CreateUserMappingStmt ¶
type CreateUserMappingStmt struct { User *RoleSpec Servername *string IfNotExists bool Options *List }
func (*CreateUserMappingStmt) Pos ¶
func (n *CreateUserMappingStmt) Pos() int
type CreatedbStmt ¶
func (*CreatedbStmt) Pos ¶
func (n *CreatedbStmt) Pos() int
type CurrentOfExpr ¶
func (*CurrentOfExpr) Pos ¶
func (n *CurrentOfExpr) Pos() int
type DeallocateStmt ¶
type DeallocateStmt struct {
Name *string
}
func (*DeallocateStmt) Pos ¶
func (n *DeallocateStmt) Pos() int
type DeclareCursorStmt ¶
func (*DeclareCursorStmt) Pos ¶
func (n *DeclareCursorStmt) Pos() int
type DefElem ¶
type DefElem struct { Defnamespace *string Defname *string Arg Node Defaction DefElemAction Location int }
type DefElemAction ¶
type DefElemAction uint
func (*DefElemAction) Pos ¶
func (n *DefElemAction) Pos() int
type DefineStmt ¶
type DefineStmt struct { Kind ObjectType Oldstyle bool Defnames *List Args *List Definition *List IfNotExists bool }
func (*DefineStmt) Pos ¶
func (n *DefineStmt) Pos() int
type DeleteStmt ¶
type DeleteStmt struct { Relation *RangeVar UsingClause *List WhereClause Node ReturningList *List WithClause *WithClause }
func (*DeleteStmt) Pos ¶
func (n *DeleteStmt) Pos() int
type DiscardMode ¶
type DiscardMode uint
func (*DiscardMode) Pos ¶
func (n *DiscardMode) Pos() int
type DiscardStmt ¶
type DiscardStmt struct {
Target DiscardMode
}
func (*DiscardStmt) Pos ¶
func (n *DiscardStmt) Pos() int
type DistinctExpr ¶
type DistinctExpr OpExpr
func (*DistinctExpr) Pos ¶
func (n *DistinctExpr) Pos() int
type DropBehavior ¶
type DropBehavior uint
func (*DropBehavior) Pos ¶
func (n *DropBehavior) Pos() int
type DropFunctionStmt ¶
func (*DropFunctionStmt) Pos ¶
func (n *DropFunctionStmt) Pos() int
type DropOwnedStmt ¶
type DropOwnedStmt struct { Roles *List Behavior DropBehavior }
func (*DropOwnedStmt) Pos ¶
func (n *DropOwnedStmt) Pos() int
type DropRoleStmt ¶
func (*DropRoleStmt) Pos ¶
func (n *DropRoleStmt) Pos() int
type DropSchemaStmt ¶
func (*DropSchemaStmt) Pos ¶
func (n *DropSchemaStmt) Pos() int
type DropStmt ¶
type DropStmt struct { Objects *List RemoveType ObjectType Behavior DropBehavior MissingOk bool Concurrent bool }
type DropSubscriptionStmt ¶
type DropSubscriptionStmt struct { Subname *string MissingOk bool Behavior DropBehavior }
func (*DropSubscriptionStmt) Pos ¶
func (n *DropSubscriptionStmt) Pos() int
type DropTableSpaceStmt ¶
func (*DropTableSpaceStmt) Pos ¶
func (n *DropTableSpaceStmt) Pos() int
type DropTableStmt ¶
func (*DropTableStmt) Pos ¶
func (n *DropTableStmt) Pos() int
type DropTypeStmt ¶
func (*DropTypeStmt) Pos ¶
func (n *DropTypeStmt) Pos() int
type DropUserMappingStmt ¶
func (*DropUserMappingStmt) Pos ¶
func (n *DropUserMappingStmt) Pos() int
type DropdbStmt ¶
func (*DropdbStmt) Pos ¶
func (n *DropdbStmt) Pos() int
type ExecuteStmt ¶
func (*ExecuteStmt) Pos ¶
func (n *ExecuteStmt) Pos() int
type ExplainStmt ¶
func (*ExplainStmt) Pos ¶
func (n *ExplainStmt) Pos() int
type FetchDirection ¶
type FetchDirection uint
func (*FetchDirection) Pos ¶
func (n *FetchDirection) Pos() int
type FetchStmt ¶
type FetchStmt struct { Direction FetchDirection HowMany int64 Portalname *string Ismove bool }
type FieldSelect ¶
type FieldSelect struct { Xpr Node Arg Node Fieldnum AttrNumber Resulttype Oid Resulttypmod int32 Resultcollid Oid }
func (*FieldSelect) Pos ¶
func (n *FieldSelect) Pos() int
type FieldStore ¶
func (*FieldStore) Pos ¶
func (n *FieldStore) Pos() int
type FuncCall ¶
type FuncExpr ¶
type FuncParam ¶
type FuncParam struct { Name *string Type *TypeName DefExpr Node // Will always be &ast.TODO Mode FuncParamMode }
type FuncParamMode ¶
type FuncParamMode int
const ( FuncParamIn FuncParamMode = iota FuncParamOut FuncParamInOut FuncParamVariadic FuncParamTable FuncParamDefault )
type FunctionParameter ¶
type FunctionParameter struct { Name *string ArgType *TypeName Mode FunctionParameterMode Defexpr Node }
func (*FunctionParameter) Pos ¶
func (n *FunctionParameter) Pos() int
type FunctionParameterMode ¶
type FunctionParameterMode uint
func (*FunctionParameterMode) Pos ¶
func (n *FunctionParameterMode) Pos() int
type GrantObjectType ¶
type GrantObjectType uint
func (*GrantObjectType) Pos ¶
func (n *GrantObjectType) Pos() int
type GrantRoleStmt ¶
type GrantRoleStmt struct { GrantedRoles *List GranteeRoles *List IsGrant bool AdminOpt bool Grantor *RoleSpec Behavior DropBehavior }
func (*GrantRoleStmt) Pos ¶
func (n *GrantRoleStmt) Pos() int
type GrantStmt ¶
type GrantStmt struct { IsGrant bool Targtype GrantTargetType Objtype GrantObjectType Objects *List Privileges *List Grantees *List GrantOption bool Behavior DropBehavior }
type GrantTargetType ¶
type GrantTargetType uint
func (*GrantTargetType) Pos ¶
func (n *GrantTargetType) Pos() int
type GroupingFunc ¶
type GroupingFunc struct { Xpr Node Args *List Refs *List Cols *List Agglevelsup Index Location int }
func (*GroupingFunc) Pos ¶
func (n *GroupingFunc) Pos() int
type GroupingSet ¶
type GroupingSet struct { Kind GroupingSetKind Content *List Location int }
func (*GroupingSet) Pos ¶
func (n *GroupingSet) Pos() int
type GroupingSetKind ¶
type GroupingSetKind uint
func (*GroupingSetKind) Pos ¶
func (n *GroupingSetKind) Pos() int
type ImportForeignSchemaStmt ¶
type ImportForeignSchemaStmt struct { ServerName *string RemoteSchema *string LocalSchema *string ListType ImportForeignSchemaType TableList *List Options *List }
func (*ImportForeignSchemaStmt) Pos ¶
func (n *ImportForeignSchemaStmt) Pos() int
type ImportForeignSchemaType ¶
type ImportForeignSchemaType uint
func (*ImportForeignSchemaType) Pos ¶
func (n *ImportForeignSchemaType) Pos() int
type In ¶
type In struct { // Expr is the value expression to be compared. Expr Node // List is the list expression in compare list. List []Node // Not is true, the expression is "not in". Not bool // Sel is the subquery, may be rewritten to other type of expression. Sel Node Location int }
In describes a 'select foo in (bar, baz)' type statement, though there are multiple important variants handled.
type IndexElem ¶
type IndexStmt ¶
type IndexStmt struct { Idxname *string Relation *RangeVar AccessMethod *string TableSpace *string IndexParams *List Options *List WhereClause Node ExcludeOpNames *List Idxcomment *string IndexOid Oid OldNode Oid Unique bool Primary bool Isconstraint bool Deferrable bool Initdeferred bool Transformed bool Concurrent bool IfNotExists bool }
type InferClause ¶
func (*InferClause) Pos ¶
func (n *InferClause) Pos() int
type InferenceElem ¶
func (*InferenceElem) Pos ¶
func (n *InferenceElem) Pos() int
type InlineCodeBlock ¶
func (*InlineCodeBlock) Pos ¶
func (n *InlineCodeBlock) Pos() int
type InsertStmt ¶
type InsertStmt struct { Relation *RangeVar Cols *List SelectStmt Node OnConflictClause *OnConflictClause ReturningList *List WithClause *WithClause Override OverridingKind }
func (*InsertStmt) Pos ¶
func (n *InsertStmt) Pos() int
type IntoClause ¶
type IntoClause struct { Rel *RangeVar ColNames *List Options *List OnCommit OnCommitAction TableSpaceName *string ViewQuery Node SkipData bool }
func (*IntoClause) Pos ¶
func (n *IntoClause) Pos() int
type JoinExpr ¶
type JoinType ¶
type JoinType uint
const ( JoinTypeInner JoinType JoinTypeLeft JoinTypeFull JoinTypeRight JoinTypeSemi JoinTypeAnti JoinTypeUniqueOuter JoinTypeUniqueInner )
JoinType is the reported type of the join Enum copies https://github.com/pganalyze/libpg_query/blob/13-latest/protobuf/pg_query.proto#L2890-L2901
type ListenStmt ¶
type ListenStmt struct {
Conditionname *string
}
func (*ListenStmt) Pos ¶
func (n *ListenStmt) Pos() int
type LocalTransactionId ¶
type LocalTransactionId uint32
func (*LocalTransactionId) Pos ¶
func (n *LocalTransactionId) Pos() int
type LockClauseStrength ¶
type LockClauseStrength uint
func (*LockClauseStrength) Pos ¶
func (n *LockClauseStrength) Pos() int
type LockWaitPolicy ¶
type LockWaitPolicy uint
func (*LockWaitPolicy) Pos ¶
func (n *LockWaitPolicy) Pos() int
type LockingClause ¶
type LockingClause struct { LockedRels *List Strength LockClauseStrength WaitPolicy LockWaitPolicy }
func (*LockingClause) Pos ¶
func (n *LockingClause) Pos() int
type MinMaxExpr ¶
type MinMaxExpr struct { Xpr Node Minmaxtype Oid Minmaxcollid Oid Inputcollid Oid Op MinMaxOp Args *List Location int }
func (*MinMaxExpr) Pos ¶
func (n *MinMaxExpr) Pos() int
type MultiAssignRef ¶
func (*MultiAssignRef) Pos ¶
func (n *MultiAssignRef) Pos() int
type MultiXactId ¶
type MultiXactId TransactionId
func (*MultiXactId) Pos ¶
func (n *MultiXactId) Pos() int
type MultiXactOffset ¶
type MultiXactOffset uint32
func (*MultiXactOffset) Pos ¶
func (n *MultiXactOffset) Pos() int
type NamedArgExpr ¶
func (*NamedArgExpr) Pos ¶
func (n *NamedArgExpr) Pos() int
type NextValueExpr ¶
func (*NextValueExpr) Pos ¶
func (n *NextValueExpr) Pos() int
type NotifyStmt ¶
func (*NotifyStmt) Pos ¶
func (n *NotifyStmt) Pos() int
type NullTest ¶
type NullTest struct { Xpr Node Arg Node Nulltesttype NullTestType Argisrow bool Location int }
type NullTestType ¶
type NullTestType uint
func (*NullTestType) Pos ¶
func (n *NullTestType) Pos() int
type ObjectWithArgs ¶
func (*ObjectWithArgs) Pos ¶
func (n *ObjectWithArgs) Pos() int
type OnCommitAction ¶
type OnCommitAction uint
func (*OnCommitAction) Pos ¶
func (n *OnCommitAction) Pos() int
type OnConflictAction ¶
type OnConflictAction uint
func (*OnConflictAction) Pos ¶
func (n *OnConflictAction) Pos() int
type OnConflictClause ¶
type OnConflictClause struct { Action OnConflictAction Infer *InferClause TargetList *List WhereClause Node Location int }
func (*OnConflictClause) Pos ¶
func (n *OnConflictClause) Pos() int
type OnConflictExpr ¶
type OnConflictExpr struct { Action OnConflictAction ArbiterElems *List ArbiterWhere Node Constraint Oid OnConflictSet *List OnConflictWhere Node ExclRelIndex int ExclRelTlist *List }
func (*OnConflictExpr) Pos ¶
func (n *OnConflictExpr) Pos() int
type OpExpr ¶
type OverridingKind ¶
type OverridingKind uint
func (*OverridingKind) Pos ¶
func (n *OverridingKind) Pos() int
type Param ¶
type ParamExecData ¶
func (*ParamExecData) Pos ¶
func (n *ParamExecData) Pos() int
type ParamExternData ¶
func (*ParamExternData) Pos ¶
func (n *ParamExternData) Pos() int
type ParamListInfo ¶
type ParamListInfo ParamListInfoData
func (*ParamListInfo) Pos ¶
func (n *ParamListInfo) Pos() int
type ParamListInfoData ¶
type ParamListInfoData struct { ParamFetchArg interface{} ParserSetupArg interface{} NumParams int ParamMask []uint32 }
func (*ParamListInfoData) Pos ¶
func (n *ParamListInfoData) Pos() int
type PartitionBoundSpec ¶
type PartitionBoundSpec struct { Strategy byte Listdatums *List Lowerdatums *List Upperdatums *List Location int }
func (*PartitionBoundSpec) Pos ¶
func (n *PartitionBoundSpec) Pos() int
type PartitionCmd ¶
type PartitionCmd struct { Name *RangeVar Bound *PartitionBoundSpec }
func (*PartitionCmd) Pos ¶
func (n *PartitionCmd) Pos() int
type PartitionElem ¶
func (*PartitionElem) Pos ¶
func (n *PartitionElem) Pos() int
type PartitionRangeDatum ¶
type PartitionRangeDatum struct { Kind PartitionRangeDatumKind Value Node Location int }
func (*PartitionRangeDatum) Pos ¶
func (n *PartitionRangeDatum) Pos() int
type PartitionRangeDatumKind ¶
type PartitionRangeDatumKind uint
func (*PartitionRangeDatumKind) Pos ¶
func (n *PartitionRangeDatumKind) Pos() int
type PartitionSpec ¶
func (*PartitionSpec) Pos ¶
func (n *PartitionSpec) Pos() int
type PrepareStmt ¶
func (*PrepareStmt) Pos ¶
func (n *PrepareStmt) Pos() int
type Query ¶
type Query struct { CommandType CmdType QuerySource QuerySource QueryId uint32 CanSetTag bool UtilityStmt Node ResultRelation int HasAggs bool HasWindowFuncs bool HasTargetSrfs bool HasSubLinks bool HasDistinctOn bool HasRecursive bool HasModifyingCte bool HasForUpdate bool HasRowSecurity bool CteList *List Rtable *List Jointree *FromExpr TargetList *List Override OverridingKind OnConflict *OnConflictExpr ReturningList *List GroupClause *List GroupingSets *List HavingQual Node WindowClause *List DistinctClause *List SortClause *List LimitOffset Node LimitCount Node RowMarks *List SetOperations Node ConstraintDeps *List WithCheckOptions *List StmtLocation int StmtLen int }
type QuerySource ¶
type QuerySource uint
func (*QuerySource) Pos ¶
func (n *QuerySource) Pos() int
type RangeFunction ¶
type RangeFunction struct { Lateral bool Ordinality bool IsRowsfrom bool Functions *List Alias *Alias Coldeflist *List }
func (*RangeFunction) Pos ¶
func (n *RangeFunction) Pos() int
type RangeSubselect ¶
func (*RangeSubselect) Pos ¶
func (n *RangeSubselect) Pos() int
type RangeTableFunc ¶
type RangeTableFunc struct { Lateral bool Docexpr Node Rowexpr Node Namespaces *List Columns *List Alias *Alias Location int }
func (*RangeTableFunc) Pos ¶
func (n *RangeTableFunc) Pos() int
type RangeTableFuncCol ¶
type RangeTableFuncCol struct { Colname *string TypeName *TypeName ForOrdinality bool IsNotNull bool Colexpr Node Coldefexpr Node Location int }
func (*RangeTableFuncCol) Pos ¶
func (n *RangeTableFuncCol) Pos() int
type RangeTableSample ¶
func (*RangeTableSample) Pos ¶
func (n *RangeTableSample) Pos() int
type RangeTblEntry ¶
type RangeTblEntry struct { Rtekind RTEKind Relid Oid Relkind byte Tablesample *TableSampleClause Subquery *Query SecurityBarrier bool Jointype JoinType Joinaliasvars *List Functions *List Funcordinality bool Tablefunc *TableFunc ValuesLists *List Ctename *string Ctelevelsup Index SelfReference bool Coltypes *List Coltypmods *List Colcollations *List Enrname *string Enrtuples float64 Alias *Alias Eref *Alias Lateral bool Inh bool InFromCl bool RequiredPerms AclMode CheckAsUser Oid SelectedCols []uint32 InsertedCols []uint32 UpdatedCols []uint32 SecurityQuals *List }
func (*RangeTblEntry) Pos ¶
func (n *RangeTblEntry) Pos() int
type RangeTblFunction ¶
type RangeTblFunction struct { Funcexpr Node Funccolcount int Funccolnames *List Funccoltypes *List Funccoltypmods *List Funccolcollations *List Funcparams []uint32 }
func (*RangeTblFunction) Pos ¶
func (n *RangeTblFunction) Pos() int
type RangeTblRef ¶
type RangeTblRef struct {
Rtindex int
}
func (*RangeTblRef) Pos ¶
func (n *RangeTblRef) Pos() int
type RangeVar ¶
type ReassignOwnedStmt ¶
func (*ReassignOwnedStmt) Pos ¶
func (n *ReassignOwnedStmt) Pos() int
type RefreshMatViewStmt ¶
func (*RefreshMatViewStmt) Pos ¶
func (n *RefreshMatViewStmt) Pos() int
type RegProcedure ¶
type RegProcedure regproc
func (*RegProcedure) Pos ¶
func (n *RegProcedure) Pos() int
type ReindexObjectType ¶
type ReindexObjectType uint
func (*ReindexObjectType) Pos ¶
func (n *ReindexObjectType) Pos() int
type ReindexStmt ¶
type ReindexStmt struct { Kind ReindexObjectType Relation *RangeVar Name *string Options int }
func (*ReindexStmt) Pos ¶
func (n *ReindexStmt) Pos() int
type RelabelType ¶
type RelabelType struct { Xpr Node Arg Node Resulttype Oid Resulttypmod int32 Resultcollid Oid Relabelformat CoercionForm Location int }
func (*RelabelType) Pos ¶
func (n *RelabelType) Pos() int
type RenameColumnStmt ¶
func (*RenameColumnStmt) Pos ¶
func (n *RenameColumnStmt) Pos() int
type RenameStmt ¶
type RenameStmt struct { RenameType ObjectType RelationType ObjectType Relation *RangeVar Object Node Subname *string Newname *string Behavior DropBehavior MissingOk bool }
func (*RenameStmt) Pos ¶
func (n *RenameStmt) Pos() int
type RenameTableStmt ¶
func (*RenameTableStmt) Pos ¶
func (n *RenameTableStmt) Pos() int
type RenameTypeStmt ¶
func (*RenameTypeStmt) Pos ¶
func (n *RenameTypeStmt) Pos() int
type ReplicaIdentityStmt ¶
func (*ReplicaIdentityStmt) Pos ¶
func (n *ReplicaIdentityStmt) Pos() int
type RoleSpec ¶
type RoleSpec struct { Roletype RoleSpecType Rolename *string Location int }
type RoleSpecType ¶
type RoleSpecType uint
func (*RoleSpecType) Pos ¶
func (n *RoleSpecType) Pos() int
type RoleStmtType ¶
type RoleStmtType uint
func (*RoleStmtType) Pos ¶
func (n *RoleStmtType) Pos() int
type RowCompareExpr ¶
type RowCompareExpr struct { Xpr Node Rctype RowCompareType Opnos *List Opfamilies *List Inputcollids *List Largs *List Rargs *List }
func (*RowCompareExpr) Pos ¶
func (n *RowCompareExpr) Pos() int
type RowCompareType ¶
type RowCompareType uint
func (*RowCompareType) Pos ¶
func (n *RowCompareType) Pos() int
type RowExpr ¶
type RowMarkClause ¶
type RowMarkClause struct { Rti Index Strength LockClauseStrength WaitPolicy LockWaitPolicy PushedDown bool }
func (*RowMarkClause) Pos ¶
func (n *RowMarkClause) Pos() int
type RuleStmt ¶
type SQLValueFunction ¶
type SQLValueFunction struct { Xpr Node Op SQLValueFunctionOp Type Oid Typmod int32 Location int }
func (*SQLValueFunction) Pos ¶
func (n *SQLValueFunction) Pos() int
type SQLValueFunctionOp ¶
type SQLValueFunctionOp uint
func (*SQLValueFunctionOp) Pos ¶
func (n *SQLValueFunctionOp) Pos() int
type ScalarArrayOpExpr ¶
type ScalarArrayOpExpr struct { Xpr Node Opno Oid Opfuncid Oid UseOr bool Inputcollid Oid Args *List Location int }
func (*ScalarArrayOpExpr) Pos ¶
func (n *ScalarArrayOpExpr) Pos() int
type ScanDirection ¶
type ScanDirection uint
func (*ScanDirection) Pos ¶
func (n *ScanDirection) Pos() int
type SecLabelStmt ¶
type SecLabelStmt struct { Objtype ObjectType Object Node Provider *string Label *string }
func (*SecLabelStmt) Pos ¶
func (n *SecLabelStmt) Pos() int
type SelectStmt ¶
type SelectStmt struct { DistinctClause *List IntoClause *IntoClause TargetList *List FromClause *List WhereClause Node GroupClause *List HavingClause Node WindowClause *List ValuesLists *List SortClause *List LimitOffset Node LimitCount Node LockingClause *List WithClause *WithClause Op SetOperation All bool Larg *SelectStmt Rarg *SelectStmt }
func (*SelectStmt) Pos ¶
func (n *SelectStmt) Pos() int
type Selectivity ¶
type Selectivity float64
func (*Selectivity) Pos ¶
func (n *Selectivity) Pos() int
type SetOpStrategy ¶
type SetOpStrategy uint
func (*SetOpStrategy) Pos ¶
func (n *SetOpStrategy) Pos() int
type SetOperation ¶
type SetOperation uint
const ( None SetOperation = iota Union Intersect Except )
func (*SetOperation) Pos ¶
func (n *SetOperation) Pos() int
func (SetOperation) String ¶
func (n SetOperation) String() string
type SetOperationStmt ¶
type SetOperationStmt struct { Op SetOperation All bool Larg Node Rarg Node ColTypes *List ColTypmods *List ColCollations *List GroupClauses *List }
func (*SetOperationStmt) Pos ¶
func (n *SetOperationStmt) Pos() int
type SetToDefault ¶
func (*SetToDefault) Pos ¶
func (n *SetToDefault) Pos() int
type SortBy ¶
type SortBy struct { Node Node SortbyDir SortByDir SortbyNulls SortByNulls UseOp *List Location int }
type SortByNulls ¶
type SortByNulls uint
func (*SortByNulls) Pos ¶
func (n *SortByNulls) Pos() int
type SortGroupClause ¶
type SortGroupClause struct { TleSortGroupRef Index Eqop Oid Sortop Oid NullsFirst bool Hashable bool }
func (*SortGroupClause) Pos ¶
func (n *SortGroupClause) Pos() int
type SubLink ¶
type SubLinkType ¶
type SubLinkType uint
const ( EXISTS_SUBLINK SubLinkType = iota ALL_SUBLINK ANY_SUBLINK ROWCOMPARE_SUBLINK EXPR_SUBLINK MULTIEXPR_SUBLINK ARRAY_SUBLINK CTE_SUBLINK /* for SubPlans only */ )
type SubPlan ¶
type SubPlan struct { Xpr Node SubLinkType SubLinkType Testexpr Node ParamIds *List PlanId int PlanName *string FirstColType Oid FirstColTypmod int32 FirstColCollation Oid UseHashTable bool UnknownEqFalse bool ParallelSafe bool SetParam *List ParParam *List Args *List StartupCost Cost PerCallCost Cost }
type SubTransactionId ¶
type SubTransactionId uint32
func (*SubTransactionId) Pos ¶
func (n *SubTransactionId) Pos() int
type TableFunc ¶
type TableLikeClause ¶
func (*TableLikeClause) Pos ¶
func (n *TableLikeClause) Pos() int
type TableLikeOption ¶
type TableLikeOption uint
func (*TableLikeOption) Pos ¶
func (n *TableLikeOption) Pos() int
type TableSampleClause ¶
func (*TableSampleClause) Pos ¶
func (n *TableSampleClause) Pos() int
type TargetEntry ¶
type TargetEntry struct { Xpr Node Expr Node Resno AttrNumber Resname *string Ressortgroupref Index Resorigtbl Oid Resorigcol AttrNumber Resjunk bool }
func (*TargetEntry) Pos ¶
func (n *TargetEntry) Pos() int
type TransactionId ¶
type TransactionId uint32
func (*TransactionId) Pos ¶
func (n *TransactionId) Pos() int
type TransactionStmt ¶
type TransactionStmt struct { Kind TransactionStmtKind Options *List Gid *string }
func (*TransactionStmt) Pos ¶
func (n *TransactionStmt) Pos() int
type TransactionStmtKind ¶
type TransactionStmtKind uint
func (*TransactionStmtKind) Pos ¶
func (n *TransactionStmtKind) Pos() int
type TriggerTransition ¶
func (*TriggerTransition) Pos ¶
func (n *TriggerTransition) Pos() int
type TruncateStmt ¶
type TruncateStmt struct { Relations *List RestartSeqs bool Behavior DropBehavior }
func (*TruncateStmt) Pos ¶
func (n *TruncateStmt) Pos() int
type TypeName ¶
type UnlistenStmt ¶
type UnlistenStmt struct {
Conditionname *string
}
func (*UnlistenStmt) Pos ¶
func (n *UnlistenStmt) Pos() int
type UpdateStmt ¶
type UpdateStmt struct { Relations *List TargetList *List WhereClause Node FromClause *List ReturningList *List WithClause *WithClause }
func (*UpdateStmt) Pos ¶
func (n *UpdateStmt) Pos() int
type VacuumOption ¶
type VacuumOption uint
func (*VacuumOption) Pos ¶
func (n *VacuumOption) Pos() int
type VacuumStmt ¶
func (*VacuumStmt) Pos ¶
func (n *VacuumStmt) Pos() int
type Var ¶
type Var struct { Xpr Node Varno Index Varattno AttrNumber Vartype Oid Vartypmod int32 Varcollid Oid Varlevelsup Index Varnoold Index Varoattno AttrNumber Location int }
type VariableSetKind ¶
type VariableSetKind uint
func (*VariableSetKind) Pos ¶
func (n *VariableSetKind) Pos() int
type VariableSetStmt ¶
type VariableSetStmt struct { Kind VariableSetKind Name *string Args *List IsLocal bool }
func (*VariableSetStmt) Pos ¶
func (n *VariableSetStmt) Pos() int
type VariableShowStmt ¶
type VariableShowStmt struct {
Name *string
}
func (*VariableShowStmt) Pos ¶
func (n *VariableShowStmt) Pos() int
type ViewCheckOption ¶
type ViewCheckOption uint
func (*ViewCheckOption) Pos ¶
func (n *ViewCheckOption) Pos() int
type ViewStmt ¶
type WindowClause ¶
type WindowClause struct { Name *string Refname *string PartitionClause *List OrderClause *List FrameOptions int StartOffset Node EndOffset Node Winref Index CopiedOrder bool }
func (*WindowClause) Pos ¶
func (n *WindowClause) Pos() int
type WindowDef ¶
type WindowFunc ¶
type WindowFunc struct { Xpr Node Winfnoid Oid Wintype Oid Wincollid Oid Inputcollid Oid Args *List Aggfilter Node Winref Index Winstar bool Winagg bool Location int }
func (*WindowFunc) Pos ¶
func (n *WindowFunc) Pos() int
type WithCheckOption ¶
type WithCheckOption struct { Kind WCOKind Relname *string Polname *string Qual Node Cascaded bool }
func (*WithCheckOption) Pos ¶
func (n *WithCheckOption) Pos() int
type WithClause ¶
func (*WithClause) Pos ¶
func (n *WithClause) Pos() int
type XmlExpr ¶
type XmlOptionType ¶
type XmlOptionType uint
func (*XmlOptionType) Pos ¶
func (n *XmlOptionType) Pos() int
type XmlSerialize ¶
type XmlSerialize struct { Xmloption XmlOptionType Expr Node TypeName *TypeName Location int }
func (*XmlSerialize) Pos ¶
func (n *XmlSerialize) Pos() int
Source Files ¶
- a_array_expr.go
- a_const.go
- a_expr.go
- a_expr_kind.go
- a_indices.go
- a_indirection.go
- a_star.go
- access_priv.go
- agg_split.go
- agg_strategy.go
- aggref.go
- alias.go
- alter_collation_stmt.go
- alter_database_set_stmt.go
- alter_database_stmt.go
- alter_default_privileges_stmt.go
- alter_domain_stmt.go
- alter_enum_stmt.go
- alter_event_trig_stmt.go
- alter_extension_contents_stmt.go
- alter_extension_stmt.go
- alter_fdw_stmt.go
- alter_foreign_server_stmt.go
- alter_function_stmt.go
- alter_object_depends_stmt.go
- alter_object_schema_stmt.go
- alter_op_family_stmt.go
- alter_operator_stmt.go
- alter_owner_stmt.go
- alter_policy_stmt.go
- alter_publication_stmt.go
- alter_role_set_stmt.go
- alter_role_stmt.go
- alter_seq_stmt.go
- alter_subscription_stmt.go
- alter_subscription_type.go
- alter_system_stmt.go
- alter_table_cmd.go
- alter_table_move_all_stmt.go
- alter_table_set_schema_stmt.go
- alter_table_space_options_stmt.go
- alter_table_stmt.go
- alter_table_type.go
- alter_ts_config_type.go
- alter_ts_configuration_stmt.go
- alter_ts_dictionary_stmt.go
- alter_type_add_value_stmt.go
- alter_type_rename_value_stmt.go
- alter_type_set_schema_stmt.go
- alter_user_mapping_stmt.go
- alternative_sub_plan.go
- array_coerce_expr.go
- array_expr.go
- array_ref.go
- between_expr.go
- bit_string.go
- block_id_data.go
- bool_expr.go
- bool_expr_type.go
- bool_test_type.go
- boolean.go
- boolean_test_expr.go
- call_stmt.go
- case_expr.go
- case_test_expr.go
- case_when.go
- check_point_stmt.go
- close_portal_stmt.go
- cluster_stmt.go
- cmd_type.go
- coalesce_expr.go
- coerce_to_domain.go
- coerce_to_domain_value.go
- coerce_via_io.go
- coercion_context.go
- coercion_form.go
- collate_clause.go
- collate_expr.go
- column_def.go
- column_ref.go
- comment_on_column_stmt.go
- comment_on_schema_stmt.go
- comment_on_table_stmt.go
- comment_on_type_stmt.go
- comment_stmt.go
- common_table_expr.go
- composite_type_stmt.go
- const.go
- constr_type.go
- constraint.go
- constraints_set_stmt.go
- convert_rowtype_expr.go
- copy_stmt.go
- create_am_stmt.go
- create_cast_stmt.go
- create_conversion_stmt.go
- create_domain_stmt.go
- create_enum_stmt.go
- create_event_trig_stmt.go
- create_extension_stmt.go
- create_fdw_stmt.go
- create_foreign_server_stmt.go
- create_foreign_table_stmt.go
- create_function_stmt.go
- create_op_class_item.go
- create_op_class_stmt.go
- create_op_family_stmt.go
- create_p_lang_stmt.go
- create_policy_stmt.go
- create_publication_stmt.go
- create_range_stmt.go
- create_role_stmt.go
- create_schema_stmt.go
- create_seq_stmt.go
- create_stats_stmt.go
- create_stmt.go
- create_subscription_stmt.go
- create_table_as_stmt.go
- create_table_space_stmt.go
- create_table_stmt.go
- create_transform_stmt.go
- create_trig_stmt.go
- create_user_mapping_stmt.go
- createdb_stmt.go
- current_of_expr.go
- deallocate_stmt.go
- declare_cursor_stmt.go
- def_elem.go
- def_elem_action.go
- define_stmt.go
- delete_stmt.go
- discard_mode.go
- discard_stmt.go
- do_stmt.go
- drop_behavior.go
- drop_function_stmt.go
- drop_owned_stmt.go
- drop_role_stmt.go
- drop_schema_stmt.go
- drop_stmt.go
- drop_subscription_stmt.go
- drop_table_space_stmt.go
- drop_table_stmt.go
- drop_type_stmt.go
- drop_user_mapping_stmt.go
- dropdb_stmt.go
- execute_stmt.go
- explain_stmt.go
- expr.go
- fetch_direction.go
- fetch_stmt.go
- field_select.go
- field_store.go
- float.go
- from_expr.go
- func_call.go
- func_expr.go
- func_name.go
- func_param.go
- func_spec.go
- function_parameter.go
- function_parameter_mode.go
- grant_object_type.go
- grant_role_stmt.go
- grant_stmt.go
- grant_target_type.go
- grouping_func.go
- grouping_set.go
- grouping_set_kind.go
- import_foreign_schema_stmt.go
- import_foreign_schema_type.go
- in.go
- index_elem.go
- index_stmt.go
- infer_clause.go
- inference_elem.go
- inline_code_block.go
- insert_stmt.go
- integer.go
- into_clause.go
- join_expr.go
- join_type.go
- list.go
- listen_stmt.go
- load_stmt.go
- lock_clause_strength.go
- lock_stmt.go
- lock_wait_policy.go
- locking_clause.go
- min_max_expr.go
- min_max_op.go
- multi_assign_ref.go
- named_arg_expr.go
- next_value_expr.go
- node.go
- notify_stmt.go
- null.go
- null_test_expr.go
- null_test_type.go
- object_type.go
- object_with_args.go
- on_commit_action.go
- on_conflict_action.go
- on_conflict_clause.go
- on_conflict_expr.go
- op_expr.go
- overriding_kind.go
- param.go
- param_exec_data.go
- param_extern_data.go
- param_kind.go
- param_list_info_data.go
- param_ref.go
- partition_bound_spec.go
- partition_cmd.go
- partition_elem.go
- partition_range_datum.go
- partition_range_datum_kind.go
- partition_spec.go
- prepare_stmt.go
- query.go
- query_source.go
- range_function.go
- range_subselect.go
- range_table_func.go
- range_table_func_col.go
- range_table_sample.go
- range_tbl_entry.go
- range_tbl_function.go
- range_tbl_ref.go
- range_var.go
- raw_stmt.go
- reassign_owned_stmt.go
- refresh_mat_view_stmt.go
- reindex_object_type.go
- reindex_stmt.go
- relabel_type.go
- rename_column_stmt.go
- rename_stmt.go
- rename_table_stmt.go
- rename_type_stmt.go
- replica_identity_stmt.go
- res_target.go
- role_spec.go
- role_spec_type.go
- role_stmt_type.go
- row_compare_expr.go
- row_compare_type.go
- row_expr.go
- row_mark_clause.go
- rte_kind.go
- rule_stmt.go
- scalar_array_op_expr.go
- scan_direction.go
- sec_label_stmt.go
- select_stmt.go
- set_op_cmd.go
- set_op_strategy.go
- set_operation.go
- set_operation_stmt.go
- set_to_default.go
- sort_by.go
- sort_by_dir.go
- sort_by_nulls.go
- sort_group_clause.go
- sql_value_function.go
- sql_value_function_op.go
- statement.go
- string.go
- sub_link.go
- sub_plan.go
- table_func.go
- table_like_clause.go
- table_like_option.go
- table_name.go
- table_sample_clause.go
- target_entry.go
- todo.go
- transaction_stmt.go
- transaction_stmt_kind.go
- trigger_transition.go
- truncate_stmt.go
- type_cast.go
- type_name.go
- typedefs.go
- unlisten_stmt.go
- update_stmt.go
- vacuum_option.go
- vacuum_stmt.go
- var.go
- varatt_external.go
- variable_set_kind.go
- variable_set_stmt.go
- variable_show_stmt.go
- vartag_external.go
- view_check_option.go
- view_stmt.go
- wco_kind.go
- window_clause.go
- window_def.go
- window_func.go
- with_check_option.go
- with_clause.go
- xml_expr.go
- xml_expr_op.go
- xml_option_type.go
- xml_serialize.go
Click to show internal directories.
Click to hide internal directories.