ast

package
v1.18.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 27, 2023 License: MIT Imports: 1 Imported by: 0

Documentation ¶

Index ¶

Constants ¶

This section is empty.

Variables ¶

This section is empty.

Functions ¶

This section is empty.

Types ¶

type A_ArrayExpr ¶ added in v1.6.0

type A_ArrayExpr struct {
	Elements *List
	Location int
}

func (*A_ArrayExpr) Pos ¶ added in v1.6.0

func (n *A_ArrayExpr) Pos() int

type A_Const ¶ added in v1.6.0

type A_Const struct {
	Val      Node
	Location int
}

func (*A_Const) Pos ¶ added in v1.6.0

func (n *A_Const) Pos() int

type A_Expr ¶ added in v1.6.0

type A_Expr struct {
	Kind     A_Expr_Kind
	Name     *List
	Lexpr    Node
	Rexpr    Node
	Location int
}

func (*A_Expr) Pos ¶ added in v1.6.0

func (n *A_Expr) Pos() int

type A_Expr_Kind ¶ added in v1.6.0

type A_Expr_Kind uint

func (*A_Expr_Kind) Pos ¶ added in v1.6.0

func (n *A_Expr_Kind) Pos() int

type A_Indices ¶ added in v1.6.0

type A_Indices struct {
	IsSlice bool
	Lidx    Node
	Uidx    Node
}

func (*A_Indices) Pos ¶ added in v1.6.0

func (n *A_Indices) Pos() int

type A_Indirection ¶ added in v1.6.0

type A_Indirection struct {
	Arg         Node
	Indirection *List
}

func (*A_Indirection) Pos ¶ added in v1.6.0

func (n *A_Indirection) Pos() int

type A_Star ¶ added in v1.6.0

type A_Star struct {
}

func (*A_Star) Pos ¶ added in v1.6.0

func (n *A_Star) Pos() int

type AccessPriv ¶ added in v1.6.0

type AccessPriv struct {
	PrivName *string
	Cols     *List
}

func (*AccessPriv) Pos ¶ added in v1.6.0

func (n *AccessPriv) Pos() int

type AclMode ¶ added in v1.6.0

type AclMode uint32

func (*AclMode) Pos ¶ added in v1.6.0

func (n *AclMode) Pos() int

type AggSplit ¶ added in v1.6.0

type AggSplit uint

func (*AggSplit) Pos ¶ added in v1.6.0

func (n *AggSplit) Pos() int

type AggStrategy ¶ added in v1.6.0

type AggStrategy uint

func (*AggStrategy) Pos ¶ added in v1.6.0

func (n *AggStrategy) Pos() int

type Aggref ¶ added in v1.6.0

type Aggref struct {
	Xpr           Node
	Aggfnoid      Oid
	Aggtype       Oid
	Aggcollid     Oid
	Inputcollid   Oid
	Aggtranstype  Oid
	Aggargtypes   *List
	Aggdirectargs *List
	Args          *List
	Aggorder      *List
	Aggdistinct   *List
	Aggfilter     Node
	Aggstar       bool
	Aggvariadic   bool
	Aggkind       byte
	Agglevelsup   Index
	Aggsplit      AggSplit
	Location      int
}

func (*Aggref) Pos ¶ added in v1.6.0

func (n *Aggref) Pos() int

type Alias ¶ added in v1.6.0

type Alias struct {
	Aliasname *string
	Colnames  *List
}

func (*Alias) Pos ¶ added in v1.6.0

func (n *Alias) Pos() int

type AlterCollationStmt ¶ added in v1.6.0

type AlterCollationStmt struct {
	Collname *List
}

func (*AlterCollationStmt) Pos ¶ added in v1.6.0

func (n *AlterCollationStmt) Pos() int

type AlterDatabaseSetStmt ¶ added in v1.6.0

type AlterDatabaseSetStmt struct {
	Dbname  *string
	Setstmt *VariableSetStmt
}

func (*AlterDatabaseSetStmt) Pos ¶ added in v1.6.0

func (n *AlterDatabaseSetStmt) Pos() int

type AlterDatabaseStmt ¶ added in v1.6.0

type AlterDatabaseStmt struct {
	Dbname  *string
	Options *List
}

func (*AlterDatabaseStmt) Pos ¶ added in v1.6.0

func (n *AlterDatabaseStmt) Pos() int

type AlterDefaultPrivilegesStmt ¶ added in v1.6.0

type AlterDefaultPrivilegesStmt struct {
	Options *List
	Action  *GrantStmt
}

func (*AlterDefaultPrivilegesStmt) Pos ¶ added in v1.6.0

type AlterDomainStmt ¶ added in v1.6.0

type AlterDomainStmt struct {
	Subtype   byte
	TypeName  *List
	Name      *string
	Def       Node
	Behavior  DropBehavior
	MissingOk bool
}

func (*AlterDomainStmt) Pos ¶ added in v1.6.0

func (n *AlterDomainStmt) Pos() int

type AlterEnumStmt ¶ added in v1.6.0

type AlterEnumStmt struct {
	TypeName           *List
	OldVal             *string
	NewVal             *string
	NewValNeighbor     *string
	NewValIsAfter      bool
	SkipIfNewValExists bool
}

func (*AlterEnumStmt) Pos ¶ added in v1.6.0

func (n *AlterEnumStmt) Pos() int

type AlterEventTrigStmt ¶ added in v1.6.0

type AlterEventTrigStmt struct {
	Trigname  *string
	Tgenabled byte
}

func (*AlterEventTrigStmt) Pos ¶ added in v1.6.0

func (n *AlterEventTrigStmt) Pos() int

type AlterExtensionContentsStmt ¶ added in v1.6.0

type AlterExtensionContentsStmt struct {
	Extname *string
	Action  int
	Objtype ObjectType
	Object  Node
}

func (*AlterExtensionContentsStmt) Pos ¶ added in v1.6.0

type AlterExtensionStmt ¶ added in v1.6.0

type AlterExtensionStmt struct {
	Extname *string
	Options *List
}

func (*AlterExtensionStmt) Pos ¶ added in v1.6.0

func (n *AlterExtensionStmt) Pos() int

type AlterFdwStmt ¶ added in v1.6.0

type AlterFdwStmt struct {
	Fdwname     *string
	FuncOptions *List
	Options     *List
}

func (*AlterFdwStmt) Pos ¶ added in v1.6.0

func (n *AlterFdwStmt) Pos() int

type AlterForeignServerStmt ¶ added in v1.6.0

type AlterForeignServerStmt struct {
	Servername *string
	Version    *string
	Options    *List
	HasVersion bool
}

func (*AlterForeignServerStmt) Pos ¶ added in v1.6.0

func (n *AlterForeignServerStmt) Pos() int

type AlterFunctionStmt ¶ added in v1.6.0

type AlterFunctionStmt struct {
	Func    *ObjectWithArgs
	Actions *List
}

func (*AlterFunctionStmt) Pos ¶ added in v1.6.0

func (n *AlterFunctionStmt) Pos() int

type AlterObjectDependsStmt ¶ added in v1.6.0

type AlterObjectDependsStmt struct {
	ObjectType ObjectType
	Relation   *RangeVar
	Object     Node
	Extname    Node
}

func (*AlterObjectDependsStmt) Pos ¶ added in v1.6.0

func (n *AlterObjectDependsStmt) Pos() int

type AlterObjectSchemaStmt ¶ added in v1.6.0

type AlterObjectSchemaStmt struct {
	ObjectType ObjectType
	Relation   *RangeVar
	Object     Node
	Newschema  *string
	MissingOk  bool
}

func (*AlterObjectSchemaStmt) Pos ¶ added in v1.6.0

func (n *AlterObjectSchemaStmt) Pos() int

type AlterOpFamilyStmt ¶ added in v1.6.0

type AlterOpFamilyStmt struct {
	Opfamilyname *List
	Amname       *string
	IsDrop       bool
	Items        *List
}

func (*AlterOpFamilyStmt) Pos ¶ added in v1.6.0

func (n *AlterOpFamilyStmt) Pos() int

type AlterOperatorStmt ¶ added in v1.6.0

type AlterOperatorStmt struct {
	Opername *ObjectWithArgs
	Options  *List
}

func (*AlterOperatorStmt) Pos ¶ added in v1.6.0

func (n *AlterOperatorStmt) Pos() int

type AlterOwnerStmt ¶ added in v1.6.0

type AlterOwnerStmt struct {
	ObjectType ObjectType
	Relation   *RangeVar
	Object     Node
	Newowner   *RoleSpec
}

func (*AlterOwnerStmt) Pos ¶ added in v1.6.0

func (n *AlterOwnerStmt) Pos() int

type AlterPolicyStmt ¶ added in v1.6.0

type AlterPolicyStmt struct {
	PolicyName *string
	Table      *RangeVar
	Roles      *List
	Qual       Node
	WithCheck  Node
}

func (*AlterPolicyStmt) Pos ¶ added in v1.6.0

func (n *AlterPolicyStmt) Pos() int

type AlterPublicationStmt ¶ added in v1.6.0

type AlterPublicationStmt struct {
	Pubname      *string
	Options      *List
	Tables       *List
	ForAllTables bool
	TableAction  DefElemAction
}

func (*AlterPublicationStmt) Pos ¶ added in v1.6.0

func (n *AlterPublicationStmt) Pos() int

type AlterRoleSetStmt ¶ added in v1.6.0

type AlterRoleSetStmt struct {
	Role     *RoleSpec
	Database *string
	Setstmt  *VariableSetStmt
}

func (*AlterRoleSetStmt) Pos ¶ added in v1.6.0

func (n *AlterRoleSetStmt) Pos() int

type AlterRoleStmt ¶ added in v1.6.0

type AlterRoleStmt struct {
	Role    *RoleSpec
	Options *List
	Action  int
}

func (*AlterRoleStmt) Pos ¶ added in v1.6.0

func (n *AlterRoleStmt) Pos() int

type AlterSeqStmt ¶ added in v1.6.0

type AlterSeqStmt struct {
	Sequence    *RangeVar
	Options     *List
	ForIdentity bool
	MissingOk   bool
}

func (*AlterSeqStmt) Pos ¶ added in v1.6.0

func (n *AlterSeqStmt) Pos() int

type AlterSubscriptionStmt ¶ added in v1.6.0

type AlterSubscriptionStmt struct {
	Kind        AlterSubscriptionType
	Subname     *string
	Conninfo    *string
	Publication *List
	Options     *List
}

func (*AlterSubscriptionStmt) Pos ¶ added in v1.6.0

func (n *AlterSubscriptionStmt) Pos() int

type AlterSubscriptionType ¶ added in v1.6.0

type AlterSubscriptionType uint

func (*AlterSubscriptionType) Pos ¶ added in v1.6.0

func (n *AlterSubscriptionType) Pos() int

type AlterSystemStmt ¶ added in v1.6.0

type AlterSystemStmt struct {
	Setstmt *VariableSetStmt
}

func (*AlterSystemStmt) Pos ¶ added in v1.6.0

func (n *AlterSystemStmt) Pos() int

type AlterTSConfigType ¶ added in v1.6.0

type AlterTSConfigType uint

func (*AlterTSConfigType) Pos ¶ added in v1.6.0

func (n *AlterTSConfigType) Pos() int

type AlterTSConfigurationStmt ¶ added in v1.6.0

type AlterTSConfigurationStmt struct {
	Kind      AlterTSConfigType
	Cfgname   *List
	Tokentype *List
	Dicts     *List
	Override  bool
	Replace   bool
	MissingOk bool
}

func (*AlterTSConfigurationStmt) Pos ¶ added in v1.6.0

func (n *AlterTSConfigurationStmt) Pos() int

type AlterTSDictionaryStmt ¶ added in v1.6.0

type AlterTSDictionaryStmt struct {
	Dictname *List
	Options  *List
}

func (*AlterTSDictionaryStmt) Pos ¶ added in v1.6.0

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 ¶ added in v1.6.0

type AlterTableMoveAllStmt struct {
	OrigTablespacename *string
	Objtype            ObjectType
	Roles              *List
	NewTablespacename  *string
	Nowait             bool
}

func (*AlterTableMoveAllStmt) Pos ¶ added in v1.6.0

func (n *AlterTableMoveAllStmt) Pos() int

type AlterTableSetSchemaStmt ¶

type AlterTableSetSchemaStmt struct {
	Table     *TableName
	NewSchema *string
}

func (*AlterTableSetSchemaStmt) Pos ¶

func (n *AlterTableSetSchemaStmt) Pos() int

type AlterTableSpaceOptionsStmt ¶ added in v1.6.0

type AlterTableSpaceOptionsStmt struct {
	Tablespacename *string
	Options        *List
	IsReset        bool
}

func (*AlterTableSpaceOptionsStmt) Pos ¶ added in v1.6.0

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 ¶ added in v1.7.0

func (t AlterTableType) String() string

type AlterTableType_PG ¶ added in v1.6.0

type AlterTableType_PG uint

func (*AlterTableType_PG) Pos ¶ added in v1.6.0

func (n *AlterTableType_PG) Pos() int

type AlterTypeAddValueStmt ¶ added in v1.2.0

type AlterTypeAddValueStmt struct {
	Type               *TypeName
	NewValue           *string
	NewValHasNeighbor  bool
	NewValNeighbor     *string
	NewValIsAfter      bool
	SkipIfNewValExists bool
}

func (*AlterTypeAddValueStmt) Pos ¶ added in v1.2.0

func (n *AlterTypeAddValueStmt) Pos() int

type AlterTypeRenameValueStmt ¶ added in v1.2.0

type AlterTypeRenameValueStmt struct {
	Type     *TypeName
	OldValue *string
	NewValue *string
}

func (*AlterTypeRenameValueStmt) Pos ¶ added in v1.2.0

func (n *AlterTypeRenameValueStmt) Pos() int

type AlterTypeSetSchemaStmt ¶ added in v1.18.0

type AlterTypeSetSchemaStmt struct {
	Type      *TypeName
	NewSchema *string
}

func (*AlterTypeSetSchemaStmt) Pos ¶ added in v1.18.0

func (n *AlterTypeSetSchemaStmt) Pos() int

type AlterUserMappingStmt ¶ added in v1.6.0

type AlterUserMappingStmt struct {
	User       *RoleSpec
	Servername *string
	Options    *List
}

func (*AlterUserMappingStmt) Pos ¶ added in v1.6.0

func (n *AlterUserMappingStmt) Pos() int

type AlternativeSubPlan ¶ added in v1.6.0

type AlternativeSubPlan struct {
	Xpr      Node
	Subplans *List
}

func (*AlternativeSubPlan) Pos ¶ added in v1.6.0

func (n *AlternativeSubPlan) Pos() int

type ArrayCoerceExpr ¶ added in v1.6.0

type ArrayCoerceExpr struct {
	Xpr          Node
	Arg          Node
	Elemfuncid   Oid
	Resulttype   Oid
	Resulttypmod int32
	Resultcollid Oid
	IsExplicit   bool
	Coerceformat CoercionForm
	Location     int
}

func (*ArrayCoerceExpr) Pos ¶ added in v1.6.0

func (n *ArrayCoerceExpr) Pos() int

type ArrayExpr ¶ added in v1.6.0

type ArrayExpr struct {
	Xpr           Node
	ArrayTypeid   Oid
	ArrayCollid   Oid
	ElementTypeid Oid
	Elements      *List
	Multidims     bool
	Location      int
}

func (*ArrayExpr) Pos ¶ added in v1.6.0

func (n *ArrayExpr) Pos() int

type ArrayRef ¶ added in v1.6.0

type ArrayRef struct {
	Xpr             Node
	Refarraytype    Oid
	Refelemtype     Oid
	Reftypmod       int32
	Refcollid       Oid
	Refupperindexpr *List
	Reflowerindexpr *List
	Refexpr         Node
	Refassgnexpr    Node
}

func (*ArrayRef) Pos ¶ added in v1.6.0

func (n *ArrayRef) Pos() int

type AttrNumber ¶ added in v1.6.0

type AttrNumber int16

func (*AttrNumber) Pos ¶ added in v1.6.0

func (n *AttrNumber) Pos() int

type BetweenExpr ¶ added in v1.11.0

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 ¶ added in v1.11.0

func (n *BetweenExpr) Pos() int

type BitString ¶ added in v1.6.0

type BitString struct {
	Str string
}

func (*BitString) Pos ¶ added in v1.6.0

func (n *BitString) Pos() int

type BlockId ¶ added in v1.6.0

type BlockId BlockIdData

func (*BlockId) Pos ¶ added in v1.6.0

func (n *BlockId) Pos() int

type BlockIdData ¶ added in v1.6.0

type BlockIdData struct {
	BiHi uint16
	BiLo uint16
}

func (*BlockIdData) Pos ¶ added in v1.6.0

func (n *BlockIdData) Pos() int

type BlockNumber ¶ added in v1.6.0

type BlockNumber uint32

func (*BlockNumber) Pos ¶ added in v1.6.0

func (n *BlockNumber) Pos() int

type BoolExpr ¶ added in v1.6.0

type BoolExpr struct {
	Xpr      Node
	Boolop   BoolExprType
	Args     *List
	Location int
}

func (*BoolExpr) Pos ¶ added in v1.6.0

func (n *BoolExpr) Pos() int

type BoolExprType ¶ added in v1.6.0

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 ¶ added in v1.6.0

func (n *BoolExprType) Pos() int

type BoolTestType ¶ added in v1.6.0

type BoolTestType uint

func (*BoolTestType) Pos ¶ added in v1.6.0

func (n *BoolTestType) Pos() int

type Boolean ¶ added in v1.18.0

type Boolean struct {
	Boolval bool
}

func (*Boolean) Pos ¶ added in v1.18.0

func (n *Boolean) Pos() int

type BooleanTest ¶ added in v1.6.0

type BooleanTest struct {
	Xpr          Node
	Arg          Node
	Booltesttype BoolTestType
	Location     int
}

func (*BooleanTest) Pos ¶ added in v1.6.0

func (n *BooleanTest) Pos() int

type CallStmt ¶ added in v1.13.0

type CallStmt struct {
	FuncCall *FuncCall
}

func (*CallStmt) Pos ¶ added in v1.13.0

func (n *CallStmt) Pos() int

type CaseExpr ¶ added in v1.6.0

type CaseExpr struct {
	Xpr        Node
	Casetype   Oid
	Casecollid Oid
	Arg        Node
	Args       *List
	Defresult  Node
	Location   int
}

func (*CaseExpr) Pos ¶ added in v1.6.0

func (n *CaseExpr) Pos() int

type CaseTestExpr ¶ added in v1.6.0

type CaseTestExpr struct {
	Xpr       Node
	TypeId    Oid
	TypeMod   int32
	Collation Oid
}

func (*CaseTestExpr) Pos ¶ added in v1.6.0

func (n *CaseTestExpr) Pos() int

type CaseWhen ¶ added in v1.6.0

type CaseWhen struct {
	Xpr      Node
	Expr     Node
	Result   Node
	Location int
}

func (*CaseWhen) Pos ¶ added in v1.6.0

func (n *CaseWhen) Pos() int

type CheckPointStmt ¶ added in v1.6.0

type CheckPointStmt struct {
}

func (*CheckPointStmt) Pos ¶ added in v1.6.0

func (n *CheckPointStmt) Pos() int

type ClosePortalStmt ¶ added in v1.6.0

type ClosePortalStmt struct {
	Portalname *string
}

func (*ClosePortalStmt) Pos ¶ added in v1.6.0

func (n *ClosePortalStmt) Pos() int

type ClusterStmt ¶ added in v1.6.0

type ClusterStmt struct {
	Relation  *RangeVar
	Indexname *string
	Verbose   bool
}

func (*ClusterStmt) Pos ¶ added in v1.6.0

func (n *ClusterStmt) Pos() int

type CmdType ¶ added in v1.6.0

type CmdType uint

func (*CmdType) Pos ¶ added in v1.6.0

func (n *CmdType) Pos() int

type CoalesceExpr ¶ added in v1.6.0

type CoalesceExpr struct {
	Xpr            Node
	Coalescetype   Oid
	Coalescecollid Oid
	Args           *List
	Location       int
}

func (*CoalesceExpr) Pos ¶ added in v1.6.0

func (n *CoalesceExpr) Pos() int

type CoerceToDomain ¶ added in v1.6.0

type CoerceToDomain struct {
	Xpr            Node
	Arg            Node
	Resulttype     Oid
	Resulttypmod   int32
	Resultcollid   Oid
	Coercionformat CoercionForm
	Location       int
}

func (*CoerceToDomain) Pos ¶ added in v1.6.0

func (n *CoerceToDomain) Pos() int

type CoerceToDomainValue ¶ added in v1.6.0

type CoerceToDomainValue struct {
	Xpr       Node
	TypeId    Oid
	TypeMod   int32
	Collation Oid
	Location  int
}

func (*CoerceToDomainValue) Pos ¶ added in v1.6.0

func (n *CoerceToDomainValue) Pos() int

type CoerceViaIO ¶ added in v1.6.0

type CoerceViaIO struct {
	Xpr          Node
	Arg          Node
	Resulttype   Oid
	Resultcollid Oid
	Coerceformat CoercionForm
	Location     int
}

func (*CoerceViaIO) Pos ¶ added in v1.6.0

func (n *CoerceViaIO) Pos() int

type CoercionContext ¶ added in v1.6.0

type CoercionContext uint

func (*CoercionContext) Pos ¶ added in v1.6.0

func (n *CoercionContext) Pos() int

type CoercionForm ¶ added in v1.6.0

type CoercionForm uint

func (*CoercionForm) Pos ¶ added in v1.6.0

func (n *CoercionForm) Pos() int

type CollateClause ¶ added in v1.6.0

type CollateClause struct {
	Arg      Node
	Collname *List
	Location int
}

func (*CollateClause) Pos ¶ added in v1.6.0

func (n *CollateClause) Pos() int

type CollateExpr ¶ added in v1.6.0

type CollateExpr struct {
	Xpr      Node
	Arg      Node
	CollOid  Oid
	Location int
}

func (*CollateExpr) Pos ¶ added in v1.6.0

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
}

func (*ColumnDef) Pos ¶

func (n *ColumnDef) Pos() int

type ColumnRef ¶

type ColumnRef struct {
	Name string

	// From pg.ColumnRef
	Fields   *List
	Location int
}

func (*ColumnRef) Pos ¶

func (n *ColumnRef) Pos() int

type CommandId ¶ added in v1.6.0

type CommandId uint32

func (*CommandId) Pos ¶ added in v1.6.0

func (n *CommandId) Pos() int

type CommentOnColumnStmt ¶

type CommentOnColumnStmt struct {
	Table   *TableName
	Col     *ColumnRef
	Comment *string
}

func (*CommentOnColumnStmt) Pos ¶

func (n *CommentOnColumnStmt) Pos() int

type CommentOnSchemaStmt ¶

type CommentOnSchemaStmt struct {
	Schema  *String
	Comment *string
}

func (*CommentOnSchemaStmt) Pos ¶

func (n *CommentOnSchemaStmt) Pos() int

type CommentOnTableStmt ¶

type CommentOnTableStmt struct {
	Table   *TableName
	Comment *string
}

func (*CommentOnTableStmt) Pos ¶

func (n *CommentOnTableStmt) Pos() int

type CommentOnTypeStmt ¶

type CommentOnTypeStmt struct {
	Type    *TypeName
	Comment *string
}

func (*CommentOnTypeStmt) Pos ¶

func (n *CommentOnTypeStmt) Pos() int

type CommentStmt ¶ added in v1.6.0

type CommentStmt struct {
	Objtype ObjectType
	Object  Node
	Comment *string
}

func (*CommentStmt) Pos ¶ added in v1.6.0

func (n *CommentStmt) Pos() int

type CommonTableExpr ¶ added in v1.6.0

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 ¶ added in v1.6.0

func (n *CommonTableExpr) Pos() int

type CompositeTypeStmt ¶ added in v1.4.0

type CompositeTypeStmt struct {
	TypeName *TypeName
}

func (*CompositeTypeStmt) Pos ¶ added in v1.4.0

func (n *CompositeTypeStmt) Pos() int

type Const ¶ added in v1.6.0

type Const struct {
	Xpr         Node
	Consttype   Oid
	Consttypmod int32
	Constcollid Oid
	Constlen    int
	Constvalue  Datum
	Constisnull bool
	Constbyval  bool
	Location    int
}

func (*Const) Pos ¶ added in v1.6.0

func (n *Const) Pos() int

type ConstrType ¶ added in v1.6.0

type ConstrType uint

func (*ConstrType) Pos ¶ added in v1.6.0

func (n *ConstrType) Pos() int

type Constraint ¶ added in v1.6.0

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 ¶ added in v1.6.0

func (n *Constraint) Pos() int

type ConstraintsSetStmt ¶ added in v1.6.0

type ConstraintsSetStmt struct {
	Constraints *List
	Deferred    bool
}

func (*ConstraintsSetStmt) Pos ¶ added in v1.6.0

func (n *ConstraintsSetStmt) Pos() int

type ConvertRowtypeExpr ¶ added in v1.6.0

type ConvertRowtypeExpr struct {
	Xpr           Node
	Arg           Node
	Resulttype    Oid
	Convertformat CoercionForm
	Location      int
}

func (*ConvertRowtypeExpr) Pos ¶ added in v1.6.0

func (n *ConvertRowtypeExpr) Pos() int

type CopyStmt ¶ added in v1.6.0

type CopyStmt struct {
	Relation  *RangeVar
	Query     Node
	Attlist   *List
	IsFrom    bool
	IsProgram bool
	Filename  *string
	Options   *List
}

func (*CopyStmt) Pos ¶ added in v1.6.0

func (n *CopyStmt) Pos() int

type Cost ¶ added in v1.6.0

type Cost float64

func (*Cost) Pos ¶ added in v1.6.0

func (n *Cost) Pos() int

type CreateAmStmt ¶ added in v1.6.0

type CreateAmStmt struct {
	Amname      *string
	HandlerName *List
	Amtype      byte
}

func (*CreateAmStmt) Pos ¶ added in v1.6.0

func (n *CreateAmStmt) Pos() int

type CreateCastStmt ¶ added in v1.6.0

type CreateCastStmt struct {
	Sourcetype *TypeName
	Targettype *TypeName
	Func       *ObjectWithArgs
	Context    CoercionContext
	Inout      bool
}

func (*CreateCastStmt) Pos ¶ added in v1.6.0

func (n *CreateCastStmt) Pos() int

type CreateConversionStmt ¶ added in v1.6.0

type CreateConversionStmt struct {
	ConversionName  *List
	ForEncodingName *string
	ToEncodingName  *string
	FuncName        *List
	Def             bool
}

func (*CreateConversionStmt) Pos ¶ added in v1.6.0

func (n *CreateConversionStmt) Pos() int

type CreateDomainStmt ¶ added in v1.6.0

type CreateDomainStmt struct {
	Domainname  *List
	TypeName    *TypeName
	CollClause  *CollateClause
	Constraints *List
}

func (*CreateDomainStmt) Pos ¶ added in v1.6.0

func (n *CreateDomainStmt) Pos() int

type CreateEnumStmt ¶

type CreateEnumStmt struct {
	TypeName *TypeName
	Vals     *List
}

func (*CreateEnumStmt) Pos ¶

func (n *CreateEnumStmt) Pos() int

type CreateEventTrigStmt ¶ added in v1.6.0

type CreateEventTrigStmt struct {
	Trigname   *string
	Eventname  *string
	Whenclause *List
	Funcname   *List
}

func (*CreateEventTrigStmt) Pos ¶ added in v1.6.0

func (n *CreateEventTrigStmt) Pos() int

type CreateExtensionStmt ¶ added in v1.6.0

type CreateExtensionStmt struct {
	Extname     *string
	IfNotExists bool
	Options     *List
}

func (*CreateExtensionStmt) Pos ¶ added in v1.6.0

func (n *CreateExtensionStmt) Pos() int

type CreateFdwStmt ¶ added in v1.6.0

type CreateFdwStmt struct {
	Fdwname     *string
	FuncOptions *List
	Options     *List
}

func (*CreateFdwStmt) Pos ¶ added in v1.6.0

func (n *CreateFdwStmt) Pos() int

type CreateForeignServerStmt ¶ added in v1.6.0

type CreateForeignServerStmt struct {
	Servername  *string
	Servertype  *string
	Version     *string
	Fdwname     *string
	IfNotExists bool
	Options     *List
}

func (*CreateForeignServerStmt) Pos ¶ added in v1.6.0

func (n *CreateForeignServerStmt) Pos() int

type CreateForeignTableStmt ¶ added in v1.6.0

type CreateForeignTableStmt struct {
	Base       *CreateStmt
	Servername *string
	Options    *List
}

func (*CreateForeignTableStmt) Pos ¶ added in v1.6.0

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 ¶ added in v1.6.0

type CreateOpClassItem struct {
	Itemtype    int
	Name        *ObjectWithArgs
	Number      int
	OrderFamily *List
	ClassArgs   *List
	Storedtype  *TypeName
}

func (*CreateOpClassItem) Pos ¶ added in v1.6.0

func (n *CreateOpClassItem) Pos() int

type CreateOpClassStmt ¶ added in v1.6.0

type CreateOpClassStmt struct {
	Opclassname  *List
	Opfamilyname *List
	Amname       *string
	Datatype     *TypeName
	Items        *List
	IsDefault    bool
}

func (*CreateOpClassStmt) Pos ¶ added in v1.6.0

func (n *CreateOpClassStmt) Pos() int

type CreateOpFamilyStmt ¶ added in v1.6.0

type CreateOpFamilyStmt struct {
	Opfamilyname *List
	Amname       *string
}

func (*CreateOpFamilyStmt) Pos ¶ added in v1.6.0

func (n *CreateOpFamilyStmt) Pos() int

type CreatePLangStmt ¶ added in v1.6.0

type CreatePLangStmt struct {
	Replace     bool
	Plname      *string
	Plhandler   *List
	Plinline    *List
	Plvalidator *List
	Pltrusted   bool
}

func (*CreatePLangStmt) Pos ¶ added in v1.6.0

func (n *CreatePLangStmt) Pos() int

type CreatePolicyStmt ¶ added in v1.6.0

type CreatePolicyStmt struct {
	PolicyName *string
	Table      *RangeVar
	CmdName    *string
	Permissive bool
	Roles      *List
	Qual       Node
	WithCheck  Node
}

func (*CreatePolicyStmt) Pos ¶ added in v1.6.0

func (n *CreatePolicyStmt) Pos() int

type CreatePublicationStmt ¶ added in v1.6.0

type CreatePublicationStmt struct {
	Pubname      *string
	Options      *List
	Tables       *List
	ForAllTables bool
}

func (*CreatePublicationStmt) Pos ¶ added in v1.6.0

func (n *CreatePublicationStmt) Pos() int

type CreateRangeStmt ¶ added in v1.6.0

type CreateRangeStmt struct {
	TypeName *List
	Params   *List
}

func (*CreateRangeStmt) Pos ¶ added in v1.6.0

func (n *CreateRangeStmt) Pos() int

type CreateRoleStmt ¶ added in v1.6.0

type CreateRoleStmt struct {
	StmtType RoleStmtType
	Role     *string
	Options  *List
}

func (*CreateRoleStmt) Pos ¶ added in v1.6.0

func (n *CreateRoleStmt) Pos() int

type CreateSchemaStmt ¶

type CreateSchemaStmt struct {
	Name        *string
	SchemaElts  *List
	Authrole    *RoleSpec
	IfNotExists bool
}

func (*CreateSchemaStmt) Pos ¶

func (n *CreateSchemaStmt) Pos() int

type CreateSeqStmt ¶ added in v1.6.0

type CreateSeqStmt struct {
	Sequence    *RangeVar
	Options     *List
	OwnerId     Oid
	ForIdentity bool
	IfNotExists bool
}

func (*CreateSeqStmt) Pos ¶ added in v1.6.0

func (n *CreateSeqStmt) Pos() int

type CreateStatsStmt ¶ added in v1.6.0

type CreateStatsStmt struct {
	Defnames    *List
	StatTypes   *List
	Exprs       *List
	Relations   *List
	IfNotExists bool
}

func (*CreateStatsStmt) Pos ¶ added in v1.6.0

func (n *CreateStatsStmt) Pos() int

type CreateStmt ¶ added in v1.6.0

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 ¶ added in v1.6.0

func (n *CreateStmt) Pos() int

type CreateSubscriptionStmt ¶ added in v1.6.0

type CreateSubscriptionStmt struct {
	Subname     *string
	Conninfo    *string
	Publication *List
	Options     *List
}

func (*CreateSubscriptionStmt) Pos ¶ added in v1.6.0

func (n *CreateSubscriptionStmt) Pos() int

type CreateTableAsStmt ¶ added in v1.6.0

type CreateTableAsStmt struct {
	Query        Node
	Into         *IntoClause
	Relkind      ObjectType
	IsSelectInto bool
	IfNotExists  bool
}

func (*CreateTableAsStmt) Pos ¶ added in v1.6.0

func (n *CreateTableAsStmt) Pos() int

type CreateTableSpaceStmt ¶ added in v1.6.0

type CreateTableSpaceStmt struct {
	Tablespacename *string
	Owner          *RoleSpec
	Location       *string
	Options        *List
}

func (*CreateTableSpaceStmt) Pos ¶ added in v1.6.0

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 ¶ added in v1.6.0

type CreateTransformStmt struct {
	Replace  bool
	TypeName *TypeName
	Lang     *string
	Fromsql  *ObjectWithArgs
	Tosql    *ObjectWithArgs
}

func (*CreateTransformStmt) Pos ¶ added in v1.6.0

func (n *CreateTransformStmt) Pos() int

type CreateTrigStmt ¶ added in v1.6.0

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 ¶ added in v1.6.0

func (n *CreateTrigStmt) Pos() int

type CreateUserMappingStmt ¶ added in v1.6.0

type CreateUserMappingStmt struct {
	User        *RoleSpec
	Servername  *string
	IfNotExists bool
	Options     *List
}

func (*CreateUserMappingStmt) Pos ¶ added in v1.6.0

func (n *CreateUserMappingStmt) Pos() int

type CreatedbStmt ¶ added in v1.6.0

type CreatedbStmt struct {
	Dbname  *string
	Options *List
}

func (*CreatedbStmt) Pos ¶ added in v1.6.0

func (n *CreatedbStmt) Pos() int

type CurrentOfExpr ¶ added in v1.6.0

type CurrentOfExpr struct {
	Xpr         Node
	Cvarno      Index
	CursorName  *string
	CursorParam int
}

func (*CurrentOfExpr) Pos ¶ added in v1.6.0

func (n *CurrentOfExpr) Pos() int

type Datum ¶ added in v1.6.0

type Datum uintptr

func (*Datum) Pos ¶ added in v1.6.0

func (n *Datum) Pos() int

type DatumPtr ¶ added in v1.6.0

type DatumPtr Datum

func (*DatumPtr) Pos ¶ added in v1.6.0

func (n *DatumPtr) Pos() int

type DeallocateStmt ¶ added in v1.6.0

type DeallocateStmt struct {
	Name *string
}

func (*DeallocateStmt) Pos ¶ added in v1.6.0

func (n *DeallocateStmt) Pos() int

type DeclareCursorStmt ¶ added in v1.6.0

type DeclareCursorStmt struct {
	Portalname *string
	Options    int
	Query      Node
}

func (*DeclareCursorStmt) Pos ¶ added in v1.6.0

func (n *DeclareCursorStmt) Pos() int

type DefElem ¶ added in v1.6.0

type DefElem struct {
	Defnamespace *string
	Defname      *string
	Arg          Node
	Defaction    DefElemAction
	Location     int
}

func (*DefElem) Pos ¶ added in v1.6.0

func (n *DefElem) Pos() int

type DefElemAction ¶ added in v1.6.0

type DefElemAction uint

func (*DefElemAction) Pos ¶ added in v1.6.0

func (n *DefElemAction) Pos() int

type DefineStmt ¶ added in v1.6.0

type DefineStmt struct {
	Kind        ObjectType
	Oldstyle    bool
	Defnames    *List
	Args        *List
	Definition  *List
	IfNotExists bool
}

func (*DefineStmt) Pos ¶ added in v1.6.0

func (n *DefineStmt) Pos() int

type DeleteStmt ¶ added in v1.6.0

type DeleteStmt struct {
	Relations     *List
	UsingClause   *List
	WhereClause   Node
	ReturningList *List
	WithClause    *WithClause
}

func (*DeleteStmt) Pos ¶ added in v1.6.0

func (n *DeleteStmt) Pos() int

type DiscardMode ¶ added in v1.6.0

type DiscardMode uint

func (*DiscardMode) Pos ¶ added in v1.6.0

func (n *DiscardMode) Pos() int

type DiscardStmt ¶ added in v1.6.0

type DiscardStmt struct {
	Target DiscardMode
}

func (*DiscardStmt) Pos ¶ added in v1.6.0

func (n *DiscardStmt) Pos() int

type DistinctExpr ¶ added in v1.6.0

type DistinctExpr OpExpr

func (*DistinctExpr) Pos ¶ added in v1.6.0

func (n *DistinctExpr) Pos() int

type DoStmt ¶ added in v1.6.0

type DoStmt struct {
	Args *List
}

func (*DoStmt) Pos ¶ added in v1.6.0

func (n *DoStmt) Pos() int

type DropBehavior ¶ added in v1.6.0

type DropBehavior uint

func (*DropBehavior) Pos ¶ added in v1.6.0

func (n *DropBehavior) Pos() int

type DropFunctionStmt ¶

type DropFunctionStmt struct {
	Funcs     []*FuncSpec
	MissingOk bool
}

func (*DropFunctionStmt) Pos ¶

func (n *DropFunctionStmt) Pos() int

type DropOwnedStmt ¶ added in v1.6.0

type DropOwnedStmt struct {
	Roles    *List
	Behavior DropBehavior
}

func (*DropOwnedStmt) Pos ¶ added in v1.6.0

func (n *DropOwnedStmt) Pos() int

type DropRoleStmt ¶ added in v1.6.0

type DropRoleStmt struct {
	Roles     *List
	MissingOk bool
}

func (*DropRoleStmt) Pos ¶ added in v1.6.0

func (n *DropRoleStmt) Pos() int

type DropSchemaStmt ¶

type DropSchemaStmt struct {
	Schemas   []*String
	MissingOk bool
}

func (*DropSchemaStmt) Pos ¶

func (n *DropSchemaStmt) Pos() int

type DropStmt ¶ added in v1.6.0

type DropStmt struct {
	Objects    *List
	RemoveType ObjectType
	Behavior   DropBehavior
	MissingOk  bool
	Concurrent bool
}

func (*DropStmt) Pos ¶ added in v1.6.0

func (n *DropStmt) Pos() int

type DropSubscriptionStmt ¶ added in v1.6.0

type DropSubscriptionStmt struct {
	Subname   *string
	MissingOk bool
	Behavior  DropBehavior
}

func (*DropSubscriptionStmt) Pos ¶ added in v1.6.0

func (n *DropSubscriptionStmt) Pos() int

type DropTableSpaceStmt ¶ added in v1.6.0

type DropTableSpaceStmt struct {
	Tablespacename *string
	MissingOk      bool
}

func (*DropTableSpaceStmt) Pos ¶ added in v1.6.0

func (n *DropTableSpaceStmt) Pos() int

type DropTableStmt ¶

type DropTableStmt struct {
	IfExists bool
	Tables   []*TableName
}

func (*DropTableStmt) Pos ¶

func (n *DropTableStmt) Pos() int

type DropTypeStmt ¶

type DropTypeStmt struct {
	IfExists bool
	Types    []*TypeName
}

func (*DropTypeStmt) Pos ¶

func (n *DropTypeStmt) Pos() int

type DropUserMappingStmt ¶ added in v1.6.0

type DropUserMappingStmt struct {
	User       *RoleSpec
	Servername *string
	MissingOk  bool
}

func (*DropUserMappingStmt) Pos ¶ added in v1.6.0

func (n *DropUserMappingStmt) Pos() int

type DropdbStmt ¶ added in v1.6.0

type DropdbStmt struct {
	Dbname    *string
	MissingOk bool
}

func (*DropdbStmt) Pos ¶ added in v1.6.0

func (n *DropdbStmt) Pos() int

type ExecuteStmt ¶ added in v1.6.0

type ExecuteStmt struct {
	Name   *string
	Params *List
}

func (*ExecuteStmt) Pos ¶ added in v1.6.0

func (n *ExecuteStmt) Pos() int

type ExplainStmt ¶ added in v1.6.0

type ExplainStmt struct {
	Query   Node
	Options *List
}

func (*ExplainStmt) Pos ¶ added in v1.6.0

func (n *ExplainStmt) Pos() int

type Expr ¶ added in v1.6.0

type Expr struct {
}

func (*Expr) Pos ¶ added in v1.6.0

func (n *Expr) Pos() int

type FetchDirection ¶ added in v1.6.0

type FetchDirection uint

func (*FetchDirection) Pos ¶ added in v1.6.0

func (n *FetchDirection) Pos() int

type FetchStmt ¶ added in v1.6.0

type FetchStmt struct {
	Direction  FetchDirection
	HowMany    int64
	Portalname *string
	Ismove     bool
}

func (*FetchStmt) Pos ¶ added in v1.6.0

func (n *FetchStmt) Pos() int

type FieldSelect ¶ added in v1.6.0

type FieldSelect struct {
	Xpr          Node
	Arg          Node
	Fieldnum     AttrNumber
	Resulttype   Oid
	Resulttypmod int32
	Resultcollid Oid
}

func (*FieldSelect) Pos ¶ added in v1.6.0

func (n *FieldSelect) Pos() int

type FieldStore ¶ added in v1.6.0

type FieldStore struct {
	Xpr        Node
	Arg        Node
	Newvals    *List
	Fieldnums  *List
	Resulttype Oid
}

func (*FieldStore) Pos ¶ added in v1.6.0

func (n *FieldStore) Pos() int

type Float ¶ added in v1.6.0

type Float struct {
	Str string
}

func (*Float) Pos ¶ added in v1.6.0

func (n *Float) Pos() int

type FromExpr ¶ added in v1.6.0

type FromExpr struct {
	Fromlist *List
	Quals    Node
}

func (*FromExpr) Pos ¶ added in v1.6.0

func (n *FromExpr) Pos() int

type FuncCall ¶ added in v1.4.0

type FuncCall struct {
	Func           *FuncName
	Funcname       *List
	Args           *List
	AggOrder       *List
	AggFilter      Node
	AggWithinGroup bool
	AggStar        bool
	AggDistinct    bool
	FuncVariadic   bool
	Over           *WindowDef
	Location       int
}

func (*FuncCall) Pos ¶ added in v1.4.0

func (n *FuncCall) Pos() int

type FuncExpr ¶ added in v1.6.0

type FuncExpr struct {
	Xpr            Node
	Funcid         Oid
	Funcresulttype Oid
	Funcretset     bool
	Funcvariadic   bool
	Funcformat     CoercionForm
	Funccollid     Oid
	Inputcollid    Oid
	Args           *List
	Location       int
}

func (*FuncExpr) Pos ¶ added in v1.6.0

func (n *FuncExpr) Pos() int

type FuncName ¶

type FuncName struct {
	Catalog string
	Schema  string
	Name    string
}

func (*FuncName) Pos ¶

func (n *FuncName) Pos() int

type FuncParam ¶

type FuncParam struct {
	Name    *string
	Type    *TypeName
	DefExpr Node // Will always be &ast.TODO
	Mode    FuncParamMode
}

func (*FuncParam) Pos ¶

func (n *FuncParam) Pos() int

type FuncParamMode ¶ added in v1.4.0

type FuncParamMode int
const (
	FuncParamIn FuncParamMode = iota
	FuncParamOut
	FuncParamInOut
	FuncParamVariadic
	FuncParamTable
	FuncParamDefault
)

type FuncSpec ¶

type FuncSpec struct {
	Name    *FuncName
	Args    []*TypeName
	HasArgs bool
}

func (*FuncSpec) Pos ¶

func (n *FuncSpec) Pos() int

type FunctionParameter ¶ added in v1.6.0

type FunctionParameter struct {
	Name    *string
	ArgType *TypeName
	Mode    FunctionParameterMode
	Defexpr Node
}

func (*FunctionParameter) Pos ¶ added in v1.6.0

func (n *FunctionParameter) Pos() int

type FunctionParameterMode ¶ added in v1.6.0

type FunctionParameterMode uint

func (*FunctionParameterMode) Pos ¶ added in v1.6.0

func (n *FunctionParameterMode) Pos() int

type GrantObjectType ¶ added in v1.6.0

type GrantObjectType uint

func (*GrantObjectType) Pos ¶ added in v1.6.0

func (n *GrantObjectType) Pos() int

type GrantRoleStmt ¶ added in v1.6.0

type GrantRoleStmt struct {
	GrantedRoles *List
	GranteeRoles *List
	IsGrant      bool
	AdminOpt     bool
	Grantor      *RoleSpec
	Behavior     DropBehavior
}

func (*GrantRoleStmt) Pos ¶ added in v1.6.0

func (n *GrantRoleStmt) Pos() int

type GrantStmt ¶ added in v1.6.0

type GrantStmt struct {
	IsGrant     bool
	Targtype    GrantTargetType
	Objtype     GrantObjectType
	Objects     *List
	Privileges  *List
	Grantees    *List
	GrantOption bool
	Behavior    DropBehavior
}

func (*GrantStmt) Pos ¶ added in v1.6.0

func (n *GrantStmt) Pos() int

type GrantTargetType ¶ added in v1.6.0

type GrantTargetType uint

func (*GrantTargetType) Pos ¶ added in v1.6.0

func (n *GrantTargetType) Pos() int

type GroupingFunc ¶ added in v1.6.0

type GroupingFunc struct {
	Xpr         Node
	Args        *List
	Refs        *List
	Cols        *List
	Agglevelsup Index
	Location    int
}

func (*GroupingFunc) Pos ¶ added in v1.6.0

func (n *GroupingFunc) Pos() int

type GroupingSet ¶ added in v1.6.0

type GroupingSet struct {
	Kind     GroupingSetKind
	Content  *List
	Location int
}

func (*GroupingSet) Pos ¶ added in v1.6.0

func (n *GroupingSet) Pos() int

type GroupingSetKind ¶ added in v1.6.0

type GroupingSetKind uint

func (*GroupingSetKind) Pos ¶ added in v1.6.0

func (n *GroupingSetKind) Pos() int

type ImportForeignSchemaStmt ¶ added in v1.6.0

type ImportForeignSchemaStmt struct {
	ServerName   *string
	RemoteSchema *string
	LocalSchema  *string
	ListType     ImportForeignSchemaType
	TableList    *List
	Options      *List
}

func (*ImportForeignSchemaStmt) Pos ¶ added in v1.6.0

func (n *ImportForeignSchemaStmt) Pos() int

type ImportForeignSchemaType ¶ added in v1.6.0

type ImportForeignSchemaType uint

func (*ImportForeignSchemaType) Pos ¶ added in v1.6.0

func (n *ImportForeignSchemaType) Pos() int

type In ¶ added in v1.11.0

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.

func (*In) Pos ¶ added in v1.11.0

func (n *In) Pos() int

Pos returns the location.

type Index ¶ added in v1.6.0

type Index uint64

func (*Index) Pos ¶ added in v1.6.0

func (n *Index) Pos() int

type IndexElem ¶ added in v1.6.0

type IndexElem struct {
	Name          *string
	Expr          Node
	Indexcolname  *string
	Collation     *List
	Opclass       *List
	Ordering      SortByDir
	NullsOrdering SortByNulls
}

func (*IndexElem) Pos ¶ added in v1.6.0

func (n *IndexElem) Pos() int

type IndexStmt ¶ added in v1.6.0

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
}

func (*IndexStmt) Pos ¶ added in v1.6.0

func (n *IndexStmt) Pos() int

type InferClause ¶ added in v1.6.0

type InferClause struct {
	IndexElems  *List
	WhereClause Node
	Conname     *string
	Location    int
}

func (*InferClause) Pos ¶ added in v1.6.0

func (n *InferClause) Pos() int

type InferenceElem ¶ added in v1.6.0

type InferenceElem struct {
	Xpr          Node
	Expr         Node
	Infercollid  Oid
	Inferopclass Oid
}

func (*InferenceElem) Pos ¶ added in v1.6.0

func (n *InferenceElem) Pos() int

type InlineCodeBlock ¶ added in v1.6.0

type InlineCodeBlock struct {
	SourceText    *string
	LangOid       Oid
	LangIsTrusted bool
}

func (*InlineCodeBlock) Pos ¶ added in v1.6.0

func (n *InlineCodeBlock) Pos() int

type InsertStmt ¶ added in v1.6.0

type InsertStmt struct {
	Relation         *RangeVar
	Cols             *List
	SelectStmt       Node
	OnConflictClause *OnConflictClause
	ReturningList    *List
	WithClause       *WithClause
	Override         OverridingKind
}

func (*InsertStmt) Pos ¶ added in v1.6.0

func (n *InsertStmt) Pos() int

type Integer ¶ added in v1.6.0

type Integer struct {
	Ival int64
}

func (*Integer) Pos ¶ added in v1.6.0

func (n *Integer) Pos() int

type IntoClause ¶ added in v1.6.0

type IntoClause struct {
	Rel            *RangeVar
	ColNames       *List
	Options        *List
	OnCommit       OnCommitAction
	TableSpaceName *string
	ViewQuery      Node
	SkipData       bool
}

func (*IntoClause) Pos ¶ added in v1.6.0

func (n *IntoClause) Pos() int

type JoinExpr ¶ added in v1.6.0

type JoinExpr struct {
	Jointype    JoinType
	IsNatural   bool
	Larg        Node
	Rarg        Node
	UsingClause *List
	Quals       Node
	Alias       *Alias
	Rtindex     int
}

func (*JoinExpr) Pos ¶ added in v1.6.0

func (n *JoinExpr) Pos() int

type JoinType ¶ added in v1.6.0

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

func (*JoinType) Pos ¶ added in v1.6.0

func (n *JoinType) Pos() int

type List ¶

type List struct {
	Items []Node
}

func (*List) Pos ¶

func (n *List) Pos() int

type ListenStmt ¶ added in v1.6.0

type ListenStmt struct {
	Conditionname *string
}

func (*ListenStmt) Pos ¶ added in v1.6.0

func (n *ListenStmt) Pos() int

type LoadStmt ¶ added in v1.6.0

type LoadStmt struct {
	Filename *string
}

func (*LoadStmt) Pos ¶ added in v1.6.0

func (n *LoadStmt) Pos() int

type LocalTransactionId ¶ added in v1.6.0

type LocalTransactionId uint32

func (*LocalTransactionId) Pos ¶ added in v1.6.0

func (n *LocalTransactionId) Pos() int

type LockClauseStrength ¶ added in v1.6.0

type LockClauseStrength uint

func (*LockClauseStrength) Pos ¶ added in v1.6.0

func (n *LockClauseStrength) Pos() int

type LockStmt ¶ added in v1.6.0

type LockStmt struct {
	Relations *List
	Mode      int
	Nowait    bool
}

func (*LockStmt) Pos ¶ added in v1.6.0

func (n *LockStmt) Pos() int

type LockWaitPolicy ¶ added in v1.6.0

type LockWaitPolicy uint

func (*LockWaitPolicy) Pos ¶ added in v1.6.0

func (n *LockWaitPolicy) Pos() int

type LockingClause ¶ added in v1.6.0

type LockingClause struct {
	LockedRels *List
	Strength   LockClauseStrength
	WaitPolicy LockWaitPolicy
}

func (*LockingClause) Pos ¶ added in v1.6.0

func (n *LockingClause) Pos() int

type MinMaxExpr ¶ added in v1.6.0

type MinMaxExpr struct {
	Xpr          Node
	Minmaxtype   Oid
	Minmaxcollid Oid
	Inputcollid  Oid
	Op           MinMaxOp
	Args         *List
	Location     int
}

func (*MinMaxExpr) Pos ¶ added in v1.6.0

func (n *MinMaxExpr) Pos() int

type MinMaxOp ¶ added in v1.6.0

type MinMaxOp uint

func (*MinMaxOp) Pos ¶ added in v1.6.0

func (n *MinMaxOp) Pos() int

type MultiAssignRef ¶ added in v1.6.0

type MultiAssignRef struct {
	Source   Node
	Colno    int
	Ncolumns int
}

func (*MultiAssignRef) Pos ¶ added in v1.6.0

func (n *MultiAssignRef) Pos() int

type MultiXactId ¶ added in v1.6.0

type MultiXactId TransactionId

func (*MultiXactId) Pos ¶ added in v1.6.0

func (n *MultiXactId) Pos() int

type MultiXactOffset ¶ added in v1.6.0

type MultiXactOffset uint32

func (*MultiXactOffset) Pos ¶ added in v1.6.0

func (n *MultiXactOffset) Pos() int

type NamedArgExpr ¶ added in v1.6.0

type NamedArgExpr struct {
	Xpr       Node
	Arg       Node
	Name      *string
	Argnumber int
	Location  int
}

func (*NamedArgExpr) Pos ¶ added in v1.6.0

func (n *NamedArgExpr) Pos() int

type NextValueExpr ¶ added in v1.6.0

type NextValueExpr struct {
	Xpr    Node
	Seqid  Oid
	TypeId Oid
}

func (*NextValueExpr) Pos ¶ added in v1.6.0

func (n *NextValueExpr) Pos() int

type Node ¶

type Node interface {
	Pos() int
}

type NotifyStmt ¶ added in v1.6.0

type NotifyStmt struct {
	Conditionname *string
	Payload       *string
}

func (*NotifyStmt) Pos ¶ added in v1.6.0

func (n *NotifyStmt) Pos() int

type Null ¶ added in v1.6.0

type Null struct {
}

func (*Null) Pos ¶ added in v1.6.0

func (n *Null) Pos() int

type NullIfExpr ¶ added in v1.6.0

type NullIfExpr OpExpr

func (*NullIfExpr) Pos ¶ added in v1.6.0

func (n *NullIfExpr) Pos() int

type NullTest ¶ added in v1.6.0

type NullTest struct {
	Xpr          Node
	Arg          Node
	Nulltesttype NullTestType
	Argisrow     bool
	Location     int
}

func (*NullTest) Pos ¶ added in v1.6.0

func (n *NullTest) Pos() int

type NullTestType ¶ added in v1.6.0

type NullTestType uint

func (*NullTestType) Pos ¶ added in v1.6.0

func (n *NullTestType) Pos() int

type ObjectType ¶ added in v1.6.0

type ObjectType uint

func (*ObjectType) Pos ¶ added in v1.6.0

func (n *ObjectType) Pos() int

type ObjectWithArgs ¶ added in v1.6.0

type ObjectWithArgs struct {
	Objname         *List
	Objargs         *List
	ArgsUnspecified bool
}

func (*ObjectWithArgs) Pos ¶ added in v1.6.0

func (n *ObjectWithArgs) Pos() int

type Offset ¶ added in v1.6.0

type Offset int64

func (*Offset) Pos ¶ added in v1.6.0

func (n *Offset) Pos() int

type Oid ¶ added in v1.6.0

type Oid uint64

func (*Oid) Pos ¶ added in v1.6.0

func (n *Oid) Pos() int

type OnCommitAction ¶ added in v1.6.0

type OnCommitAction uint

func (*OnCommitAction) Pos ¶ added in v1.6.0

func (n *OnCommitAction) Pos() int

type OnConflictAction ¶ added in v1.6.0

type OnConflictAction uint

func (*OnConflictAction) Pos ¶ added in v1.6.0

func (n *OnConflictAction) Pos() int

type OnConflictClause ¶ added in v1.6.0

type OnConflictClause struct {
	Action      OnConflictAction
	Infer       *InferClause
	TargetList  *List
	WhereClause Node
	Location    int
}

func (*OnConflictClause) Pos ¶ added in v1.6.0

func (n *OnConflictClause) Pos() int

type OnConflictExpr ¶ added in v1.6.0

type OnConflictExpr struct {
	Action          OnConflictAction
	ArbiterElems    *List
	ArbiterWhere    Node
	Constraint      Oid
	OnConflictSet   *List
	OnConflictWhere Node
	ExclRelIndex    int
	ExclRelTlist    *List
}

func (*OnConflictExpr) Pos ¶ added in v1.6.0

func (n *OnConflictExpr) Pos() int

type OpExpr ¶ added in v1.6.0

type OpExpr struct {
	Xpr          Node
	Opno         Oid
	Opfuncid     Oid
	Opresulttype Oid
	Opretset     bool
	Opcollid     Oid
	Inputcollid  Oid
	Args         *List
	Location     int
}

func (*OpExpr) Pos ¶ added in v1.6.0

func (n *OpExpr) Pos() int

type OverridingKind ¶ added in v1.6.0

type OverridingKind uint

func (*OverridingKind) Pos ¶ added in v1.6.0

func (n *OverridingKind) Pos() int

type Param ¶ added in v1.6.0

type Param struct {
	Xpr         Node
	Paramkind   ParamKind
	Paramid     int
	Paramtype   Oid
	Paramtypmod int32
	Paramcollid Oid
	Location    int
}

func (*Param) Pos ¶ added in v1.6.0

func (n *Param) Pos() int

type ParamExecData ¶ added in v1.6.0

type ParamExecData struct {
	ExecPlan interface{}
	Value    Datum
	Isnull   bool
}

func (*ParamExecData) Pos ¶ added in v1.6.0

func (n *ParamExecData) Pos() int

type ParamExternData ¶ added in v1.6.0

type ParamExternData struct {
	Value  Datum
	Isnull bool
	Pflags uint16
	Ptype  Oid
}

func (*ParamExternData) Pos ¶ added in v1.6.0

func (n *ParamExternData) Pos() int

type ParamKind ¶ added in v1.6.0

type ParamKind uint

func (*ParamKind) Pos ¶ added in v1.6.0

func (n *ParamKind) Pos() int

type ParamListInfo ¶ added in v1.6.0

type ParamListInfo ParamListInfoData

func (*ParamListInfo) Pos ¶ added in v1.6.0

func (n *ParamListInfo) Pos() int

type ParamListInfoData ¶ added in v1.6.0

type ParamListInfoData struct {
	ParamFetchArg  interface{}
	ParserSetupArg interface{}
	NumParams      int
	ParamMask      []uint32
}

func (*ParamListInfoData) Pos ¶ added in v1.6.0

func (n *ParamListInfoData) Pos() int

type ParamRef ¶ added in v1.6.0

type ParamRef struct {
	Number   int
	Location int
	Dollar   bool
}

func (*ParamRef) Pos ¶ added in v1.6.0

func (n *ParamRef) Pos() int

type PartitionBoundSpec ¶ added in v1.6.0

type PartitionBoundSpec struct {
	Strategy    byte
	Listdatums  *List
	Lowerdatums *List
	Upperdatums *List
	Location    int
}

func (*PartitionBoundSpec) Pos ¶ added in v1.6.0

func (n *PartitionBoundSpec) Pos() int

type PartitionCmd ¶ added in v1.6.0

type PartitionCmd struct {
	Name  *RangeVar
	Bound *PartitionBoundSpec
}

func (*PartitionCmd) Pos ¶ added in v1.6.0

func (n *PartitionCmd) Pos() int

type PartitionElem ¶ added in v1.6.0

type PartitionElem struct {
	Name      *string
	Expr      Node
	Collation *List
	Opclass   *List
	Location  int
}

func (*PartitionElem) Pos ¶ added in v1.6.0

func (n *PartitionElem) Pos() int

type PartitionRangeDatum ¶ added in v1.6.0

type PartitionRangeDatum struct {
	Kind     PartitionRangeDatumKind
	Value    Node
	Location int
}

func (*PartitionRangeDatum) Pos ¶ added in v1.6.0

func (n *PartitionRangeDatum) Pos() int

type PartitionRangeDatumKind ¶ added in v1.6.0

type PartitionRangeDatumKind uint

func (*PartitionRangeDatumKind) Pos ¶ added in v1.6.0

func (n *PartitionRangeDatumKind) Pos() int

type PartitionSpec ¶ added in v1.6.0

type PartitionSpec struct {
	Strategy   *string
	PartParams *List
	Location   int
}

func (*PartitionSpec) Pos ¶ added in v1.6.0

func (n *PartitionSpec) Pos() int

type Pointer ¶ added in v1.6.0

type Pointer byte

func (*Pointer) Pos ¶ added in v1.6.0

func (n *Pointer) Pos() int

type PrepareStmt ¶ added in v1.6.0

type PrepareStmt struct {
	Name     *string
	Argtypes *List
	Query    Node
}

func (*PrepareStmt) Pos ¶ added in v1.6.0

func (n *PrepareStmt) Pos() int

type Query ¶ added in v1.6.0

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
}

func (*Query) Pos ¶ added in v1.6.0

func (n *Query) Pos() int

type QuerySource ¶ added in v1.6.0

type QuerySource uint

func (*QuerySource) Pos ¶ added in v1.6.0

func (n *QuerySource) Pos() int

type RTEKind ¶ added in v1.6.0

type RTEKind uint

func (*RTEKind) Pos ¶ added in v1.6.0

func (n *RTEKind) Pos() int

type RangeFunction ¶ added in v1.6.0

type RangeFunction struct {
	Lateral    bool
	Ordinality bool
	IsRowsfrom bool
	Functions  *List
	Alias      *Alias
	Coldeflist *List
}

func (*RangeFunction) Pos ¶ added in v1.6.0

func (n *RangeFunction) Pos() int

type RangeSubselect ¶ added in v1.6.0

type RangeSubselect struct {
	Lateral  bool
	Subquery Node
	Alias    *Alias
}

func (*RangeSubselect) Pos ¶ added in v1.6.0

func (n *RangeSubselect) Pos() int

type RangeTableFunc ¶ added in v1.6.0

type RangeTableFunc struct {
	Lateral    bool
	Docexpr    Node
	Rowexpr    Node
	Namespaces *List
	Columns    *List
	Alias      *Alias
	Location   int
}

func (*RangeTableFunc) Pos ¶ added in v1.6.0

func (n *RangeTableFunc) Pos() int

type RangeTableFuncCol ¶ added in v1.6.0

type RangeTableFuncCol struct {
	Colname       *string
	TypeName      *TypeName
	ForOrdinality bool
	IsNotNull     bool
	Colexpr       Node
	Coldefexpr    Node
	Location      int
}

func (*RangeTableFuncCol) Pos ¶ added in v1.6.0

func (n *RangeTableFuncCol) Pos() int

type RangeTableSample ¶ added in v1.6.0

type RangeTableSample struct {
	Relation   Node
	Method     *List
	Args       *List
	Repeatable Node
	Location   int
}

func (*RangeTableSample) Pos ¶ added in v1.6.0

func (n *RangeTableSample) Pos() int

type RangeTblEntry ¶ added in v1.6.0

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 ¶ added in v1.6.0

func (n *RangeTblEntry) Pos() int

type RangeTblFunction ¶ added in v1.6.0

type RangeTblFunction struct {
	Funcexpr          Node
	Funccolcount      int
	Funccolnames      *List
	Funccoltypes      *List
	Funccoltypmods    *List
	Funccolcollations *List
	Funcparams        []uint32
}

func (*RangeTblFunction) Pos ¶ added in v1.6.0

func (n *RangeTblFunction) Pos() int

type RangeTblRef ¶ added in v1.6.0

type RangeTblRef struct {
	Rtindex int
}

func (*RangeTblRef) Pos ¶ added in v1.6.0

func (n *RangeTblRef) Pos() int

type RangeVar ¶ added in v1.6.0

type RangeVar struct {
	Catalogname    *string
	Schemaname     *string
	Relname        *string
	Inh            bool
	Relpersistence byte
	Alias          *Alias
	Location       int
}

func (*RangeVar) Pos ¶ added in v1.6.0

func (n *RangeVar) Pos() int

type RawStmt ¶

type RawStmt struct {
	Stmt         Node
	StmtLocation int
	StmtLen      int
}

func (*RawStmt) Pos ¶

func (n *RawStmt) Pos() int

type ReassignOwnedStmt ¶ added in v1.6.0

type ReassignOwnedStmt struct {
	Roles   *List
	Newrole *RoleSpec
}

func (*ReassignOwnedStmt) Pos ¶ added in v1.6.0

func (n *ReassignOwnedStmt) Pos() int

type RefreshMatViewStmt ¶ added in v1.6.0

type RefreshMatViewStmt struct {
	Concurrent bool
	SkipData   bool
	Relation   *RangeVar
}

func (*RefreshMatViewStmt) Pos ¶ added in v1.6.0

func (n *RefreshMatViewStmt) Pos() int

type RegProcedure ¶ added in v1.6.0

type RegProcedure regproc

func (*RegProcedure) Pos ¶ added in v1.6.0

func (n *RegProcedure) Pos() int

type ReindexObjectType ¶ added in v1.6.0

type ReindexObjectType uint

func (*ReindexObjectType) Pos ¶ added in v1.6.0

func (n *ReindexObjectType) Pos() int

type ReindexStmt ¶ added in v1.6.0

type ReindexStmt struct {
	Kind     ReindexObjectType
	Relation *RangeVar
	Name     *string
	Options  int
}

func (*ReindexStmt) Pos ¶ added in v1.6.0

func (n *ReindexStmt) Pos() int

type RelabelType ¶ added in v1.6.0

type RelabelType struct {
	Xpr           Node
	Arg           Node
	Resulttype    Oid
	Resulttypmod  int32
	Resultcollid  Oid
	Relabelformat CoercionForm
	Location      int
}

func (*RelabelType) Pos ¶ added in v1.6.0

func (n *RelabelType) Pos() int

type RenameColumnStmt ¶

type RenameColumnStmt struct {
	Table   *TableName
	Col     *ColumnRef
	NewName *string
}

func (*RenameColumnStmt) Pos ¶

func (n *RenameColumnStmt) Pos() int

type RenameStmt ¶ added in v1.6.0

type RenameStmt struct {
	RenameType   ObjectType
	RelationType ObjectType
	Relation     *RangeVar
	Object       Node
	Subname      *string
	Newname      *string
	Behavior     DropBehavior
	MissingOk    bool
}

func (*RenameStmt) Pos ¶ added in v1.6.0

func (n *RenameStmt) Pos() int

type RenameTableStmt ¶

type RenameTableStmt struct {
	Table   *TableName
	NewName *string
}

func (*RenameTableStmt) Pos ¶

func (n *RenameTableStmt) Pos() int

type RenameTypeStmt ¶ added in v1.8.0

type RenameTypeStmt struct {
	Type    *TypeName
	NewName *string
}

func (*RenameTypeStmt) Pos ¶ added in v1.8.0

func (n *RenameTypeStmt) Pos() int

type ReplicaIdentityStmt ¶ added in v1.6.0

type ReplicaIdentityStmt struct {
	IdentityType byte
	Name         *string
}

func (*ReplicaIdentityStmt) Pos ¶ added in v1.6.0

func (n *ReplicaIdentityStmt) Pos() int

type ResTarget ¶

type ResTarget struct {
	Name        *string
	Indirection *List
	Val         Node
	Location    int
}

func (*ResTarget) Pos ¶

func (n *ResTarget) Pos() int

type RoleSpec ¶ added in v1.6.0

type RoleSpec struct {
	Roletype RoleSpecType
	Rolename *string
	Location int
}

func (*RoleSpec) Pos ¶ added in v1.6.0

func (n *RoleSpec) Pos() int

type RoleSpecType ¶ added in v1.6.0

type RoleSpecType uint

func (*RoleSpecType) Pos ¶ added in v1.6.0

func (n *RoleSpecType) Pos() int

type RoleStmtType ¶ added in v1.6.0

type RoleStmtType uint

func (*RoleStmtType) Pos ¶ added in v1.6.0

func (n *RoleStmtType) Pos() int

type RowCompareExpr ¶ added in v1.6.0

type RowCompareExpr struct {
	Xpr          Node
	Rctype       RowCompareType
	Opnos        *List
	Opfamilies   *List
	Inputcollids *List
	Largs        *List
	Rargs        *List
}

func (*RowCompareExpr) Pos ¶ added in v1.6.0

func (n *RowCompareExpr) Pos() int

type RowCompareType ¶ added in v1.6.0

type RowCompareType uint

func (*RowCompareType) Pos ¶ added in v1.6.0

func (n *RowCompareType) Pos() int

type RowExpr ¶ added in v1.6.0

type RowExpr struct {
	Xpr       Node
	Args      *List
	RowTypeid Oid
	RowFormat CoercionForm
	Colnames  *List
	Location  int
}

func (*RowExpr) Pos ¶ added in v1.6.0

func (n *RowExpr) Pos() int

type RowMarkClause ¶ added in v1.6.0

type RowMarkClause struct {
	Rti        Index
	Strength   LockClauseStrength
	WaitPolicy LockWaitPolicy
	PushedDown bool
}

func (*RowMarkClause) Pos ¶ added in v1.6.0

func (n *RowMarkClause) Pos() int

type RuleStmt ¶ added in v1.6.0

type RuleStmt struct {
	Relation    *RangeVar
	Rulename    *string
	WhereClause Node
	Event       CmdType
	Instead     bool
	Actions     *List
	Replace     bool
}

func (*RuleStmt) Pos ¶ added in v1.6.0

func (n *RuleStmt) Pos() int

type SQLValueFunction ¶ added in v1.6.0

type SQLValueFunction struct {
	Xpr      Node
	Op       SQLValueFunctionOp
	Type     Oid
	Typmod   int32
	Location int
}

func (*SQLValueFunction) Pos ¶ added in v1.6.0

func (n *SQLValueFunction) Pos() int

type SQLValueFunctionOp ¶ added in v1.6.0

type SQLValueFunctionOp uint

func (*SQLValueFunctionOp) Pos ¶ added in v1.6.0

func (n *SQLValueFunctionOp) Pos() int

type ScalarArrayOpExpr ¶ added in v1.6.0

type ScalarArrayOpExpr struct {
	Xpr         Node
	Opno        Oid
	Opfuncid    Oid
	UseOr       bool
	Inputcollid Oid
	Args        *List
	Location    int
}

func (*ScalarArrayOpExpr) Pos ¶ added in v1.6.0

func (n *ScalarArrayOpExpr) Pos() int

type ScanDirection ¶ added in v1.6.0

type ScanDirection uint

func (*ScanDirection) Pos ¶ added in v1.6.0

func (n *ScanDirection) Pos() int

type SecLabelStmt ¶ added in v1.6.0

type SecLabelStmt struct {
	Objtype  ObjectType
	Object   Node
	Provider *string
	Label    *string
}

func (*SecLabelStmt) Pos ¶ added in v1.6.0

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 ¶ added in v1.6.0

type Selectivity float64

func (*Selectivity) Pos ¶ added in v1.6.0

func (n *Selectivity) Pos() int

type SetOpCmd ¶ added in v1.6.0

type SetOpCmd uint

func (*SetOpCmd) Pos ¶ added in v1.6.0

func (n *SetOpCmd) Pos() int

type SetOpStrategy ¶ added in v1.6.0

type SetOpStrategy uint

func (*SetOpStrategy) Pos ¶ added in v1.6.0

func (n *SetOpStrategy) Pos() int

type SetOperation ¶ added in v1.6.0

type SetOperation uint
const (
	None SetOperation = iota
	Union
	Intersect
	Except
)

func (*SetOperation) Pos ¶ added in v1.6.0

func (n *SetOperation) Pos() int

func (SetOperation) String ¶ added in v1.7.0

func (n SetOperation) String() string

type SetOperationStmt ¶ added in v1.6.0

type SetOperationStmt struct {
	Op            SetOperation
	All           bool
	Larg          Node
	Rarg          Node
	ColTypes      *List
	ColTypmods    *List
	ColCollations *List
	GroupClauses  *List
}

func (*SetOperationStmt) Pos ¶ added in v1.6.0

func (n *SetOperationStmt) Pos() int

type SetToDefault ¶ added in v1.6.0

type SetToDefault struct {
	Xpr       Node
	TypeId    Oid
	TypeMod   int32
	Collation Oid
	Location  int
}

func (*SetToDefault) Pos ¶ added in v1.6.0

func (n *SetToDefault) Pos() int

type SortBy ¶ added in v1.6.0

type SortBy struct {
	Node        Node
	SortbyDir   SortByDir
	SortbyNulls SortByNulls
	UseOp       *List
	Location    int
}

func (*SortBy) Pos ¶ added in v1.6.0

func (n *SortBy) Pos() int

type SortByDir ¶ added in v1.6.0

type SortByDir uint

func (*SortByDir) Pos ¶ added in v1.6.0

func (n *SortByDir) Pos() int

type SortByNulls ¶ added in v1.6.0

type SortByNulls uint

func (*SortByNulls) Pos ¶ added in v1.6.0

func (n *SortByNulls) Pos() int

type SortGroupClause ¶ added in v1.6.0

type SortGroupClause struct {
	TleSortGroupRef Index
	Eqop            Oid
	Sortop          Oid
	NullsFirst      bool
	Hashable        bool
}

func (*SortGroupClause) Pos ¶ added in v1.6.0

func (n *SortGroupClause) Pos() int

type Statement ¶

type Statement struct {
	Raw *RawStmt
}

func (*Statement) Pos ¶ added in v1.4.0

func (n *Statement) Pos() int

type String ¶

type String struct {
	Str string
}

func (*String) Pos ¶

func (n *String) Pos() int
type SubLink struct {
	Xpr         Node
	SubLinkType SubLinkType
	SubLinkId   int
	Testexpr    Node
	OperName    *List
	Subselect   Node
	Location    int
}

func (*SubLink) Pos ¶ added in v1.6.0

func (n *SubLink) Pos() int

type SubLinkType ¶ added in v1.6.0

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 ¶ added in v1.6.0

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
}

func (*SubPlan) Pos ¶ added in v1.6.0

func (n *SubPlan) Pos() int

type SubTransactionId ¶ added in v1.6.0

type SubTransactionId uint32

func (*SubTransactionId) Pos ¶ added in v1.6.0

func (n *SubTransactionId) Pos() int

type TODO ¶

type TODO struct {
}

func (*TODO) Pos ¶

func (n *TODO) Pos() int

type TableFunc ¶ added in v1.6.0

type TableFunc struct {
	NsUris        *List
	NsNames       *List
	Docexpr       Node
	Rowexpr       Node
	Colnames      *List
	Coltypes      *List
	Coltypmods    *List
	Colcollations *List
	Colexprs      *List
	Coldefexprs   *List
	Notnulls      []uint32
	Ordinalitycol int
	Location      int
}

func (*TableFunc) Pos ¶ added in v1.6.0

func (n *TableFunc) Pos() int

type TableLikeClause ¶ added in v1.6.0

type TableLikeClause struct {
	Relation *RangeVar
	Options  uint32
}

func (*TableLikeClause) Pos ¶ added in v1.6.0

func (n *TableLikeClause) Pos() int

type TableLikeOption ¶ added in v1.6.0

type TableLikeOption uint

func (*TableLikeOption) Pos ¶ added in v1.6.0

func (n *TableLikeOption) Pos() int

type TableName ¶

type TableName struct {
	Catalog string
	Schema  string
	Name    string
}

func (*TableName) Pos ¶

func (n *TableName) Pos() int

type TableSampleClause ¶ added in v1.6.0

type TableSampleClause struct {
	Tsmhandler Oid
	Args       *List
	Repeatable Node
}

func (*TableSampleClause) Pos ¶ added in v1.6.0

func (n *TableSampleClause) Pos() int

type TargetEntry ¶ added in v1.6.0

type TargetEntry struct {
	Xpr             Node
	Expr            Node
	Resno           AttrNumber
	Resname         *string
	Ressortgroupref Index
	Resorigtbl      Oid
	Resorigcol      AttrNumber
	Resjunk         bool
}

func (*TargetEntry) Pos ¶ added in v1.6.0

func (n *TargetEntry) Pos() int

type TransactionId ¶ added in v1.6.0

type TransactionId uint32

func (*TransactionId) Pos ¶ added in v1.6.0

func (n *TransactionId) Pos() int

type TransactionStmt ¶ added in v1.6.0

type TransactionStmt struct {
	Kind    TransactionStmtKind
	Options *List
	Gid     *string
}

func (*TransactionStmt) Pos ¶ added in v1.6.0

func (n *TransactionStmt) Pos() int

type TransactionStmtKind ¶ added in v1.6.0

type TransactionStmtKind uint

func (*TransactionStmtKind) Pos ¶ added in v1.6.0

func (n *TransactionStmtKind) Pos() int

type TriggerTransition ¶ added in v1.6.0

type TriggerTransition struct {
	Name    *string
	IsNew   bool
	IsTable bool
}

func (*TriggerTransition) Pos ¶ added in v1.6.0

func (n *TriggerTransition) Pos() int

type TruncateStmt ¶ added in v1.6.0

type TruncateStmt struct {
	Relations   *List
	RestartSeqs bool
	Behavior    DropBehavior
}

func (*TruncateStmt) Pos ¶ added in v1.6.0

func (n *TruncateStmt) Pos() int

type TypeCast ¶ added in v1.6.0

type TypeCast struct {
	Arg      Node
	TypeName *TypeName
	Location int
}

func (*TypeCast) Pos ¶ added in v1.6.0

func (n *TypeCast) Pos() int

type TypeName ¶

type TypeName struct {
	Catalog string
	Schema  string
	Name    string

	// From pg.TypeName
	Names       *List
	TypeOid     Oid
	Setof       bool
	PctType     bool
	Typmods     *List
	Typemod     int32
	ArrayBounds *List
	Location    int
}

func (*TypeName) Pos ¶

func (n *TypeName) Pos() int

type UnlistenStmt ¶ added in v1.6.0

type UnlistenStmt struct {
	Conditionname *string
}

func (*UnlistenStmt) Pos ¶ added in v1.6.0

func (n *UnlistenStmt) Pos() int

type UpdateStmt ¶ added in v1.6.0

type UpdateStmt struct {
	Relations     *List
	TargetList    *List
	WhereClause   Node
	FromClause    *List
	ReturningList *List
	WithClause    *WithClause
}

func (*UpdateStmt) Pos ¶ added in v1.6.0

func (n *UpdateStmt) Pos() int

type VacuumOption ¶ added in v1.6.0

type VacuumOption uint

func (*VacuumOption) Pos ¶ added in v1.6.0

func (n *VacuumOption) Pos() int

type VacuumStmt ¶ added in v1.6.0

type VacuumStmt struct {
	Options  int
	Relation *RangeVar
	VaCols   *List
}

func (*VacuumStmt) Pos ¶ added in v1.6.0

func (n *VacuumStmt) Pos() int

type Var ¶ added in v1.6.0

type Var struct {
	Xpr         Node
	Varno       Index
	Varattno    AttrNumber
	Vartype     Oid
	Vartypmod   int32
	Varcollid   Oid
	Varlevelsup Index
	Varnoold    Index
	Varoattno   AttrNumber
	Location    int
}

func (*Var) Pos ¶ added in v1.6.0

func (n *Var) Pos() int

type VariableSetKind ¶ added in v1.6.0

type VariableSetKind uint

func (*VariableSetKind) Pos ¶ added in v1.6.0

func (n *VariableSetKind) Pos() int

type VariableSetStmt ¶ added in v1.6.0

type VariableSetStmt struct {
	Kind    VariableSetKind
	Name    *string
	Args    *List
	IsLocal bool
}

func (*VariableSetStmt) Pos ¶ added in v1.6.0

func (n *VariableSetStmt) Pos() int

type VariableShowStmt ¶ added in v1.6.0

type VariableShowStmt struct {
	Name *string
}

func (*VariableShowStmt) Pos ¶ added in v1.6.0

func (n *VariableShowStmt) Pos() int

type ViewCheckOption ¶ added in v1.6.0

type ViewCheckOption uint

func (*ViewCheckOption) Pos ¶ added in v1.6.0

func (n *ViewCheckOption) Pos() int

type ViewStmt ¶ added in v1.6.0

type ViewStmt struct {
	View            *RangeVar
	Aliases         *List
	Query           Node
	Replace         bool
	Options         *List
	WithCheckOption ViewCheckOption
}

func (*ViewStmt) Pos ¶ added in v1.6.0

func (n *ViewStmt) Pos() int

type WCOKind ¶ added in v1.6.0

type WCOKind uint

func (*WCOKind) Pos ¶ added in v1.6.0

func (n *WCOKind) Pos() int

type WindowClause ¶ added in v1.6.0

type WindowClause struct {
	Name            *string
	Refname         *string
	PartitionClause *List
	OrderClause     *List
	FrameOptions    int
	StartOffset     Node
	EndOffset       Node
	Winref          Index
	CopiedOrder     bool
}

func (*WindowClause) Pos ¶ added in v1.6.0

func (n *WindowClause) Pos() int

type WindowDef ¶ added in v1.4.0

type WindowDef struct {
	Name            *string
	Refname         *string
	PartitionClause *List
	OrderClause     *List
	FrameOptions    int
	StartOffset     Node
	EndOffset       Node
	Location        int
}

func (*WindowDef) Pos ¶ added in v1.4.0

func (n *WindowDef) Pos() int

type WindowFunc ¶ added in v1.6.0

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 ¶ added in v1.6.0

func (n *WindowFunc) Pos() int

type WithCheckOption ¶ added in v1.6.0

type WithCheckOption struct {
	Kind     WCOKind
	Relname  *string
	Polname  *string
	Qual     Node
	Cascaded bool
}

func (*WithCheckOption) Pos ¶ added in v1.6.0

func (n *WithCheckOption) Pos() int

type WithClause ¶ added in v1.6.0

type WithClause struct {
	Ctes      *List
	Recursive bool
	Location  int
}

func (*WithClause) Pos ¶ added in v1.6.0

func (n *WithClause) Pos() int

type XmlExpr ¶ added in v1.6.0

type XmlExpr struct {
	Xpr       Node
	Op        XmlExprOp
	Name      *string
	NamedArgs *List
	ArgNames  *List
	Args      *List
	Xmloption XmlOptionType
	Type      Oid
	Typmod    int32
	Location  int
}

func (*XmlExpr) Pos ¶ added in v1.6.0

func (n *XmlExpr) Pos() int

type XmlExprOp ¶ added in v1.6.0

type XmlExprOp uint

func (*XmlExprOp) Pos ¶ added in v1.6.0

func (n *XmlExprOp) Pos() int

type XmlOptionType ¶ added in v1.6.0

type XmlOptionType uint

func (*XmlOptionType) Pos ¶ added in v1.6.0

func (n *XmlOptionType) Pos() int

type XmlSerialize ¶ added in v1.6.0

type XmlSerialize struct {
	Xmloption XmlOptionType
	Expr      Node
	TypeName  *TypeName
	Location  int
}

func (*XmlSerialize) Pos ¶ added in v1.6.0

func (n *XmlSerialize) Pos() int

Source Files ¶

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL