Documentation
¶
Index ¶
- Constants
- Variables
- type AggregateToDrop
- type AlterDefaultPrivileges
- func (n *AlterDefaultPrivileges) Children() []sql.Node
- func (n *AlterDefaultPrivileges) IsReadOnly() bool
- func (n *AlterDefaultPrivileges) Resolved() bool
- func (n *AlterDefaultPrivileges) RowIter(ctx *sql.Context, _ sql.Row) (sql.RowIter, error)
- func (n *AlterDefaultPrivileges) Schema(ctx *sql.Context) sql.Schema
- func (n *AlterDefaultPrivileges) String() string
- func (n *AlterDefaultPrivileges) WithChildren(ctx *sql.Context, children ...sql.Node) (sql.Node, error)
- func (n *AlterDefaultPrivileges) WithResolvedChildren(ctx context.Context, children []any) (any, error)
- type AlterExtension
- func (c *AlterExtension) Children() []sql.Node
- func (c *AlterExtension) IsReadOnly() bool
- func (c *AlterExtension) Resolved() bool
- func (c *AlterExtension) RowIter(ctx *sql.Context, r sql.Row) (sql.RowIter, error)
- func (c *AlterExtension) Schema(ctx *sql.Context) sql.Schema
- func (c *AlterExtension) String() string
- func (c *AlterExtension) WithChildren(ctx *sql.Context, children ...sql.Node) (sql.Node, error)
- func (c *AlterExtension) WithResolvedChildren(ctx context.Context, children []any) (any, error)
- type AlterRole
- func (c *AlterRole) Children() []sql.Node
- func (c *AlterRole) IsReadOnly() bool
- func (c *AlterRole) Resolved() bool
- func (c *AlterRole) RowIter(ctx *sql.Context, r sql.Row) (sql.RowIter, error)
- func (c *AlterRole) Schema(ctx *sql.Context) sql.Schema
- func (c *AlterRole) String() string
- func (c *AlterRole) WithChildren(ctx *sql.Context, children ...sql.Node) (sql.Node, error)
- func (c *AlterRole) WithResolvedChildren(ctx context.Context, children []any) (any, error)
- type AlterRoleSetting
- func (c *AlterRoleSetting) Children() []sql.Node
- func (c *AlterRoleSetting) IsReadOnly() bool
- func (c *AlterRoleSetting) Resolved() bool
- func (c *AlterRoleSetting) RowIter(ctx *sql.Context, r sql.Row) (sql.RowIter, error)
- func (c *AlterRoleSetting) Schema(ctx *sql.Context) sql.Schema
- func (c *AlterRoleSetting) String() string
- func (c *AlterRoleSetting) WithChildren(ctx *sql.Context, children ...sql.Node) (sql.Node, error)
- func (c *AlterRoleSetting) WithResolvedChildren(ctx context.Context, children []any) (any, error)
- type AlterSequence
- func (c *AlterSequence) Children() []sql.Node
- func (c *AlterSequence) IsReadOnly() bool
- func (c *AlterSequence) Resolved() bool
- func (c *AlterSequence) RowIter(ctx *sql.Context, r sql.Row) (sql.RowIter, error)
- func (c *AlterSequence) Schema(ctx *sql.Context) sql.Schema
- func (c *AlterSequence) String() string
- func (c *AlterSequence) WithChildren(ctx *sql.Context, children ...sql.Node) (sql.Node, error)
- func (c *AlterSequence) WithResolvedChildren(ctx context.Context, children []any) (any, error)
- type AlterSequenceOwnedBy
- type AlterTableColumnTypeUsing
- func (a *AlterTableColumnTypeUsing) Children() []sql.Node
- func (a *AlterTableColumnTypeUsing) DatabaseProvider() sql.DatabaseProvider
- func (a *AlterTableColumnTypeUsing) Expressions() []sql.Expression
- func (a *AlterTableColumnTypeUsing) IsReadOnly() bool
- func (a *AlterTableColumnTypeUsing) Resolved() bool
- func (a *AlterTableColumnTypeUsing) RowIter(ctx *sql.Context, r sql.Row) (sql.RowIter, error)
- func (a *AlterTableColumnTypeUsing) Schema(ctx *sql.Context) sql.Schema
- func (a *AlterTableColumnTypeUsing) String() string
- func (a *AlterTableColumnTypeUsing) WithChildren(ctx *sql.Context, children ...sql.Node) (sql.Node, error)
- func (a *AlterTableColumnTypeUsing) WithDatabaseProvider(provider sql.DatabaseProvider) (sql.Node, error)
- func (a *AlterTableColumnTypeUsing) WithExpressions(ctx *sql.Context, exprs ...sql.Expression) (sql.Node, error)
- func (a *AlterTableColumnTypeUsing) WithResolvedChildren(ctx context.Context, children []any) (any, error)
- func (a *AlterTableColumnTypeUsing) WithResolvedTable(table sql.TableNode) *AlterTableColumnTypeUsing
- type AlterTypeAddValue
- func (a *AlterTypeAddValue) Children() []sql.Node
- func (a *AlterTypeAddValue) IsReadOnly() bool
- func (a *AlterTypeAddValue) Resolved() bool
- func (a *AlterTypeAddValue) RowIter(ctx *sql.Context, _ sql.Row) (sql.RowIter, error)
- func (a *AlterTypeAddValue) Schema(ctx *sql.Context) sql.Schema
- func (a *AlterTypeAddValue) String() string
- func (a *AlterTypeAddValue) WithChildren(ctx *sql.Context, children ...sql.Node) (sql.Node, error)
- func (a *AlterTypeAddValue) WithResolvedChildren(ctx context.Context, children []any) (any, error)
- type Call
- func (c *Call) Children() []sql.Node
- func (c *Call) Expressions() []sql.Expression
- func (c *Call) IsReadOnly() bool
- func (c *Call) Resolved() bool
- func (c *Call) RowIter(ctx *sql.Context, r sql.Row) (sql.RowIter, error)
- func (c *Call) Schema(ctx *sql.Context) sql.Schema
- func (c *Call) String() string
- func (c *Call) WithChildren(ctx *sql.Context, children ...sql.Node) (sql.Node, error)
- func (c *Call) WithExpressions(ctx *sql.Context, exprs ...sql.Expression) (sql.Node, error)
- func (c *Call) WithResolvedChildren(ctx context.Context, children []any) (any, error)
- type CloseCursor
- func (c *CloseCursor) Children() []sql.Node
- func (c *CloseCursor) IsReadOnly() bool
- func (c *CloseCursor) Resolved() bool
- func (c *CloseCursor) RowIter(ctx *sql.Context, r sql.Row) (sql.RowIter, error)
- func (c *CloseCursor) Schema(ctx *sql.Context) sql.Schema
- func (c *CloseCursor) String() string
- func (c *CloseCursor) WithChildren(ctx *sql.Context, children ...sql.Node) (sql.Node, error)
- func (c *CloseCursor) WithResolvedChildren(ctx context.Context, children []any) (any, error)
- type CompositeAsType
- type ContextRootFinalizer
- func (rf *ContextRootFinalizer) BuildRowIter(ctx *sql.Context, b sql.NodeExecBuilder, r sql.Row) (sql.RowIter, error)
- func (rf *ContextRootFinalizer) Child() sql.Node
- func (rf *ContextRootFinalizer) Children() []sql.Node
- func (rf *ContextRootFinalizer) DebugString(ctx *sql.Context) string
- func (rf *ContextRootFinalizer) IsReadOnly() bool
- func (rf *ContextRootFinalizer) Resolved() bool
- func (rf *ContextRootFinalizer) Schema(ctx *sql.Context) sql.Schema
- func (rf *ContextRootFinalizer) String() string
- func (rf *ContextRootFinalizer) WithChildren(ctx *sql.Context, children ...sql.Node) (sql.Node, error)
- type CopyFrom
- func (cf *CopyFrom) Children() []sql.Node
- func (cf *CopyFrom) IsReadOnly() bool
- func (cf *CopyFrom) Resolved() bool
- func (cf *CopyFrom) RowIter(ctx *sql.Context, r sql.Row) (_ sql.RowIter, err error)
- func (cf *CopyFrom) Schema(ctx *sql.Context) sql.Schema
- func (cf *CopyFrom) String() string
- func (cf *CopyFrom) WithChildren(ctx *sql.Context, children ...sql.Node) (sql.Node, error)
- func (cf *CopyFrom) WithResolvedChildren(ctx context.Context, children []any) (any, error)
- type CopyTo
- func (ct *CopyTo) Children() []sql.Node
- func (ct *CopyTo) IsReadOnly() bool
- func (ct *CopyTo) Resolved() bool
- func (ct *CopyTo) RowIter(ctx *sql.Context, r sql.Row) (sql.RowIter, error)
- func (ct *CopyTo) Schema(ctx *sql.Context) sql.Schema
- func (ct *CopyTo) String() string
- func (ct *CopyTo) WithChildren(ctx *sql.Context, children ...sql.Node) (sql.Node, error)
- func (ct *CopyTo) WithResolvedChildren(ctx context.Context, children []any) (any, error)
- type CreateAggregate
- func (c *CreateAggregate) Children() []sql.Node
- func (c *CreateAggregate) IsReadOnly() bool
- func (c *CreateAggregate) Resolved() bool
- func (c *CreateAggregate) RowIter(ctx *sql.Context, r sql.Row) (sql.RowIter, error)
- func (c *CreateAggregate) Schema(ctx *sql.Context) sql.Schema
- func (c *CreateAggregate) String() string
- func (c *CreateAggregate) WithChildren(ctx *sql.Context, children ...sql.Node) (sql.Node, error)
- func (c *CreateAggregate) WithResolvedChildren(ctx context.Context, children []any) (any, error)
- type CreateCast
- func (c *CreateCast) Children() []sql.Node
- func (c *CreateCast) IsReadOnly() bool
- func (c *CreateCast) Resolved() bool
- func (c *CreateCast) RowIter(ctx *sql.Context, r sql.Row) (sql.RowIter, error)
- func (c *CreateCast) Schema(ctx *sql.Context) sql.Schema
- func (c *CreateCast) String() string
- func (c *CreateCast) WithChildren(ctx *sql.Context, children ...sql.Node) (sql.Node, error)
- func (c *CreateCast) WithResolvedChildren(ctx context.Context, children []any) (any, error)
- type CreateDomain
- func (c *CreateDomain) Children() []sql.Node
- func (c *CreateDomain) IsReadOnly() bool
- func (c *CreateDomain) Resolved() bool
- func (c *CreateDomain) RowIter(ctx *sql.Context, r sql.Row) (sql.RowIter, error)
- func (c *CreateDomain) Schema(ctx *sql.Context) sql.Schema
- func (c *CreateDomain) String() string
- func (c *CreateDomain) WithChildren(ctx *sql.Context, children ...sql.Node) (sql.Node, error)
- func (c *CreateDomain) WithOverrides(overrides sql.EngineOverrides) sql.Node
- func (c *CreateDomain) WithResolvedChildren(ctx context.Context, children []any) (any, error)
- type CreateExtension
- func (c *CreateExtension) Children() []sql.Node
- func (c *CreateExtension) IsReadOnly() bool
- func (c *CreateExtension) Resolved() bool
- func (c *CreateExtension) RowIter(ctx *sql.Context, r sql.Row) (sql.RowIter, error)
- func (c *CreateExtension) Schema(ctx *sql.Context) sql.Schema
- func (c *CreateExtension) String() string
- func (c *CreateExtension) WithChildren(ctx *sql.Context, children ...sql.Node) (sql.Node, error)
- func (c *CreateExtension) WithResolvedChildren(ctx context.Context, children []any) (any, error)
- type CreateFunction
- func (c *CreateFunction) Children() []sql.Node
- func (c *CreateFunction) IsReadOnly() bool
- func (c *CreateFunction) Resolved() bool
- func (c *CreateFunction) RowIter(ctx *sql.Context, r sql.Row) (sql.RowIter, error)
- func (c *CreateFunction) Schema(ctx *sql.Context) sql.Schema
- func (c *CreateFunction) String() string
- func (c *CreateFunction) WithChildren(ctx *sql.Context, children ...sql.Node) (sql.Node, error)
- func (c *CreateFunction) WithResolvedChildren(ctx context.Context, children []any) (any, error)
- type CreateOperator
- func (c *CreateOperator) Children() []sql.Node
- func (c *CreateOperator) IsReadOnly() bool
- func (c *CreateOperator) Resolved() bool
- func (c *CreateOperator) RowIter(ctx *sql.Context, r sql.Row) (sql.RowIter, error)
- func (c *CreateOperator) Schema(ctx *sql.Context) sql.Schema
- func (c *CreateOperator) String() string
- func (c *CreateOperator) WithChildren(ctx *sql.Context, children ...sql.Node) (sql.Node, error)
- func (c *CreateOperator) WithResolvedChildren(ctx context.Context, children []any) (any, error)
- type CreateProcedure
- func (c *CreateProcedure) Children() []sql.Node
- func (c *CreateProcedure) IsReadOnly() bool
- func (c *CreateProcedure) Resolved() bool
- func (c *CreateProcedure) RowIter(ctx *sql.Context, _ sql.Row) (sql.RowIter, error)
- func (c *CreateProcedure) Schema(ctx *sql.Context) sql.Schema
- func (c *CreateProcedure) String() string
- func (c *CreateProcedure) WithChildren(ctx *sql.Context, children ...sql.Node) (sql.Node, error)
- func (c *CreateProcedure) WithResolvedChildren(ctx context.Context, children []any) (any, error)
- type CreateRole
- func (c *CreateRole) Children() []sql.Node
- func (c *CreateRole) IsReadOnly() bool
- func (c *CreateRole) Resolved() bool
- func (c *CreateRole) RowIter(ctx *sql.Context, r sql.Row) (sql.RowIter, error)
- func (c *CreateRole) Schema(ctx *sql.Context) sql.Schema
- func (c *CreateRole) String() string
- func (c *CreateRole) WithChildren(ctx *sql.Context, children ...sql.Node) (sql.Node, error)
- func (c *CreateRole) WithResolvedChildren(ctx context.Context, children []any) (any, error)
- type CreateSequence
- func (c *CreateSequence) Children() []sql.Node
- func (c *CreateSequence) IsReadOnly() bool
- func (c *CreateSequence) Resolved() bool
- func (c *CreateSequence) RowIter(ctx *sql.Context, r sql.Row) (sql.RowIter, error)
- func (c *CreateSequence) Schema(ctx *sql.Context) sql.Schema
- func (c *CreateSequence) String() string
- func (c *CreateSequence) WithChildren(ctx *sql.Context, children ...sql.Node) (sql.Node, error)
- func (c *CreateSequence) WithResolvedChildren(ctx context.Context, children []any) (any, error)
- type CreateTable
- func (c *CreateTable) BuildRowIter(ctx *sql.Context, b sql.NodeExecBuilder, r sql.Row) (sql.RowIter, error)
- func (c *CreateTable) Children() []sql.Node
- func (c *CreateTable) DebugString(ctx *sql.Context) string
- func (c *CreateTable) Expressions() []sql.Expression
- func (c *CreateTable) IsReadOnly() bool
- func (c *CreateTable) Name() string
- func (c *CreateTable) Resolved() bool
- func (c *CreateTable) Schema(ctx *sql.Context) sql.Schema
- func (c *CreateTable) String() string
- func (c *CreateTable) TargetSchema() sql.Schema
- func (c *CreateTable) WithChildren(ctx *sql.Context, children ...sql.Node) (sql.Node, error)
- func (c *CreateTable) WithExpressions(ctx *sql.Context, expression ...sql.Expression) (sql.Node, error)
- func (c CreateTable) WithTargetSchema(schema sql.Schema) (sql.Node, error)
- type CreateTrigger
- func (c *CreateTrigger) Children() []sql.Node
- func (c *CreateTrigger) IsReadOnly() bool
- func (c *CreateTrigger) Resolved() bool
- func (c *CreateTrigger) RowIter(ctx *sql.Context, r sql.Row) (sql.RowIter, error)
- func (c *CreateTrigger) Schema(ctx *sql.Context) sql.Schema
- func (c *CreateTrigger) String() string
- func (c *CreateTrigger) WithChildren(ctx *sql.Context, children ...sql.Node) (sql.Node, error)
- func (c *CreateTrigger) WithResolvedChildren(ctx context.Context, children []any) (any, error)
- type CreateType
- func (c *CreateType) Children() []sql.Node
- func (c *CreateType) IsReadOnly() bool
- func (c *CreateType) Resolved() bool
- func (c *CreateType) RowIter(ctx *sql.Context, r sql.Row) (sql.RowIter, error)
- func (c *CreateType) Schema(ctx *sql.Context) sql.Schema
- func (c *CreateType) String() string
- func (c *CreateType) WithChildren(ctx *sql.Context, children ...sql.Node) (sql.Node, error)
- func (c *CreateType) WithResolvedChildren(ctx context.Context, children []any) (any, error)
- type DeclareCursor
- func (d *DeclareCursor) Children() []sql.Node
- func (d *DeclareCursor) IsReadOnly() bool
- func (d *DeclareCursor) Resolved() bool
- func (d *DeclareCursor) RowIter(ctx *sql.Context, r sql.Row) (sql.RowIter, error)
- func (d *DeclareCursor) Schema(ctx *sql.Context) sql.Schema
- func (d *DeclareCursor) String() string
- func (d *DeclareCursor) WithChildren(ctx *sql.Context, children ...sql.Node) (sql.Node, error)
- func (d *DeclareCursor) WithResolvedChildren(ctx context.Context, children []any) (any, error)
- type DiscardStatement
- func (d DiscardStatement) Children() []sql.Node
- func (d DiscardStatement) IsReadOnly() bool
- func (d DiscardStatement) Resolved() bool
- func (d DiscardStatement) RowIter(ctx *sql.Context, r sql.Row) (sql.RowIter, error)
- func (d DiscardStatement) Schema(ctx *sql.Context) sql.Schema
- func (d DiscardStatement) String() string
- func (d DiscardStatement) WithChildren(ctx *sql.Context, children ...sql.Node) (sql.Node, error)
- func (d DiscardStatement) WithResolvedChildren(ctx context.Context, children []any) (any, error)
- type Do
- func (*Do) Children() []sql.Node
- func (d *Do) Expressions() []sql.Expression
- func (*Do) IsReadOnly() bool
- func (*Do) Resolved() bool
- func (d *Do) RowIter(ctx *sql.Context, _ sql.Row) (sql.RowIter, error)
- func (*Do) Schema(*sql.Context) sql.Schema
- func (*Do) String() string
- func (d *Do) WithChildren(ctx *sql.Context, children ...sql.Node) (sql.Node, error)
- func (d *Do) WithExpressions(_ *sql.Context, exprs ...sql.Expression) (sql.Node, error)
- func (d *Do) WithResolvedChildren(context.Context, []any) (any, error)
- type DomainColumn
- func (d *DomainColumn) Children() []sql.Expression
- func (d *DomainColumn) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (d *DomainColumn) IsNullable(ctx *sql.Context) bool
- func (d *DomainColumn) Resolved() bool
- func (d *DomainColumn) String() string
- func (d *DomainColumn) Type(ctx *sql.Context) sql.Type
- func (d *DomainColumn) WithChildren(ctx *sql.Context, children ...sql.Expression) (sql.Expression, error)
- func (d *DomainColumn) WithResolvedChildren(ctx context.Context, children []any) (any, error)
- type DropAggregate
- func (d *DropAggregate) Children() []sql.Node
- func (d *DropAggregate) IsReadOnly() bool
- func (d *DropAggregate) Resolved() bool
- func (d *DropAggregate) RowIter(ctx *sql.Context, r sql.Row) (sql.RowIter, error)
- func (d *DropAggregate) Schema(ctx *sql.Context) sql.Schema
- func (d *DropAggregate) String() string
- func (d *DropAggregate) WithChildren(ctx *sql.Context, children ...sql.Node) (sql.Node, error)
- func (d *DropAggregate) WithResolvedChildren(ctx context.Context, children []any) (any, error)
- type DropCast
- func (c *DropCast) Children() []sql.Node
- func (c *DropCast) IsReadOnly() bool
- func (c *DropCast) Resolved() bool
- func (c *DropCast) RowIter(ctx *sql.Context, r sql.Row) (sql.RowIter, error)
- func (c *DropCast) Schema(ctx *sql.Context) sql.Schema
- func (c *DropCast) String() string
- func (c *DropCast) WithChildren(ctx *sql.Context, children ...sql.Node) (sql.Node, error)
- func (c *DropCast) WithResolvedChildren(ctx context.Context, children []any) (any, error)
- type DropDatabase
- func (c *DropDatabase) Children() []sql.Node
- func (c *DropDatabase) DatabaseProvider() sql.DatabaseProvider
- func (c *DropDatabase) IsReadOnly() bool
- func (c *DropDatabase) Resolved() bool
- func (c *DropDatabase) RowIter(ctx *sql.Context, r sql.Row) (sql.RowIter, error)
- func (c *DropDatabase) Schema(ctx *sql.Context) sql.Schema
- func (c *DropDatabase) String() string
- func (c *DropDatabase) WithChildren(ctx *sql.Context, children ...sql.Node) (sql.Node, error)
- func (c *DropDatabase) WithDatabaseProvider(provider sql.DatabaseProvider) (sql.Node, error)
- func (c *DropDatabase) WithResolvedChildren(ctx context.Context, children []any) (any, error)
- type DropDomain
- func (c *DropDomain) Children() []sql.Node
- func (c *DropDomain) IsReadOnly() bool
- func (c *DropDomain) Resolved() bool
- func (c *DropDomain) RowIter(ctx *sql.Context, r sql.Row) (sql.RowIter, error)
- func (c *DropDomain) Schema(ctx *sql.Context) sql.Schema
- func (c *DropDomain) String() string
- func (c *DropDomain) WithChildren(ctx *sql.Context, children ...sql.Node) (sql.Node, error)
- func (c *DropDomain) WithResolvedChildren(ctx context.Context, children []any) (any, error)
- type DropExtension
- func (c *DropExtension) Children() []sql.Node
- func (c *DropExtension) IsReadOnly() bool
- func (c *DropExtension) Resolved() bool
- func (c *DropExtension) RowIter(ctx *sql.Context, r sql.Row) (sql.RowIter, error)
- func (c *DropExtension) Schema(ctx *sql.Context) sql.Schema
- func (c *DropExtension) String() string
- func (c *DropExtension) WithChildren(ctx *sql.Context, children ...sql.Node) (sql.Node, error)
- func (c *DropExtension) WithResolvedChildren(ctx context.Context, children []any) (any, error)
- type DropFunction
- func (d *DropFunction) Children() []sql.Node
- func (d *DropFunction) IsReadOnly() bool
- func (d *DropFunction) Resolved() bool
- func (d *DropFunction) RowIter(ctx *sql.Context, r sql.Row) (iter sql.RowIter, err error)
- func (d *DropFunction) Schema(ctx *sql.Context) sql.Schema
- func (d *DropFunction) String() string
- func (d *DropFunction) WithChildren(ctx *sql.Context, children ...sql.Node) (sql.Node, error)
- func (d *DropFunction) WithResolvedChildren(ctx context.Context, children []any) (any, error)
- type DropOperator
- func (d *DropOperator) Children() []sql.Node
- func (d *DropOperator) IsReadOnly() bool
- func (d *DropOperator) Resolved() bool
- func (d *DropOperator) RowIter(ctx *sql.Context, r sql.Row) (sql.RowIter, error)
- func (d *DropOperator) Schema(ctx *sql.Context) sql.Schema
- func (d *DropOperator) String() string
- func (d *DropOperator) WithChildren(ctx *sql.Context, children ...sql.Node) (sql.Node, error)
- func (d *DropOperator) WithResolvedChildren(ctx context.Context, children []any) (any, error)
- type DropProcedure
- func (d *DropProcedure) Children() []sql.Node
- func (d *DropProcedure) IsReadOnly() bool
- func (d *DropProcedure) Resolved() bool
- func (d *DropProcedure) RowIter(ctx *sql.Context, r sql.Row) (iter sql.RowIter, err error)
- func (d *DropProcedure) Schema(ctx *sql.Context) sql.Schema
- func (d *DropProcedure) String() string
- func (d *DropProcedure) WithChildren(ctx *sql.Context, children ...sql.Node) (sql.Node, error)
- func (d *DropProcedure) WithResolvedChildren(ctx context.Context, children []any) (any, error)
- type DropRole
- func (c *DropRole) Children() []sql.Node
- func (c *DropRole) IsReadOnly() bool
- func (c *DropRole) Resolved() bool
- func (c *DropRole) RowIter(ctx *sql.Context, r sql.Row) (sql.RowIter, error)
- func (c *DropRole) Schema(ctx *sql.Context) sql.Schema
- func (c *DropRole) String() string
- func (c *DropRole) WithChildren(ctx *sql.Context, children ...sql.Node) (sql.Node, error)
- func (c *DropRole) WithResolvedChildren(ctx context.Context, children []any) (any, error)
- type DropSequence
- func (c *DropSequence) Children() []sql.Node
- func (c *DropSequence) IsReadOnly() bool
- func (c *DropSequence) Resolved() bool
- func (c *DropSequence) RowIter(ctx *sql.Context, r sql.Row) (sql.RowIter, error)
- func (c *DropSequence) Schema(ctx *sql.Context) sql.Schema
- func (c *DropSequence) String() string
- func (c *DropSequence) WithChildren(ctx *sql.Context, children ...sql.Node) (sql.Node, error)
- func (c *DropSequence) WithResolvedChildren(ctx context.Context, children []any) (any, error)
- type DropTable
- func (c *DropTable) BuildRowIter(ctx *sql.Context, b sql.NodeExecBuilder, r sql.Row) (sql.RowIter, error)
- func (c *DropTable) Children() []sql.Node
- func (c *DropTable) IsReadOnly() bool
- func (c *DropTable) Resolved() bool
- func (c *DropTable) Schema(ctx *sql.Context) sql.Schema
- func (c *DropTable) String() string
- func (c *DropTable) WithChildren(ctx *sql.Context, children ...sql.Node) (sql.Node, error)
- type DropTrigger
- func (c *DropTrigger) Children() []sql.Node
- func (c *DropTrigger) IsReadOnly() bool
- func (c *DropTrigger) Resolved() bool
- func (c *DropTrigger) RowIter(ctx *sql.Context, r sql.Row) (sql.RowIter, error)
- func (c *DropTrigger) Schema(ctx *sql.Context) sql.Schema
- func (c *DropTrigger) String() string
- func (c *DropTrigger) WithChildren(ctx *sql.Context, children ...sql.Node) (sql.Node, error)
- func (c *DropTrigger) WithResolvedChildren(ctx context.Context, children []any) (any, error)
- type DropType
- func (c *DropType) Children() []sql.Node
- func (c *DropType) IsReadOnly() bool
- func (c *DropType) Resolved() bool
- func (c *DropType) RowIter(ctx *sql.Context, r sql.Row) (sql.RowIter, error)
- func (c *DropType) Schema(ctx *sql.Context) sql.Schema
- func (c *DropType) String() string
- func (c *DropType) WithChildren(ctx *sql.Context, children ...sql.Node) (sql.Node, error)
- func (c *DropType) WithResolvedChildren(ctx context.Context, children []any) (any, error)
- type FetchCursor
- func (f *FetchCursor) Children() []sql.Node
- func (f *FetchCursor) IsReadOnly() bool
- func (f *FetchCursor) Resolved() bool
- func (f *FetchCursor) RowIter(ctx *sql.Context, r sql.Row) (sql.RowIter, error)
- func (f *FetchCursor) Schema(ctx *sql.Context) sql.Schema
- func (f *FetchCursor) String() string
- func (f *FetchCursor) WithChildren(ctx *sql.Context, children ...sql.Node) (sql.Node, error)
- func (f *FetchCursor) WithResolvedChildren(ctx context.Context, children []any) (any, error)
- type FunctionColumn
- func (f *FunctionColumn) Children() []sql.Expression
- func (f *FunctionColumn) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (f *FunctionColumn) IsNullable(ctx *sql.Context) bool
- func (f *FunctionColumn) Resolved() bool
- func (f *FunctionColumn) String() string
- func (f *FunctionColumn) Type(ctx *sql.Context) sql.Type
- func (f *FunctionColumn) WithChildren(ctx *sql.Context, children ...sql.Expression) (sql.Expression, error)
- func (f *FunctionColumn) WithResolvedChildren(ctx context.Context, children []any) (any, error)
- type Grant
- func (g *Grant) Children() []sql.Node
- func (g *Grant) IsReadOnly() bool
- func (g *Grant) Resolved() bool
- func (g *Grant) RowIter(ctx *sql.Context, r sql.Row) (sql.RowIter, error)
- func (g *Grant) Schema(ctx *sql.Context) sql.Schema
- func (g *Grant) String() string
- func (g *Grant) WithChildren(ctx *sql.Context, children ...sql.Node) (sql.Node, error)
- func (g *Grant) WithResolvedChildren(ctx context.Context, children []any) (any, error)
- type GrantDatabase
- type GrantRole
- type GrantRoutine
- type GrantSchema
- type GrantSequence
- type GrantTable
- type JsonTable
- func (j *JsonTable) Children() []sql.Node
- func (j *JsonTable) Database() sql.Database
- func (j *JsonTable) Expressions() []sql.Expression
- func (j *JsonTable) IsReadOnly() bool
- func (j *JsonTable) Name() string
- func (j *JsonTable) NewInstance(ctx *sql.Context, db sql.Database, args []sql.Expression) (sql.Node, error)
- func (j *JsonTable) Resolved() bool
- func (j *JsonTable) RowIter(ctx *sql.Context, row sql.Row) (sql.RowIter, error)
- func (j *JsonTable) Schema(ctx *sql.Context) sql.Schema
- func (j *JsonTable) String() string
- func (j *JsonTable) WithChildren(ctx *sql.Context, children ...sql.Node) (sql.Node, error)
- func (j *JsonTable) WithDatabase(database sql.Database) (sql.Node, error)
- func (j *JsonTable) WithExpressions(ctx *sql.Context, exprs ...sql.Expression) (sql.Node, error)
- type JsonTableBehavior
- type JsonTableColumn
- type JsonTablePassing
- type JsonTablePath
- type NoOp
- func (n NoOp) Children() []sql.Node
- func (n NoOp) IsReadOnly() bool
- func (n NoOp) Resolved() bool
- func (n NoOp) RowIter(ctx *sql.Context, r sql.Row) (sql.RowIter, error)
- func (n NoOp) Schema(ctx *sql.Context) sql.Schema
- func (n NoOp) String() string
- func (n NoOp) WithChildren(ctx *sql.Context, children ...sql.Node) (sql.Node, error)
- func (n NoOp) WithResolvedChildren(ctx context.Context, children []any) (any, error)
- type OperatorToDrop
- type PrivilegeTarget
- type RenameIndex
- func (r *RenameIndex) Children() []sql.Node
- func (r *RenameIndex) IsReadOnly() bool
- func (r *RenameIndex) Resolved() bool
- func (r *RenameIndex) RowIter(ctx *sql.Context, _ sql.Row) (sql.RowIter, error)
- func (r *RenameIndex) Schema(ctx *sql.Context) sql.Schema
- func (r *RenameIndex) String() string
- func (r *RenameIndex) WithChildren(ctx *sql.Context, children ...sql.Node) (sql.Node, error)
- func (r *RenameIndex) WithResolvedChildren(ctx context.Context, children []any) (any, error)
- func (r *RenameIndex) WithResolvedTable(table sql.TableNode) *RenameIndex
- type ResetSettings
- func (*ResetSettings) Children() []sql.Node
- func (*ResetSettings) IsReadOnly() bool
- func (*ResetSettings) Resolved() bool
- func (*ResetSettings) RowIter(ctx *sql.Context, _ sql.Row) (sql.RowIter, error)
- func (*ResetSettings) Schema(*sql.Context) sql.Schema
- func (*ResetSettings) String() string
- func (r *ResetSettings) WithChildren(ctx *sql.Context, children ...sql.Node) (sql.Node, error)
- func (r *ResetSettings) WithResolvedChildren(_ context.Context, children []any) (any, error)
- type Return
- func (r *Return) Children() []sql.Node
- func (r *Return) Expressions() []sql.Expression
- func (r *Return) IsReadOnly() bool
- func (r *Return) Resolved() bool
- func (r *Return) RowIter(ctx *sql.Context, row sql.Row) (sql.RowIter, error)
- func (r *Return) Schema(ctx *sql.Context) sql.Schema
- func (r *Return) String() string
- func (r *Return) WithChildren(ctx *sql.Context, children ...sql.Node) (sql.Node, error)
- func (r *Return) WithExpressions(ctx *sql.Context, exprs ...sql.Expression) (sql.Node, error)
- func (r *Return) WithResolvedChildren(ctx context.Context, children []any) (any, error)
- type Revoke
- func (r *Revoke) Children() []sql.Node
- func (r *Revoke) IsReadOnly() bool
- func (r *Revoke) Resolved() bool
- func (r *Revoke) RowIter(ctx *sql.Context, _ sql.Row) (sql.RowIter, error)
- func (r *Revoke) Schema(ctx *sql.Context) sql.Schema
- func (r *Revoke) String() string
- func (r *Revoke) WithChildren(ctx *sql.Context, children ...sql.Node) (sql.Node, error)
- func (r *Revoke) WithResolvedChildren(ctx context.Context, children []any) (any, error)
- type RevokeDatabase
- type RevokeRole
- type RevokeRoutine
- type RevokeSchema
- type RevokeSequence
- type RevokeTable
- type RoutineKind
- type RoutineParam
- type RoutineWithParams
- type SetConstraints
- func (c *SetConstraints) Children() []sql.Node
- func (c *SetConstraints) IsReadOnly() bool
- func (c *SetConstraints) Resolved() bool
- func (c *SetConstraints) RowIter(ctx *sql.Context, r sql.Row) (sql.RowIter, error)
- func (c *SetConstraints) Schema(ctx *sql.Context) sql.Schema
- func (c *SetConstraints) String() string
- func (c *SetConstraints) WithChildren(ctx *sql.Context, children ...sql.Node) (sql.Node, error)
- func (c *SetConstraints) WithResolvedChildren(ctx context.Context, children []any) (any, error)
- type SetRole
- func (s *SetRole) Children() []sql.Node
- func (s *SetRole) IsReadOnly() bool
- func (s *SetRole) Resolved() bool
- func (s *SetRole) RowIter(ctx *sql.Context, _ sql.Row) (sql.RowIter, error)
- func (s *SetRole) Schema(*sql.Context) sql.Schema
- func (s *SetRole) String() string
- func (s *SetRole) WithChildren(ctx *sql.Context, children ...sql.Node) (sql.Node, error)
- func (s *SetRole) WithResolvedChildren(_ context.Context, children []any) (any, error)
- type SetSessionAuthorization
- func (s *SetSessionAuthorization) Children() []sql.Node
- func (s *SetSessionAuthorization) IsReadOnly() bool
- func (s *SetSessionAuthorization) Resolved() bool
- func (s *SetSessionAuthorization) RowIter(ctx *sql.Context, _ sql.Row) (sql.RowIter, error)
- func (s *SetSessionAuthorization) Schema(*sql.Context) sql.Schema
- func (s *SetSessionAuthorization) String() string
- func (s *SetSessionAuthorization) WithChildren(_ *sql.Context, children ...sql.Node) (sql.Node, error)
- func (s *SetSessionAuthorization) WithResolvedChildren(_ context.Context, children []any) (any, error)
- type SetSetting
- func (*SetSetting) Children() []sql.Node
- func (s *SetSetting) Expressions() []sql.Expression
- func (*SetSetting) IsReadOnly() bool
- func (s *SetSetting) Resolved() bool
- func (s *SetSetting) RowIter(ctx *sql.Context, row sql.Row) (sql.RowIter, error)
- func (*SetSetting) Schema(*sql.Context) sql.Schema
- func (s *SetSetting) String() string
- func (s *SetSetting) WithChildren(ctx *sql.Context, children ...sql.Node) (sql.Node, error)
- func (s *SetSetting) WithExpressions(_ *sql.Context, exprs ...sql.Expression) (sql.Node, error)
- func (s *SetSetting) WithResolvedChildren(_ context.Context, children []any) (any, error)
- type ShowSchemas
- func (s *ShowSchemas) Children() []sql.Node
- func (s *ShowSchemas) IsReadOnly() bool
- func (s *ShowSchemas) Resolved() bool
- func (s *ShowSchemas) RowIter(ctx *sql.Context, r sql.Row) (sql.RowIter, error)
- func (s *ShowSchemas) Schema(ctx *sql.Context) sql.Schema
- func (s *ShowSchemas) String() string
- func (s *ShowSchemas) WithChildren(ctx *sql.Context, children ...sql.Node) (sql.Node, error)
- func (s *ShowSchemas) WithResolvedChildren(ctx context.Context, children []any) (any, error)
- type ShowSequences
- func (s *ShowSequences) Children() []sql.Node
- func (s *ShowSequences) IsReadOnly() bool
- func (s *ShowSequences) Resolved() bool
- func (s *ShowSequences) RowIter(ctx *sql.Context, r sql.Row) (sql.RowIter, error)
- func (s *ShowSequences) Schema(ctx *sql.Context) sql.Schema
- func (s *ShowSequences) String() string
- func (s *ShowSequences) WithChildren(ctx *sql.Context, children ...sql.Node) (sql.Node, error)
- func (s *ShowSequences) WithResolvedChildren(ctx context.Context, children []any) (any, error)
- type TableFunctionDefinition
- func (d *TableFunctionDefinition) Children() []sql.Expression
- func (d *TableFunctionDefinition) Eval(ctx *sql.Context, row sql.Row) (any, error)
- func (d *TableFunctionDefinition) IsNullable(ctx *sql.Context) bool
- func (d *TableFunctionDefinition) Resolved() bool
- func (d *TableFunctionDefinition) String() string
- func (d *TableFunctionDefinition) Type(ctx *sql.Context) sql.Type
- func (d *TableFunctionDefinition) WithChildren(ctx *sql.Context, children ...sql.Expression) (sql.Expression, error)
- func (d *TableFunctionDefinition) WithResolvedChildren(ctx context.Context, children []any) (any, error)
- type TriggerExecution
- func (te *TriggerExecution) BuildRowIter(ctx *sql.Context, b sql.NodeExecBuilder, r sql.Row) (sql.RowIter, error)
- func (te *TriggerExecution) Children() []sql.Node
- func (te *TriggerExecution) Expressions() []sql.Expression
- func (te *TriggerExecution) IsReadOnly() bool
- func (te *TriggerExecution) Resolved() bool
- func (te *TriggerExecution) Schema(ctx *sql.Context) sql.Schema
- func (te *TriggerExecution) String() string
- func (te *TriggerExecution) WithChildren(ctx *sql.Context, children ...sql.Node) (sql.Node, error)
- func (te *TriggerExecution) WithExpressions(ctx *sql.Context, expressions ...sql.Expression) (sql.Node, error)
- type TriggerExecutionRowHandling
- type UsingColumn
- func (u *UsingColumn) Children() []sql.Expression
- func (u *UsingColumn) Eval(ctx *sql.Context, row sql.Row) (interface{}, error)
- func (u *UsingColumn) IsNullable(ctx *sql.Context) bool
- func (u *UsingColumn) Resolved() bool
- func (u *UsingColumn) String() string
- func (u *UsingColumn) Type(ctx *sql.Context) sql.Type
- func (u *UsingColumn) WithChildren(ctx *sql.Context, children ...sql.Expression) (sql.Expression, error)
- func (u *UsingColumn) WithResolvedChildren(ctx context.Context, children []any) (any, error)
- type ValidateConstraint
- func (v *ValidateConstraint) Children() []sql.Node
- func (v *ValidateConstraint) DatabaseProvider() sql.DatabaseProvider
- func (v *ValidateConstraint) IsReadOnly() bool
- func (v *ValidateConstraint) Resolved() bool
- func (v *ValidateConstraint) RowIter(ctx *sql.Context, r sql.Row) (sql.RowIter, error)
- func (v *ValidateConstraint) Schema(ctx *sql.Context) sql.Schema
- func (v *ValidateConstraint) String() string
- func (v *ValidateConstraint) WithChildren(ctx *sql.Context, children ...sql.Node) (sql.Node, error)
- func (v *ValidateConstraint) WithDatabaseProvider(provider sql.DatabaseProvider) (sql.Node, error)
- func (v *ValidateConstraint) WithResolvedChildren(ctx context.Context, children []any) (any, error)
- type XmlTable
- func (x *XmlTable) Children() []sql.Node
- func (x *XmlTable) Database() sql.Database
- func (x *XmlTable) Expressions() []sql.Expression
- func (x *XmlTable) IsReadOnly() bool
- func (x *XmlTable) Name() string
- func (x *XmlTable) NewInstance(ctx *sql.Context, db sql.Database, args []sql.Expression) (sql.Node, error)
- func (x *XmlTable) Resolved() bool
- func (x *XmlTable) RowIter(ctx *sql.Context, row sql.Row) (sql.RowIter, error)
- func (x *XmlTable) Schema(ctx *sql.Context) sql.Schema
- func (x *XmlTable) String() string
- func (x *XmlTable) WithChildren(ctx *sql.Context, children ...sql.Node) (sql.Node, error)
- func (x *XmlTable) WithDatabase(database sql.Database) (sql.Node, error)
- func (x *XmlTable) WithExpressions(ctx *sql.Context, exprs ...sql.Expression) (sql.Node, error)
- type XmlTableColumn
- type XmlTableNamespace
Constants ¶
const JsonTableName = "json_table"
JsonTableName is the name of the table function that implements JSON_TABLE.
const XmlTableName = "xmltable"
XmlTableName is the name of the table function that implements XMLTABLE.
Variables ¶
var ErrVitessChildCount = gmserrors.NewKind("invalid vitess child count, expected `%d` but got `%d`")
ErrVitessChildCount is returned by WithResolvedChildren to indicate that the expected child count is incorrect.
Functions ¶
This section is empty.
Types ¶
type AggregateToDrop ¶ added in v1.2.0
type AggregateToDrop struct {
SchemaName string
Name string
ArgTypes []*pgtypes.DoltgresType
}
AggregateToDrop represents an aggregate in DROP AGGREGATE.
type AlterDefaultPrivileges ¶ added in v1.5.0
type AlterDefaultPrivileges struct {
OwnerRoles []string
Schemas []string
ObjectType auth.PrivilegeObject
Privileges []auth.Privilege
Grantees []string
Grant bool // false = REVOKE
GrantOption bool
Cascade bool
}
AlterDefaultPrivileges handles the ALTER DEFAULT PRIVILEGES statement.
func (*AlterDefaultPrivileges) Children ¶ added in v1.5.0
func (n *AlterDefaultPrivileges) Children() []sql.Node
Children implements the interface sql.ExecSourceRel.
func (*AlterDefaultPrivileges) IsReadOnly ¶ added in v1.5.0
func (n *AlterDefaultPrivileges) IsReadOnly() bool
IsReadOnly implements the interface sql.ExecSourceRel.
func (*AlterDefaultPrivileges) Resolved ¶ added in v1.5.0
func (n *AlterDefaultPrivileges) Resolved() bool
Resolved implements the interface sql.ExecSourceRel.
func (*AlterDefaultPrivileges) RowIter ¶ added in v1.5.0
RowIter implements the interface sql.ExecSourceRel.
func (*AlterDefaultPrivileges) Schema ¶ added in v1.5.0
func (n *AlterDefaultPrivileges) Schema(ctx *sql.Context) sql.Schema
Schema implements the interface sql.ExecSourceRel.
func (*AlterDefaultPrivileges) String ¶ added in v1.5.0
func (n *AlterDefaultPrivileges) String() string
String implements the interface sql.ExecSourceRel.
func (*AlterDefaultPrivileges) WithChildren ¶ added in v1.5.0
func (n *AlterDefaultPrivileges) WithChildren(ctx *sql.Context, children ...sql.Node) (sql.Node, error)
WithChildren implements the interface sql.ExecSourceRel.
func (*AlterDefaultPrivileges) WithResolvedChildren ¶ added in v1.5.0
func (n *AlterDefaultPrivileges) WithResolvedChildren(ctx context.Context, children []any) (any, error)
WithResolvedChildren implements the interface vitess.Injectable.
type AlterExtension ¶ added in v1.5.0
AlterExtension implements ALTER EXTENSION ... UPDATE, which rewrites an installed extension's objects to match the version of the extension that this server emulates. Version is empty when no version is given.
func NewAlterExtension ¶ added in v1.5.0
func NewAlterExtension(name string, version string) *AlterExtension
NewAlterExtension returns a new *AlterExtension.
func (*AlterExtension) Children ¶ added in v1.5.0
func (c *AlterExtension) Children() []sql.Node
Children implements the interface sql.ExecSourceRel.
func (*AlterExtension) IsReadOnly ¶ added in v1.5.0
func (c *AlterExtension) IsReadOnly() bool
IsReadOnly implements the interface sql.ExecSourceRel.
func (*AlterExtension) Resolved ¶ added in v1.5.0
func (c *AlterExtension) Resolved() bool
Resolved implements the interface sql.ExecSourceRel.
func (*AlterExtension) RowIter ¶ added in v1.5.0
RowIter implements the interface sql.ExecSourceRel.
func (*AlterExtension) Schema ¶ added in v1.5.0
func (c *AlterExtension) Schema(ctx *sql.Context) sql.Schema
Schema implements the interface sql.ExecSourceRel.
func (*AlterExtension) String ¶ added in v1.5.0
func (c *AlterExtension) String() string
String implements the interface sql.ExecSourceRel.
func (*AlterExtension) WithChildren ¶ added in v1.5.0
WithChildren implements the interface sql.ExecSourceRel.
func (*AlterExtension) WithResolvedChildren ¶ added in v1.5.0
WithResolvedChildren implements the interface vitess.Injectable.
type AlterRole ¶ added in v0.13.0
AlterRole handles the ALTER ROLE and ALTER USER statements (ALTER USER is an alias).
func (*AlterRole) IsReadOnly ¶ added in v0.13.0
IsReadOnly implements the interface sql.ExecSourceRel.
func (*AlterRole) WithChildren ¶ added in v0.13.0
WithChildren implements the interface sql.ExecSourceRel.
type AlterRoleSetting ¶ added in v1.5.0
type AlterRoleSetting struct {
// Role is the role that the settings apply to. This may also be current_user, current_role, or session_user. This
// is ignored when AllRoles is true.
Role string
// AllRoles applies the settings to every role. This is true for ALTER ROLE ALL and ALTER DATABASE, as ALTER
// DATABASE d is equivalent to ALTER ROLE ALL IN DATABASE d.
AllRoles bool
// Database is the database that the settings apply to. An empty string applies the settings to every database.
Database string
// Name is the configuration parameter's name. This is ignored when ResetAll is true.
Name string
// Value is the configuration parameter's value. This is ignored when Reset, ResetAll, or FromCurrent is true.
Value string
// FromCurrent uses the session's current value of the parameter.
FromCurrent bool
// Reset removes the parameter.
Reset bool
// ResetAll removes every parameter.
ResetAll bool
}
AlterRoleSetting handles ALTER ROLE ... SET/RESET and ALTER DATABASE ... SET/RESET, which set the configuration parameter defaults that are applied when a session starts.
func (*AlterRoleSetting) Children ¶ added in v1.5.0
func (c *AlterRoleSetting) Children() []sql.Node
Children implements the interface sql.ExecSourceRel.
func (*AlterRoleSetting) IsReadOnly ¶ added in v1.5.0
func (c *AlterRoleSetting) IsReadOnly() bool
IsReadOnly implements the interface sql.ExecSourceRel.
func (*AlterRoleSetting) Resolved ¶ added in v1.5.0
func (c *AlterRoleSetting) Resolved() bool
Resolved implements the interface sql.ExecSourceRel.
func (*AlterRoleSetting) RowIter ¶ added in v1.5.0
RowIter implements the interface sql.ExecSourceRel.
func (*AlterRoleSetting) Schema ¶ added in v1.5.0
func (c *AlterRoleSetting) Schema(ctx *sql.Context) sql.Schema
Schema implements the interface sql.ExecSourceRel.
func (*AlterRoleSetting) String ¶ added in v1.5.0
func (c *AlterRoleSetting) String() string
String implements the interface sql.ExecSourceRel.
func (*AlterRoleSetting) WithChildren ¶ added in v1.5.0
WithChildren implements the interface sql.ExecSourceRel.
func (*AlterRoleSetting) WithResolvedChildren ¶ added in v1.5.0
WithResolvedChildren implements the interface vitess.Injectable.
type AlterSequence ¶ added in v0.52.2
type AlterSequence struct {
// contains filtered or unexported fields
}
AlterSequence handles the ALTER SEQUENCE statement.
func NewAlterSequence ¶ added in v0.52.2
func NewAlterSequence(ifExists bool, targetSchema string, targetSequence string, ownedBy AlterSequenceOwnedBy, warnings ...string) *AlterSequence
NewAlterSequence returns a new *AlterSequence.
func (*AlterSequence) Children ¶ added in v0.52.2
func (c *AlterSequence) Children() []sql.Node
Children implements the interface sql.ExecSourceRel.
func (*AlterSequence) IsReadOnly ¶ added in v0.52.2
func (c *AlterSequence) IsReadOnly() bool
IsReadOnly implements the interface sql.ExecSourceRel.
func (*AlterSequence) Resolved ¶ added in v0.52.2
func (c *AlterSequence) Resolved() bool
Resolved implements the interface sql.ExecSourceRel.
func (*AlterSequence) RowIter ¶ added in v0.52.2
RowIter implements the interface sql.ExecSourceRel.
func (*AlterSequence) Schema ¶ added in v0.52.2
func (c *AlterSequence) Schema(ctx *sql.Context) sql.Schema
Schema implements the interface sql.ExecSourceRel.
func (*AlterSequence) String ¶ added in v0.52.2
func (c *AlterSequence) String() string
String implements the interface sql.ExecSourceRel.
func (*AlterSequence) WithChildren ¶ added in v0.52.2
WithChildren implements the interface sql.ExecSourceRel.
func (*AlterSequence) WithResolvedChildren ¶ added in v0.52.2
WithResolvedChildren implements the interface vitess.Injectable.
type AlterSequenceOwnedBy ¶ added in v0.52.2
AlterSequenceOwnedBy is an option in AlterSequence to represent OWNED BY.
type AlterTableColumnTypeUsing ¶ added in v1.3.1
type AlterTableColumnTypeUsing struct {
DbProvider sql.DatabaseProvider
NewType *pgtypes.DoltgresType
SchemaName string
TableName string
ColumnName string
IfExists bool
// contains filtered or unexported fields
}
AlterTableColumnTypeUsing handles `ALTER TABLE ... ALTER COLUMN ... TYPE ... USING <expr>` statements. Unlike a plain column type change (which converts the existing values directly to the new type), the USING form computes each row's new value by evaluating the given expression against the old row.
func NewAlterTableColumnTypeUsing ¶ added in v1.3.1
func NewAlterTableColumnTypeUsing(schemaName, tableName, columnName string, newType *pgtypes.DoltgresType, ifExists bool) *AlterTableColumnTypeUsing
NewAlterTableColumnTypeUsing returns a new *AlterTableColumnTypeUsing. The USING expression is provided through WithResolvedChildren as the single injected child.
func (*AlterTableColumnTypeUsing) Children ¶ added in v1.3.1
func (a *AlterTableColumnTypeUsing) Children() []sql.Node
Children implements sql.ExecSourceRel.
func (*AlterTableColumnTypeUsing) DatabaseProvider ¶ added in v1.3.1
func (a *AlterTableColumnTypeUsing) DatabaseProvider() sql.DatabaseProvider
DatabaseProvider implements sql.MultiDatabaser.
func (*AlterTableColumnTypeUsing) Expressions ¶ added in v1.3.1
func (a *AlterTableColumnTypeUsing) Expressions() []sql.Expression
Expressions implements sql.Expressioner.
func (*AlterTableColumnTypeUsing) IsReadOnly ¶ added in v1.3.1
func (a *AlterTableColumnTypeUsing) IsReadOnly() bool
IsReadOnly implements sql.ExecSourceRel.
func (*AlterTableColumnTypeUsing) Resolved ¶ added in v1.3.1
func (a *AlterTableColumnTypeUsing) Resolved() bool
Resolved implements sql.ExecSourceRel. The table field is not part of this check because a missing table with IF EXISTS legitimately leaves it nil.
func (*AlterTableColumnTypeUsing) Schema ¶ added in v1.3.1
func (a *AlterTableColumnTypeUsing) Schema(ctx *sql.Context) sql.Schema
Schema implements sql.ExecSourceRel.
func (*AlterTableColumnTypeUsing) String ¶ added in v1.3.1
func (a *AlterTableColumnTypeUsing) String() string
String implements sql.ExecSourceRel.
func (*AlterTableColumnTypeUsing) WithChildren ¶ added in v1.3.1
func (a *AlterTableColumnTypeUsing) WithChildren(ctx *sql.Context, children ...sql.Node) (sql.Node, error)
WithChildren implements sql.ExecSourceRel.
func (*AlterTableColumnTypeUsing) WithDatabaseProvider ¶ added in v1.3.1
func (a *AlterTableColumnTypeUsing) WithDatabaseProvider(provider sql.DatabaseProvider) (sql.Node, error)
WithDatabaseProvider implements sql.MultiDatabaser.
func (*AlterTableColumnTypeUsing) WithExpressions ¶ added in v1.3.1
func (a *AlterTableColumnTypeUsing) WithExpressions(ctx *sql.Context, exprs ...sql.Expression) (sql.Node, error)
WithExpressions implements sql.Expressioner.
func (*AlterTableColumnTypeUsing) WithResolvedChildren ¶ added in v1.3.1
func (a *AlterTableColumnTypeUsing) WithResolvedChildren(ctx context.Context, children []any) (any, error)
WithResolvedChildren implements vitess.Injectable.
func (*AlterTableColumnTypeUsing) WithResolvedTable ¶ added in v1.3.1
func (a *AlterTableColumnTypeUsing) WithResolvedTable(table sql.TableNode) *AlterTableColumnTypeUsing
WithResolvedTable returns a copy of this node with the target table assigned.
type AlterTypeAddValue ¶ added in v1.5.0
type AlterTypeAddValue struct {
SchemaName, Name, Value string
IfNotExists bool
Placement *tree.AlterTypeAddValuePlacement
}
AlterTypeAddValue adds a label without changing existing enum identities.
func (*AlterTypeAddValue) Children ¶ added in v1.5.0
func (a *AlterTypeAddValue) Children() []sql.Node
func (*AlterTypeAddValue) IsReadOnly ¶ added in v1.5.0
func (a *AlterTypeAddValue) IsReadOnly() bool
func (*AlterTypeAddValue) Resolved ¶ added in v1.5.0
func (a *AlterTypeAddValue) Resolved() bool
func (*AlterTypeAddValue) Schema ¶ added in v1.5.0
func (a *AlterTypeAddValue) Schema(ctx *sql.Context) sql.Schema
func (*AlterTypeAddValue) String ¶ added in v1.5.0
func (a *AlterTypeAddValue) String() string
func (*AlterTypeAddValue) WithChildren ¶ added in v1.5.0
func (*AlterTypeAddValue) WithResolvedChildren ¶ added in v1.5.0
type Call ¶ added in v0.52.3
type Call struct {
SchemaName string
ProcedureName string
Exprs []sql.Expression
Runner pgexprs.StatementRunner
CachedSchema sql.Schema
CompiledFunc *framework.CompiledFunction
// contains filtered or unexported fields
}
Call is used to call stored procedures.
func (*Call) Expressions ¶ added in v0.52.3
func (c *Call) Expressions() []sql.Expression
Expressions implements the interface sql.Expressioner.
func (*Call) IsReadOnly ¶ added in v0.52.3
IsReadOnly implements the interface sql.ExecSourceRel.
func (*Call) WithChildren ¶ added in v0.52.3
WithChildren implements the interface sql.ExecSourceRel.
func (*Call) WithExpressions ¶ added in v0.52.3
WithExpressions implements the interface sql.Expressioner.
type CloseCursor ¶ added in v1.5.0
type CloseCursor struct {
Name string
}
CloseCursor closes a cursor created by DECLARE. An empty name closes every cursor.
func (*CloseCursor) Children ¶ added in v1.5.0
func (c *CloseCursor) Children() []sql.Node
Children implements the interface sql.ExecSourceRel.
func (*CloseCursor) IsReadOnly ¶ added in v1.5.0
func (c *CloseCursor) IsReadOnly() bool
IsReadOnly implements the interface sql.ExecSourceRel.
func (*CloseCursor) Resolved ¶ added in v1.5.0
func (c *CloseCursor) Resolved() bool
Resolved implements the interface sql.ExecSourceRel.
func (*CloseCursor) Schema ¶ added in v1.5.0
func (c *CloseCursor) Schema(ctx *sql.Context) sql.Schema
Schema implements the interface sql.ExecSourceRel.
func (*CloseCursor) String ¶ added in v1.5.0
func (c *CloseCursor) String() string
String implements the interface sql.ExecSourceRel.
func (*CloseCursor) WithChildren ¶ added in v1.5.0
WithChildren implements the interface sql.ExecSourceRel.
func (*CloseCursor) WithResolvedChildren ¶ added in v1.5.0
WithResolvedChildren implements the interface vitess.Injectable.
type CompositeAsType ¶ added in v0.16.0
type CompositeAsType struct {
AttrName string
Typ *types.DoltgresType
Collation string
}
CompositeAsType represents an attribute name and data type for a composite type.
type ContextRootFinalizer ¶
type ContextRootFinalizer struct {
// contains filtered or unexported fields
}
ContextRootFinalizer is a node that finalizes any changes persisted within the context.
func NewContextRootFinalizer ¶
func NewContextRootFinalizer(child sql.Node) *ContextRootFinalizer
NewContextRootFinalizer returns a new *ContextRootFinalizer.
func (*ContextRootFinalizer) BuildRowIter ¶ added in v0.54.6
func (rf *ContextRootFinalizer) BuildRowIter(ctx *sql.Context, b sql.NodeExecBuilder, r sql.Row) (sql.RowIter, error)
BuildRowIter implements the interface sql.ExecBuilderNode.
func (*ContextRootFinalizer) Child ¶
func (rf *ContextRootFinalizer) Child() sql.Node
Child returns the single child of this node
func (*ContextRootFinalizer) Children ¶
func (rf *ContextRootFinalizer) Children() []sql.Node
Children implements the interface sql.ExecBuilderNode.
func (*ContextRootFinalizer) DebugString ¶
func (rf *ContextRootFinalizer) DebugString(ctx *sql.Context) string
DebugString implements the interface sql.DebugStringer.
func (*ContextRootFinalizer) IsReadOnly ¶
func (rf *ContextRootFinalizer) IsReadOnly() bool
IsReadOnly implements the interface sql.ExecBuilderNode.
func (*ContextRootFinalizer) Resolved ¶
func (rf *ContextRootFinalizer) Resolved() bool
Resolved implements the interface sql.ExecBuilderNode.
func (*ContextRootFinalizer) Schema ¶
func (rf *ContextRootFinalizer) Schema(ctx *sql.Context) sql.Schema
Schema implements the interface sql.ExecBuilderNode.
func (*ContextRootFinalizer) String ¶
func (rf *ContextRootFinalizer) String() string
String implements the interface sql.ExecBuilderNode.
func (*ContextRootFinalizer) WithChildren ¶
func (rf *ContextRootFinalizer) WithChildren(ctx *sql.Context, children ...sql.Node) (sql.Node, error)
WithChildren implements the interface sql.ExecBuilderNode.
type CopyFrom ¶ added in v0.12.0
type CopyFrom struct {
DatabaseName string
TableName doltdb.TableName
File string
Stdin bool
Columns tree.NameList
CopyOptions tree.CopyOptions
InsertStub *vitess.Insert
DataLoader dataloader.DataLoader
}
CopyFrom handles the COPY ... FROM ... statement.
func NewCopyFrom ¶ added in v0.12.0
func NewCopyFrom( databaseName string, tableName doltdb.TableName, options tree.CopyOptions, fileName string, stdin bool, columns tree.NameList, insertStub *vitess.Insert, ) *CopyFrom
NewCopyFrom returns a new *CopyFrom.
func (*CopyFrom) IsReadOnly ¶ added in v0.12.0
IsReadOnly implements the interface sql.ExecSourceRel.
func (*CopyFrom) WithChildren ¶ added in v0.12.0
WithChildren implements the interface sql.ExecSourceRel.
type CopyTo ¶ added in v1.3.0
type CopyTo struct {
DatabaseName string
TableName doltdb.TableName
Columns tree.NameList
CopyOptions tree.CopyOptions
SelectStub vitess.SelectStatement
}
CopyTo handles the COPY ... TO STDOUT statement. Copying to a server-side file is not supported, as a security measure.
func NewCopyTo ¶ added in v1.3.0
func NewCopyTo( databaseName string, tableName doltdb.TableName, options tree.CopyOptions, columns tree.NameList, selectStub vitess.SelectStatement, ) *CopyTo
NewCopyTo returns a new *CopyTo.
func (*CopyTo) IsReadOnly ¶ added in v1.3.0
IsReadOnly implements the interface sql.ExecSourceRel.
func (*CopyTo) WithChildren ¶ added in v1.3.0
WithChildren implements the interface sql.ExecSourceRel.
type CreateAggregate ¶ added in v1.2.0
type CreateAggregate struct {
SchemaName string
Name string
Replace bool
ArgTypes []*pgtypes.DoltgresType
SType *pgtypes.DoltgresType
SFuncSchema string
SFuncName string
FinalFuncSchema string
FinalFuncName string
CombineFuncSchema string
CombineFuncName string
InitCond string
HasInitCond bool
}
CreateAggregate implements CREATE AGGREGATE.
func NewCreateAggregate ¶ added in v1.2.0
func NewCreateAggregate( schemaName, name string, replace bool, argTypes []*pgtypes.DoltgresType, sType *pgtypes.DoltgresType, sFuncSchema, sFuncName string, finalFuncSchema, finalFuncName string, combineFuncSchema, combineFuncName string, initCond string, hasInitCond bool) *CreateAggregate
NewCreateAggregate returns a new *CreateAggregate.
func (*CreateAggregate) Children ¶ added in v1.2.0
func (c *CreateAggregate) Children() []sql.Node
Children implements the interface sql.ExecSourceRel.
func (*CreateAggregate) IsReadOnly ¶ added in v1.2.0
func (c *CreateAggregate) IsReadOnly() bool
IsReadOnly implements the interface sql.ExecSourceRel.
func (*CreateAggregate) Resolved ¶ added in v1.2.0
func (c *CreateAggregate) Resolved() bool
Resolved implements the interface sql.ExecSourceRel.
func (*CreateAggregate) RowIter ¶ added in v1.2.0
RowIter implements the interface sql.ExecSourceRel.
func (*CreateAggregate) Schema ¶ added in v1.2.0
func (c *CreateAggregate) Schema(ctx *sql.Context) sql.Schema
Schema implements the interface sql.ExecSourceRel.
func (*CreateAggregate) String ¶ added in v1.2.0
func (c *CreateAggregate) String() string
String implements the interface sql.ExecSourceRel.
func (*CreateAggregate) WithChildren ¶ added in v1.2.0
WithChildren implements the interface sql.ExecSourceRel.
func (*CreateAggregate) WithResolvedChildren ¶ added in v1.2.0
WithResolvedChildren implements the interface vitess.Injectable.
type CreateCast ¶ added in v0.56.5
type CreateCast struct {
Source *pgtypes.DoltgresType
Target *pgtypes.DoltgresType
Type casts.CastType
CreateType tree.CreateCastType
FuncSchema string
FuncName string
FuncParams []RoutineParam
}
CreateCast implements CREATE CAST.
func NewCreateCast ¶ added in v0.56.5
func NewCreateCast( source, target *pgtypes.DoltgresType, typ casts.CastType, createType tree.CreateCastType, funcSch, funcName string, params []RoutineParam) *CreateCast
NewCreateCast returns a new *CreateCast.
func (*CreateCast) Children ¶ added in v0.56.5
func (c *CreateCast) Children() []sql.Node
Children implements the interface sql.ExecSourceRel.
func (*CreateCast) IsReadOnly ¶ added in v0.56.5
func (c *CreateCast) IsReadOnly() bool
IsReadOnly implements the interface sql.ExecSourceRel.
func (*CreateCast) Resolved ¶ added in v0.56.5
func (c *CreateCast) Resolved() bool
Resolved implements the interface sql.ExecSourceRel.
func (*CreateCast) Schema ¶ added in v0.56.5
func (c *CreateCast) Schema(ctx *sql.Context) sql.Schema
Schema implements the interface sql.ExecSourceRel.
func (*CreateCast) String ¶ added in v0.56.5
func (c *CreateCast) String() string
String implements the interface sql.ExecSourceRel.
func (*CreateCast) WithChildren ¶ added in v0.56.5
WithChildren implements the interface sql.ExecSourceRel.
func (*CreateCast) WithResolvedChildren ¶ added in v0.56.5
WithResolvedChildren implements the interface vitess.Injectable.
type CreateDomain ¶ added in v0.14.0
type CreateDomain struct {
SchemaName string
Name string
AsType *pgtypes.DoltgresType
Collation string
HasDefault bool
DefaultExpr sql.Expression
IsNotNull bool
CheckConstraintNames []string
CheckConstraints sql.CheckConstraints
// contains filtered or unexported fields
}
CreateDomain handles the CREATE DOMAIN statement.
func (*CreateDomain) Children ¶ added in v0.14.0
func (c *CreateDomain) Children() []sql.Node
Children implements the interface sql.ExecSourceRel.
func (*CreateDomain) IsReadOnly ¶ added in v0.14.0
func (c *CreateDomain) IsReadOnly() bool
IsReadOnly implements the interface sql.ExecSourceRel.
func (*CreateDomain) Resolved ¶ added in v0.14.0
func (c *CreateDomain) Resolved() bool
Resolved implements the interface sql.ExecSourceRel.
func (*CreateDomain) Schema ¶ added in v0.14.0
func (c *CreateDomain) Schema(ctx *sql.Context) sql.Schema
Schema implements the interface sql.ExecSourceRel.
func (*CreateDomain) String ¶ added in v0.14.0
func (c *CreateDomain) String() string
String implements the interface sql.ExecSourceRel.
func (*CreateDomain) WithChildren ¶ added in v0.14.0
WithChildren implements the interface sql.ExecSourceRel.
func (*CreateDomain) WithOverrides ¶ added in v0.54.6
func (c *CreateDomain) WithOverrides(overrides sql.EngineOverrides) sql.Node
WithOverrides implements the interface sql.NodeOverriding.
func (*CreateDomain) WithResolvedChildren ¶ added in v0.14.0
WithResolvedChildren implements the interface vitess.Injectable.
type CreateExtension ¶ added in v0.51.0
type CreateExtension struct {
Name string
IfNotExists bool
SchemaName string
Version string
Cascade bool
}
CreateExtension implements CREATE EXTENSION.
func NewCreateExtension ¶ added in v0.51.0
func NewCreateExtension(name string, ifNotExists bool, schemaName string, version string, cascade bool) *CreateExtension
NewCreateExtension returns a new *CreateExtension.
func (*CreateExtension) Children ¶ added in v0.51.0
func (c *CreateExtension) Children() []sql.Node
Children implements the interface sql.ExecSourceRel.
func (*CreateExtension) IsReadOnly ¶ added in v0.51.0
func (c *CreateExtension) IsReadOnly() bool
IsReadOnly implements the interface sql.ExecSourceRel.
func (*CreateExtension) Resolved ¶ added in v0.51.0
func (c *CreateExtension) Resolved() bool
Resolved implements the interface sql.ExecSourceRel.
func (*CreateExtension) RowIter ¶ added in v0.51.0
RowIter implements the interface sql.ExecSourceRel.
func (*CreateExtension) Schema ¶ added in v0.51.0
func (c *CreateExtension) Schema(ctx *sql.Context) sql.Schema
Schema implements the interface sql.ExecSourceRel.
func (*CreateExtension) String ¶ added in v0.51.0
func (c *CreateExtension) String() string
String implements the interface sql.ExecSourceRel.
func (*CreateExtension) WithChildren ¶ added in v0.51.0
WithChildren implements the interface sql.ExecSourceRel.
func (*CreateExtension) WithResolvedChildren ¶ added in v0.51.0
WithResolvedChildren implements the interface vitess.Injectable.
type CreateFunction ¶ added in v0.17.0
type CreateFunction struct {
FunctionName string
SchemaName string
Replace bool
ReturnType *pgtypes.DoltgresType
Parameters []RoutineParam
Strict bool
Statements []plpgsql.InterpreterOperation
ExtensionName string
ExtensionSymbol string
Definition string
SqlDef string
SqlDefParsedStmts []vitess.Statement
SetOf bool
}
CreateFunction implements CREATE FUNCTION.
func NewCreateFunction ¶ added in v0.17.0
func NewCreateFunction( functionName string, schemaName string, replace bool, retType *pgtypes.DoltgresType, params []RoutineParam, strict bool, definition string, extensionName string, extensionSymbol string, statements []plpgsql.InterpreterOperation, sqlDef string, sqlDefParsedStmts []vitess.Statement, setOf bool) *CreateFunction
NewCreateFunction returns a new *CreateFunction.
func (*CreateFunction) Children ¶ added in v0.17.0
func (c *CreateFunction) Children() []sql.Node
Children implements the interface sql.ExecSourceRel.
func (*CreateFunction) IsReadOnly ¶ added in v0.17.0
func (c *CreateFunction) IsReadOnly() bool
IsReadOnly implements the interface sql.ExecSourceRel.
func (*CreateFunction) Resolved ¶ added in v0.17.0
func (c *CreateFunction) Resolved() bool
Resolved implements the interface sql.ExecSourceRel.
func (*CreateFunction) RowIter ¶ added in v0.17.0
RowIter implements the interface sql.ExecSourceRel.
func (*CreateFunction) Schema ¶ added in v0.17.0
func (c *CreateFunction) Schema(ctx *sql.Context) sql.Schema
Schema implements the interface sql.ExecSourceRel.
func (*CreateFunction) String ¶ added in v0.17.0
func (c *CreateFunction) String() string
String implements the interface sql.ExecSourceRel.
func (*CreateFunction) WithChildren ¶ added in v0.17.0
WithChildren implements the interface sql.ExecSourceRel.
func (*CreateFunction) WithResolvedChildren ¶ added in v0.17.0
WithResolvedChildren implements the interface vitess.Injectable.
type CreateOperator ¶ added in v1.2.0
type CreateOperator struct {
Symbol string
Left *pgtypes.DoltgresType // This is nil for prefix operators
Right *pgtypes.DoltgresType
FuncSchema string
FuncName string
Commutator string
Negator string
Hashes bool
Merges bool
}
CreateOperator implements CREATE OPERATOR.
func NewCreateOperator ¶ added in v1.2.0
func NewCreateOperator( symbol string, left, right *pgtypes.DoltgresType, funcSchema, funcName string, commutator, negator string, hashes, merges bool) *CreateOperator
NewCreateOperator returns a new *CreateOperator.
func (*CreateOperator) Children ¶ added in v1.2.0
func (c *CreateOperator) Children() []sql.Node
Children implements the interface sql.ExecSourceRel.
func (*CreateOperator) IsReadOnly ¶ added in v1.2.0
func (c *CreateOperator) IsReadOnly() bool
IsReadOnly implements the interface sql.ExecSourceRel.
func (*CreateOperator) Resolved ¶ added in v1.2.0
func (c *CreateOperator) Resolved() bool
Resolved implements the interface sql.ExecSourceRel.
func (*CreateOperator) RowIter ¶ added in v1.2.0
RowIter implements the interface sql.ExecSourceRel.
func (*CreateOperator) Schema ¶ added in v1.2.0
func (c *CreateOperator) Schema(ctx *sql.Context) sql.Schema
Schema implements the interface sql.ExecSourceRel.
func (*CreateOperator) String ¶ added in v1.2.0
func (c *CreateOperator) String() string
String implements the interface sql.ExecSourceRel.
func (*CreateOperator) WithChildren ¶ added in v1.2.0
WithChildren implements the interface sql.ExecSourceRel.
func (*CreateOperator) WithResolvedChildren ¶ added in v1.2.0
WithResolvedChildren implements the interface vitess.Injectable.
type CreateProcedure ¶ added in v0.52.3
type CreateProcedure struct {
ProcedureName string
SchemaName string
Replace bool
Parameters []RoutineParam
Statements []plpgsql.InterpreterOperation
ExtensionName string
ExtensionSymbol string
Definition string
SqlDef string
SqlDefParsedStmts []vitess.Statement
}
CreateProcedure implements CREATE PROCEDURE.
func NewCreateProcedure ¶ added in v0.52.3
func NewCreateProcedure( procedureName string, schemaName string, replace bool, params []RoutineParam, definition string, extensionName string, extensionSymbol string, statements []plpgsql.InterpreterOperation, sqlDef string, sqlDefParsedStmts []vitess.Statement) *CreateProcedure
NewCreateProcedure returns a new *CreateProcedure.
func (*CreateProcedure) Children ¶ added in v0.52.3
func (c *CreateProcedure) Children() []sql.Node
Children implements the interface sql.ExecSourceRel.
func (*CreateProcedure) IsReadOnly ¶ added in v0.52.3
func (c *CreateProcedure) IsReadOnly() bool
IsReadOnly implements the interface sql.ExecSourceRel.
func (*CreateProcedure) Resolved ¶ added in v0.52.3
func (c *CreateProcedure) Resolved() bool
Resolved implements the interface sql.ExecSourceRel.
func (*CreateProcedure) RowIter ¶ added in v0.52.3
RowIter implements the interface sql.ExecSourceRel.
func (*CreateProcedure) Schema ¶ added in v0.52.3
func (c *CreateProcedure) Schema(ctx *sql.Context) sql.Schema
Schema implements the interface sql.ExecSourceRel.
func (*CreateProcedure) String ¶ added in v0.52.3
func (c *CreateProcedure) String() string
String implements the interface sql.ExecSourceRel.
func (*CreateProcedure) WithChildren ¶ added in v0.52.3
WithChildren implements the interface sql.ExecSourceRel.
func (*CreateProcedure) WithResolvedChildren ¶ added in v0.52.3
WithResolvedChildren implements the interface vitess.Injectable.
type CreateRole ¶ added in v0.13.0
type CreateRole struct {
Name string
IfNotExists bool
Password string // PASSWORD 'password'
IsPasswordNull bool // PASSWORD NULL
IsSuperUser bool // SUPERUSER | NOSUPERUSER
CanCreateDB bool // CREATEDB | NOCREATEDB
CanCreateRoles bool // CREATEROLE | NOCREATEROLE
InheritPrivileges bool // INHERIT | NOINHERIT
CanLogin bool // LOGIN | NOLOGIN
IsReplicationRole bool // REPLICATION | NOREPLICATION
CanBypassRowLevelSecurity bool // BYPASSRLS | NOBYPASSRLS
ConnectionLimit int32 // CONNECTION LIMIT connlimit
ValidUntil string // VALID UNTIL 'timestamp'
IsValidUntilSet bool
AddToRoles []string // IN ROLE role_name [, ...]
AddAsMembers []string // ROLE role_name [, ...]
AddAsAdminMembers []string // ADMIN role_name [, ...]
}
CreateRole handles the CREATE ROLE and CREATE USER statements (CREATE USER is an alias).
func (*CreateRole) Children ¶ added in v0.13.0
func (c *CreateRole) Children() []sql.Node
Children implements the interface sql.ExecSourceRel.
func (*CreateRole) IsReadOnly ¶ added in v0.13.0
func (c *CreateRole) IsReadOnly() bool
IsReadOnly implements the interface sql.ExecSourceRel.
func (*CreateRole) Resolved ¶ added in v0.13.0
func (c *CreateRole) Resolved() bool
Resolved implements the interface sql.ExecSourceRel.
func (*CreateRole) Schema ¶ added in v0.13.0
func (c *CreateRole) Schema(ctx *sql.Context) sql.Schema
Schema implements the interface sql.ExecSourceRel.
func (*CreateRole) String ¶ added in v0.13.0
func (c *CreateRole) String() string
String implements the interface sql.ExecSourceRel.
func (*CreateRole) WithChildren ¶ added in v0.13.0
WithChildren implements the interface sql.ExecSourceRel.
func (*CreateRole) WithResolvedChildren ¶ added in v0.13.0
WithResolvedChildren implements the interface vitess.Injectable.
type CreateSequence ¶
type CreateSequence struct {
// contains filtered or unexported fields
}
CreateSequence handles the CREATE SEQUENCE statement, along with SERIAL type definitions.
func NewCreateSequence ¶
func NewCreateSequence(ifNotExists bool, schema string, fromAlter bool, sequence *sequences.Sequence) *CreateSequence
NewCreateSequence returns a new *CreateSequence.
func (*CreateSequence) Children ¶
func (c *CreateSequence) Children() []sql.Node
Children implements the interface sql.ExecSourceRel.
func (*CreateSequence) IsReadOnly ¶
func (c *CreateSequence) IsReadOnly() bool
IsReadOnly implements the interface sql.ExecSourceRel.
func (*CreateSequence) Resolved ¶
func (c *CreateSequence) Resolved() bool
Resolved implements the interface sql.ExecSourceRel.
func (*CreateSequence) Schema ¶
func (c *CreateSequence) Schema(ctx *sql.Context) sql.Schema
Schema implements the interface sql.ExecSourceRel.
func (*CreateSequence) String ¶
func (c *CreateSequence) String() string
String implements the interface sql.ExecSourceRel.
func (*CreateSequence) WithChildren ¶
WithChildren implements the interface sql.ExecSourceRel.
func (*CreateSequence) WithResolvedChildren ¶
WithResolvedChildren implements the interface vitess.Injectable.
type CreateTable ¶
type CreateTable struct {
// contains filtered or unexported fields
}
CreateTable is a node that implements functionality specifically relevant to Doltgres' table creation needs.
func NewCreateTable ¶
func NewCreateTable(createTable *plan.CreateTable, sequences []*CreateSequence) *CreateTable
NewCreateTable returns a new *CreateTable.
func (*CreateTable) BuildRowIter ¶ added in v0.54.6
func (c *CreateTable) BuildRowIter(ctx *sql.Context, b sql.NodeExecBuilder, r sql.Row) (sql.RowIter, error)
BuildRowIter implements the interface sql.ExecBuilderNode.
func (*CreateTable) Children ¶
func (c *CreateTable) Children() []sql.Node
Children implements the interface sql.ExecBuilderNode.
func (*CreateTable) DebugString ¶ added in v0.17.0
func (c *CreateTable) DebugString(ctx *sql.Context) string
DebugString implements the sql.DebugStringer interface
func (*CreateTable) Expressions ¶ added in v0.18.0
func (c *CreateTable) Expressions() []sql.Expression
Expressions implements the sql.Expressioner interface.
func (*CreateTable) IsReadOnly ¶
func (c *CreateTable) IsReadOnly() bool
IsReadOnly implements the interface sql.ExecBuilderNode.
func (*CreateTable) Name ¶ added in v1.3.2
func (c *CreateTable) Name() string
Name returns the name of the table being created.
func (*CreateTable) Resolved ¶
func (c *CreateTable) Resolved() bool
Resolved implements the interface sql.ExecBuilderNode.
func (*CreateTable) Schema ¶
func (c *CreateTable) Schema(ctx *sql.Context) sql.Schema
Schema implements the interface sql.ExecBuilderNode.
func (*CreateTable) String ¶
func (c *CreateTable) String() string
String implements the interface sql.ExecBuilderNode.
func (*CreateTable) TargetSchema ¶ added in v0.17.0
func (c *CreateTable) TargetSchema() sql.Schema
TargetSchema implements the interface sql.SchemaTarget.
func (*CreateTable) WithChildren ¶
WithChildren implements the interface sql.ExecBuilderNode.
func (*CreateTable) WithExpressions ¶ added in v0.18.0
func (c *CreateTable) WithExpressions(ctx *sql.Context, expression ...sql.Expression) (sql.Node, error)
WithExpressions implements the interface sql.Expressioner.
func (CreateTable) WithTargetSchema ¶ added in v0.17.0
WithTargetSchema implements the interface sql.SchemaTarget.
type CreateTrigger ¶ added in v0.50.1
type CreateTrigger struct {
Name id.Trigger
Function id.Function
Replace bool
Timing triggers.TriggerTiming
Events []triggers.TriggerEvent
ForEachRow bool
When []plpgsql.InterpreterOperation
Arguments []string
Definition string
}
CreateTrigger implements CREATE TRIGGER.
func NewCreateTrigger ¶ added in v0.50.1
func NewCreateTrigger( triggerName id.Trigger, functionName id.Function, replace bool, timing triggers.TriggerTiming, events []triggers.TriggerEvent, forEachRow bool, when []plpgsql.InterpreterOperation, arguments []string, definition string) *CreateTrigger
NewCreateTrigger returns a new *CreateTrigger.
func (*CreateTrigger) Children ¶ added in v0.50.1
func (c *CreateTrigger) Children() []sql.Node
Children implements the interface sql.ExecSourceRel.
func (*CreateTrigger) IsReadOnly ¶ added in v0.50.1
func (c *CreateTrigger) IsReadOnly() bool
IsReadOnly implements the interface sql.ExecSourceRel.
func (*CreateTrigger) Resolved ¶ added in v0.50.1
func (c *CreateTrigger) Resolved() bool
Resolved implements the interface sql.ExecSourceRel.
func (*CreateTrigger) RowIter ¶ added in v0.50.1
RowIter implements the interface sql.ExecSourceRel.
func (*CreateTrigger) Schema ¶ added in v0.50.1
func (c *CreateTrigger) Schema(ctx *sql.Context) sql.Schema
Schema implements the interface sql.ExecSourceRel.
func (*CreateTrigger) String ¶ added in v0.50.1
func (c *CreateTrigger) String() string
String implements the interface sql.ExecSourceRel.
func (*CreateTrigger) WithChildren ¶ added in v0.50.1
WithChildren implements the interface sql.ExecSourceRel.
func (*CreateTrigger) WithResolvedChildren ¶ added in v0.50.1
WithResolvedChildren implements the interface vitess.Injectable.
type CreateType ¶ added in v0.16.0
type CreateType struct {
SchemaName string
Name string
// composite type
AsTypes []CompositeAsType
// enum type
Labels []string
// contains filtered or unexported fields
}
CreateType handles the CREATE TYPE statement.
func NewCreateCompositeType ¶ added in v0.16.0
func NewCreateCompositeType(schema, name string, typs []CompositeAsType) *CreateType
NewCreateCompositeType creates CreateType node for creating COMPOSITE type.
func NewCreateEnumType ¶ added in v0.16.0
func NewCreateEnumType(schema, name string, labels []string) *CreateType
NewCreateEnumType creates CreateType node for creating ENUM type.
func NewCreateShellType ¶ added in v0.16.0
func NewCreateShellType(schema, name string) *CreateType
NewCreateShellType creates CreateType node for creating a placeholder for a type to be defined later.
func (*CreateType) Children ¶ added in v0.16.0
func (c *CreateType) Children() []sql.Node
Children implements the interface sql.ExecSourceRel.
func (*CreateType) IsReadOnly ¶ added in v0.16.0
func (c *CreateType) IsReadOnly() bool
IsReadOnly implements the interface sql.ExecSourceRel.
func (*CreateType) Resolved ¶ added in v0.16.0
func (c *CreateType) Resolved() bool
Resolved implements the interface sql.ExecSourceRel.
func (*CreateType) Schema ¶ added in v0.16.0
func (c *CreateType) Schema(ctx *sql.Context) sql.Schema
Schema implements the interface sql.ExecSourceRel.
func (*CreateType) String ¶ added in v0.16.0
func (c *CreateType) String() string
String implements the interface sql.ExecSourceRel.
func (*CreateType) WithChildren ¶ added in v0.16.0
WithChildren implements the interface sql.ExecSourceRel.
func (*CreateType) WithResolvedChildren ¶ added in v0.16.0
WithResolvedChildren implements the interface vitess.Injectable.
type DeclareCursor ¶ added in v1.5.0
type DeclareCursor struct {
Name string
Select vitess.SelectStatement
IsHoldable bool
IsScrollable bool
// Bindings holds the values of the query's parameters, which the extended query protocol's Bind message provides.
Bindings map[string]vitess.Expr
}
DeclareCursor creates a cursor that reads the rows of its query as they are fetched. The connection handler plans the query and stores the cursor, so the engine never executes this node.
func (*DeclareCursor) Children ¶ added in v1.5.0
func (d *DeclareCursor) Children() []sql.Node
Children implements the interface sql.ExecSourceRel.
func (*DeclareCursor) IsReadOnly ¶ added in v1.5.0
func (d *DeclareCursor) IsReadOnly() bool
IsReadOnly implements the interface sql.ExecSourceRel.
func (*DeclareCursor) Resolved ¶ added in v1.5.0
func (d *DeclareCursor) Resolved() bool
Resolved implements the interface sql.ExecSourceRel.
func (*DeclareCursor) Schema ¶ added in v1.5.0
func (d *DeclareCursor) Schema(ctx *sql.Context) sql.Schema
Schema implements the interface sql.ExecSourceRel.
func (*DeclareCursor) String ¶ added in v1.5.0
func (d *DeclareCursor) String() string
String implements the interface sql.ExecSourceRel.
func (*DeclareCursor) WithChildren ¶ added in v1.5.0
WithChildren implements the interface sql.ExecSourceRel.
func (*DeclareCursor) WithResolvedChildren ¶ added in v1.5.0
WithResolvedChildren implements the interface vitess.Injectable.
type DiscardStatement ¶ added in v0.11.0
type DiscardStatement struct{}
DiscardStatement is just a marker type, since all functionality is handled by the connection handler, rather than the engine. It has to conform to the sql.ExecSourceRel interface to be used in the handler, but this functionality is all unused.
func (DiscardStatement) Children ¶ added in v0.11.0
func (d DiscardStatement) Children() []sql.Node
Children implements the interface sql.ExecSourceRel.
func (DiscardStatement) IsReadOnly ¶ added in v0.11.0
func (d DiscardStatement) IsReadOnly() bool
IsReadOnly implements the interface sql.ExecSourceRel.
func (DiscardStatement) Resolved ¶ added in v0.11.0
func (d DiscardStatement) Resolved() bool
Resolved implements the interface sql.ExecSourceRel.
func (DiscardStatement) RowIter ¶ added in v0.11.0
RowIter implements the interface sql.ExecSourceRel.
func (DiscardStatement) Schema ¶ added in v0.11.0
func (d DiscardStatement) Schema(ctx *sql.Context) sql.Schema
Schema implements the interface sql.ExecSourceRel.
func (DiscardStatement) String ¶ added in v0.11.0
func (d DiscardStatement) String() string
String implements the interface sql.ExecSourceRel.
func (DiscardStatement) WithChildren ¶ added in v0.11.0
WithChildren implements the interface sql.ExecSourceRel.
func (DiscardStatement) WithResolvedChildren ¶ added in v0.11.0
WithResolvedChildren implements the interface vitess.Injectable.
type Do ¶ added in v1.3.2
type Do struct {
Statements []plpgsql.InterpreterOperation
Runner pgexprs.StatementRunner
}
Do executes an anonymous PL/pgSQL code block.
func NewDo ¶ added in v1.3.2
func NewDo(statements []plpgsql.InterpreterOperation) *Do
NewDo returns a new anonymous code block.
func (*Do) Expressions ¶ added in v1.3.2
func (d *Do) Expressions() []sql.Expression
Expressions implements sql.Expressioner.
func (*Do) IsReadOnly ¶ added in v1.3.2
IsReadOnly implements sql.ExecSourceRel.
func (*Do) WithChildren ¶ added in v1.3.2
WithChildren implements sql.ExecSourceRel.
func (*Do) WithExpressions ¶ added in v1.3.2
WithExpressions implements sql.Expressioner.
type DomainColumn ¶ added in v0.14.0
type DomainColumn struct {
Typ *pgtypes.DoltgresType
}
DomainColumn represents the column name `VALUE. It is a placeholder column reference later used for column defined as the domain type.
func (*DomainColumn) Children ¶ added in v0.14.0
func (d *DomainColumn) Children() []sql.Expression
Children implements the interface sql.Expression.
func (*DomainColumn) IsNullable ¶ added in v0.14.0
func (d *DomainColumn) IsNullable(ctx *sql.Context) bool
IsNullable implements the interface sql.Expression.
func (*DomainColumn) Resolved ¶ added in v0.14.0
func (d *DomainColumn) Resolved() bool
Resolved implements the interface sql.Expression.
func (*DomainColumn) String ¶ added in v0.14.0
func (d *DomainColumn) String() string
String implements the interface sql.Expression.
func (*DomainColumn) Type ¶ added in v0.14.0
func (d *DomainColumn) Type(ctx *sql.Context) sql.Type
Type implements the interface sql.Expression.
func (*DomainColumn) WithChildren ¶ added in v0.14.0
func (d *DomainColumn) WithChildren(ctx *sql.Context, children ...sql.Expression) (sql.Expression, error)
WithChildren implements the interface sql.Expression.
func (*DomainColumn) WithResolvedChildren ¶ added in v0.14.0
WithResolvedChildren implements the interface vitess.Injectable.
type DropAggregate ¶ added in v1.2.0
type DropAggregate struct {
Aggregates []*AggregateToDrop
IfExists bool
}
DropAggregate implements DROP AGGREGATE.
func NewDropAggregate ¶ added in v1.2.0
func NewDropAggregate(ifExists bool, aggregates []*AggregateToDrop) *DropAggregate
NewDropAggregate returns a new *DropAggregate.
func (*DropAggregate) Children ¶ added in v1.2.0
func (d *DropAggregate) Children() []sql.Node
Children implements the interface sql.ExecSourceRel.
func (*DropAggregate) IsReadOnly ¶ added in v1.2.0
func (d *DropAggregate) IsReadOnly() bool
IsReadOnly implements the interface sql.ExecSourceRel.
func (*DropAggregate) Resolved ¶ added in v1.2.0
func (d *DropAggregate) Resolved() bool
Resolved implements the interface sql.ExecSourceRel.
func (*DropAggregate) Schema ¶ added in v1.2.0
func (d *DropAggregate) Schema(ctx *sql.Context) sql.Schema
Schema implements the interface sql.ExecSourceRel.
func (*DropAggregate) String ¶ added in v1.2.0
func (d *DropAggregate) String() string
String implements the interface sql.ExecSourceRel.
func (*DropAggregate) WithChildren ¶ added in v1.2.0
WithChildren implements the interface sql.ExecSourceRel.
func (*DropAggregate) WithResolvedChildren ¶ added in v1.2.0
WithResolvedChildren implements the interface vitess.Injectable.
type DropCast ¶ added in v0.56.5
type DropCast struct {
Source *pgtypes.DoltgresType
Target *pgtypes.DoltgresType
IfExists bool
}
DropCast implements DROP CAST.
func NewDropCast ¶ added in v0.56.5
func NewDropCast(source *pgtypes.DoltgresType, target *pgtypes.DoltgresType, ifExists bool) *DropCast
NewDropCast returns a new *DropCast.
func (*DropCast) IsReadOnly ¶ added in v0.56.5
IsReadOnly implements the interface sql.ExecSourceRel.
func (*DropCast) WithChildren ¶ added in v0.56.5
WithChildren implements the interface sql.ExecSourceRel.
type DropDatabase ¶ added in v1.5.0
type DropDatabase struct {
Database string
IfExists bool
// contains filtered or unexported fields
}
DropDatabase handles the DROP DATABASE statement.
func NewDropDatabase ¶ added in v1.5.0
func NewDropDatabase(database string, ifExists bool) *DropDatabase
NewDropDatabase returns a new *DropDatabase.
func (*DropDatabase) Children ¶ added in v1.5.0
func (c *DropDatabase) Children() []sql.Node
Children implements the interface sql.ExecSourceRel.
func (*DropDatabase) DatabaseProvider ¶ added in v1.5.0
func (c *DropDatabase) DatabaseProvider() sql.DatabaseProvider
DatabaseProvider implements the interface sql.MultiDatabaser.
func (*DropDatabase) IsReadOnly ¶ added in v1.5.0
func (c *DropDatabase) IsReadOnly() bool
IsReadOnly implements the interface sql.ExecSourceRel.
func (*DropDatabase) Resolved ¶ added in v1.5.0
func (c *DropDatabase) Resolved() bool
Resolved implements the interface sql.ExecSourceRel.
func (*DropDatabase) Schema ¶ added in v1.5.0
func (c *DropDatabase) Schema(ctx *sql.Context) sql.Schema
Schema implements the interface sql.ExecSourceRel.
func (*DropDatabase) String ¶ added in v1.5.0
func (c *DropDatabase) String() string
String implements the interface sql.ExecSourceRel.
func (*DropDatabase) WithChildren ¶ added in v1.5.0
WithChildren implements the interface sql.ExecSourceRel.
func (*DropDatabase) WithDatabaseProvider ¶ added in v1.5.0
func (c *DropDatabase) WithDatabaseProvider(provider sql.DatabaseProvider) (sql.Node, error)
WithDatabaseProvider implements the interface sql.MultiDatabaser.
func (*DropDatabase) WithResolvedChildren ¶ added in v1.5.0
WithResolvedChildren implements the interface vitess.Injectable.
type DropDomain ¶ added in v0.14.0
type DropDomain struct {
// contains filtered or unexported fields
}
DropDomain handles the DROP DOMAIN statement.
func NewDropDomain ¶ added in v0.14.0
func NewDropDomain(ifExists bool, db string, schema string, domain string, cascade bool) *DropDomain
NewDropDomain returns a new *DropDomain.
func (*DropDomain) Children ¶ added in v0.14.0
func (c *DropDomain) Children() []sql.Node
Children implements the interface sql.ExecSourceRel.
func (*DropDomain) IsReadOnly ¶ added in v0.14.0
func (c *DropDomain) IsReadOnly() bool
IsReadOnly implements the interface sql.ExecSourceRel.
func (*DropDomain) Resolved ¶ added in v0.14.0
func (c *DropDomain) Resolved() bool
Resolved implements the interface sql.ExecSourceRel.
func (*DropDomain) Schema ¶ added in v0.14.0
func (c *DropDomain) Schema(ctx *sql.Context) sql.Schema
Schema implements the interface sql.ExecSourceRel.
func (*DropDomain) String ¶ added in v0.14.0
func (c *DropDomain) String() string
String implements the interface sql.ExecSourceRel.
func (*DropDomain) WithChildren ¶ added in v0.14.0
WithChildren implements the interface sql.ExecSourceRel.
func (*DropDomain) WithResolvedChildren ¶ added in v0.14.0
WithResolvedChildren implements the interface vitess.Injectable.
type DropExtension ¶ added in v0.51.0
DropExtension implements DROP EXTENSION.
func NewDropExtension ¶ added in v0.51.0
func NewDropExtension(names []string, ifExists bool, cascade bool) *DropExtension
NewDropExtension returns a new *DropExtension.
func (*DropExtension) Children ¶ added in v0.51.0
func (c *DropExtension) Children() []sql.Node
Children implements the interface sql.ExecSourceRel.
func (*DropExtension) IsReadOnly ¶ added in v0.51.0
func (c *DropExtension) IsReadOnly() bool
IsReadOnly implements the interface sql.ExecSourceRel.
func (*DropExtension) Resolved ¶ added in v0.51.0
func (c *DropExtension) Resolved() bool
Resolved implements the interface sql.ExecSourceRel.
func (*DropExtension) RowIter ¶ added in v0.51.0
RowIter implements the interface sql.ExecSourceRel.
func (*DropExtension) Schema ¶ added in v0.51.0
func (c *DropExtension) Schema(ctx *sql.Context) sql.Schema
Schema implements the interface sql.ExecSourceRel.
func (*DropExtension) String ¶ added in v0.51.0
func (c *DropExtension) String() string
String implements the interface sql.ExecSourceRel.
func (*DropExtension) WithChildren ¶ added in v0.51.0
WithChildren implements the interface sql.ExecSourceRel.
func (*DropExtension) WithResolvedChildren ¶ added in v0.51.0
WithResolvedChildren implements the interface vitess.Injectable.
type DropFunction ¶ added in v0.18.0
type DropFunction struct {
RoutinesWithArgs []*RoutineWithParams
IfExists bool
Cascade bool
}
DropFunction implements DROP FUNCTION.
func NewDropFunction ¶ added in v0.18.0
func NewDropFunction(ifExists bool, routinesWithArgs []*RoutineWithParams, cascade bool) *DropFunction
NewDropFunction returns a new *DropFunction.
func (*DropFunction) Children ¶ added in v0.18.0
func (d *DropFunction) Children() []sql.Node
Children implements the interface sql.ExecSourceRel.
func (*DropFunction) IsReadOnly ¶ added in v0.18.0
func (d *DropFunction) IsReadOnly() bool
IsReadOnly implements the interface sql.ExecSourceRel.
func (*DropFunction) Resolved ¶ added in v0.18.0
func (d *DropFunction) Resolved() bool
Resolved implements the interface sql.ExecSourceRel.
func (*DropFunction) Schema ¶ added in v0.18.0
func (d *DropFunction) Schema(ctx *sql.Context) sql.Schema
Schema implements the interface sql.ExecSourceRel.
func (*DropFunction) String ¶ added in v0.18.0
func (d *DropFunction) String() string
String implements the interface sql.ExecSourceRel.
func (*DropFunction) WithChildren ¶ added in v0.18.0
WithChildren implements the interface sql.ExecSourceRel.
func (*DropFunction) WithResolvedChildren ¶ added in v0.18.0
WithResolvedChildren implements the interface vitess.Injectable.
type DropOperator ¶ added in v1.2.0
type DropOperator struct {
Operators []*OperatorToDrop
IfExists bool
}
DropOperator implements DROP OPERATOR.
func NewDropOperator ¶ added in v1.2.0
func NewDropOperator(ifExists bool, operators []*OperatorToDrop) *DropOperator
NewDropOperator returns a new *DropOperator.
func (*DropOperator) Children ¶ added in v1.2.0
func (d *DropOperator) Children() []sql.Node
Children implements the interface sql.ExecSourceRel.
func (*DropOperator) IsReadOnly ¶ added in v1.2.0
func (d *DropOperator) IsReadOnly() bool
IsReadOnly implements the interface sql.ExecSourceRel.
func (*DropOperator) Resolved ¶ added in v1.2.0
func (d *DropOperator) Resolved() bool
Resolved implements the interface sql.ExecSourceRel.
func (*DropOperator) Schema ¶ added in v1.2.0
func (d *DropOperator) Schema(ctx *sql.Context) sql.Schema
Schema implements the interface sql.ExecSourceRel.
func (*DropOperator) String ¶ added in v1.2.0
func (d *DropOperator) String() string
String implements the interface sql.ExecSourceRel.
func (*DropOperator) WithChildren ¶ added in v1.2.0
WithChildren implements the interface sql.ExecSourceRel.
func (*DropOperator) WithResolvedChildren ¶ added in v1.2.0
WithResolvedChildren implements the interface vitess.Injectable.
type DropProcedure ¶ added in v0.54.7
type DropProcedure struct {
RoutinesWithArgs []*RoutineWithParams
IfExists bool
Cascade bool
}
DropProcedure implements DROP PROCEDURE.
func NewDropProcedure ¶ added in v0.54.7
func NewDropProcedure(ifExists bool, routinesWithArgs []*RoutineWithParams, cascade bool) *DropProcedure
NewDropProcedure returns a new *DropProcedure.
func (*DropProcedure) Children ¶ added in v0.54.7
func (d *DropProcedure) Children() []sql.Node
Children implements the interface sql.ExecSourceRel.
func (*DropProcedure) IsReadOnly ¶ added in v0.54.7
func (d *DropProcedure) IsReadOnly() bool
IsReadOnly implements the interface sql.ExecSourceRel.
func (*DropProcedure) Resolved ¶ added in v0.54.7
func (d *DropProcedure) Resolved() bool
Resolved implements the interface sql.ExecSourceRel.
func (*DropProcedure) RowIter ¶ added in v0.54.7
RowIter implements the interface sql.ExecSourceRel.
func (*DropProcedure) Schema ¶ added in v0.54.7
func (d *DropProcedure) Schema(ctx *sql.Context) sql.Schema
Schema implements the interface sql.ExecSourceRel.
func (*DropProcedure) String ¶ added in v0.54.7
func (d *DropProcedure) String() string
String implements the interface sql.ExecSourceRel.
func (*DropProcedure) WithChildren ¶ added in v0.54.7
WithChildren implements the interface sql.ExecSourceRel.
func (*DropProcedure) WithResolvedChildren ¶ added in v0.54.7
WithResolvedChildren implements the interface vitess.Injectable.
type DropRole ¶ added in v0.13.0
DropRole handles the DROP ROLE statement.
func (*DropRole) IsReadOnly ¶ added in v0.13.0
IsReadOnly implements the interface sql.ExecSourceRel.
func (*DropRole) WithChildren ¶ added in v0.13.0
WithChildren implements the interface sql.ExecSourceRel.
type DropSequence ¶
type DropSequence struct {
// contains filtered or unexported fields
}
DropSequence handles the DROP SEQUENCE statement.
func NewDropSequence ¶
func NewDropSequence(ifExists bool, schema string, sequence string, cascade bool) *DropSequence
NewDropSequence returns a new *DropSequence.
func (*DropSequence) Children ¶
func (c *DropSequence) Children() []sql.Node
Children implements the interface sql.ExecSourceRel.
func (*DropSequence) IsReadOnly ¶
func (c *DropSequence) IsReadOnly() bool
IsReadOnly implements the interface sql.ExecSourceRel.
func (*DropSequence) Resolved ¶
func (c *DropSequence) Resolved() bool
Resolved implements the interface sql.ExecSourceRel.
func (*DropSequence) Schema ¶
func (c *DropSequence) Schema(ctx *sql.Context) sql.Schema
Schema implements the interface sql.ExecSourceRel.
func (*DropSequence) String ¶
func (c *DropSequence) String() string
String implements the interface sql.ExecSourceRel.
func (*DropSequence) WithChildren ¶
WithChildren implements the interface sql.ExecSourceRel.
func (*DropSequence) WithResolvedChildren ¶
WithResolvedChildren implements the interface vitess.Injectable.
type DropTable ¶ added in v0.14.0
type DropTable struct {
// contains filtered or unexported fields
}
DropTable is a node that implements functionality specifically relevant to Doltgres' table dropping needs.
func NewDropTable ¶ added in v0.14.0
NewDropTable returns a new *DropTable.
func (*DropTable) BuildRowIter ¶ added in v0.54.6
func (c *DropTable) BuildRowIter(ctx *sql.Context, b sql.NodeExecBuilder, r sql.Row) (sql.RowIter, error)
BuildRowIter implements the interface sql.ExecBuilderNode.
func (*DropTable) Children ¶ added in v0.14.0
Children implements the interface sql.ExecBuilderNode.
func (*DropTable) IsReadOnly ¶ added in v0.14.0
IsReadOnly implements the interface sql.ExecBuilderNode.
func (*DropTable) Resolved ¶ added in v0.14.0
Resolved implements the interface sql.ExecBuilderNode.
type DropTrigger ¶ added in v0.56.0
type DropTrigger struct {
// contains filtered or unexported fields
}
DropTrigger handles the DROP TRIGGER statement.
func NewDropTrigger ¶ added in v0.56.0
func NewDropTrigger(ifExists bool, trigger, schema, table string, cascade bool) *DropTrigger
NewDropTrigger returns a new *DropTrigger.
func (*DropTrigger) Children ¶ added in v0.56.0
func (c *DropTrigger) Children() []sql.Node
Children implements the interface sql.ExecSourceRel.
func (*DropTrigger) IsReadOnly ¶ added in v0.56.0
func (c *DropTrigger) IsReadOnly() bool
IsReadOnly implements the interface sql.ExecSourceRel.
func (*DropTrigger) Resolved ¶ added in v0.56.0
func (c *DropTrigger) Resolved() bool
Resolved implements the interface sql.ExecSourceRel.
func (*DropTrigger) Schema ¶ added in v0.56.0
func (c *DropTrigger) Schema(ctx *sql.Context) sql.Schema
Schema implements the interface sql.ExecSourceRel.
func (*DropTrigger) String ¶ added in v0.56.0
func (c *DropTrigger) String() string
String implements the interface sql.ExecSourceRel.
func (*DropTrigger) WithChildren ¶ added in v0.56.0
WithChildren implements the interface sql.ExecSourceRel.
func (*DropTrigger) WithResolvedChildren ¶ added in v0.56.0
WithResolvedChildren implements the interface vitess.Injectable.
type DropType ¶ added in v0.16.0
type DropType struct {
// contains filtered or unexported fields
}
DropType handles the DROP TYPE statement.
func NewDropType ¶ added in v0.16.0
NewDropType returns a new *DropType.
func (*DropType) IsReadOnly ¶ added in v0.16.0
IsReadOnly implements the interface sql.ExecSourceRel.
func (*DropType) WithChildren ¶ added in v0.16.0
WithChildren implements the interface sql.ExecSourceRel.
type FetchCursor ¶ added in v1.5.0
type FetchCursor struct {
Name string
Direction tree.FetchDirection
Count int64
IsMove bool
}
FetchCursor moves through a cursor created by DECLARE. FETCH returns the rows that it moves over, while MOVE only returns how many rows it moved over.
func (*FetchCursor) Children ¶ added in v1.5.0
func (f *FetchCursor) Children() []sql.Node
Children implements the interface sql.ExecSourceRel.
func (*FetchCursor) IsReadOnly ¶ added in v1.5.0
func (f *FetchCursor) IsReadOnly() bool
IsReadOnly implements the interface sql.ExecSourceRel.
func (*FetchCursor) Resolved ¶ added in v1.5.0
func (f *FetchCursor) Resolved() bool
Resolved implements the interface sql.ExecSourceRel.
func (*FetchCursor) Schema ¶ added in v1.5.0
func (f *FetchCursor) Schema(ctx *sql.Context) sql.Schema
Schema implements the interface sql.ExecSourceRel.
func (*FetchCursor) String ¶ added in v1.5.0
func (f *FetchCursor) String() string
String implements the interface sql.ExecSourceRel.
func (*FetchCursor) WithChildren ¶ added in v1.5.0
WithChildren implements the interface sql.ExecSourceRel.
func (*FetchCursor) WithResolvedChildren ¶ added in v1.5.0
WithResolvedChildren implements the interface vitess.Injectable.
type FunctionColumn ¶ added in v0.52.1
type FunctionColumn struct {
Name string
Typ *pgtypes.DoltgresType
Idx uint16
}
FunctionColumn represents the deferred column used in functions. It is a placeholder column reference later used for function calls.
func (*FunctionColumn) Children ¶ added in v0.52.1
func (f *FunctionColumn) Children() []sql.Expression
Children implements the interface sql.Expression.
func (*FunctionColumn) IsNullable ¶ added in v0.52.1
func (f *FunctionColumn) IsNullable(ctx *sql.Context) bool
IsNullable implements the interface sql.Expression.
func (*FunctionColumn) Resolved ¶ added in v0.52.1
func (f *FunctionColumn) Resolved() bool
Resolved implements the interface sql.Expression.
func (*FunctionColumn) String ¶ added in v0.52.1
func (f *FunctionColumn) String() string
String implements the interface sql.Expression.
func (*FunctionColumn) Type ¶ added in v0.52.1
func (f *FunctionColumn) Type(ctx *sql.Context) sql.Type
Type implements the interface sql.Expression.
func (*FunctionColumn) WithChildren ¶ added in v0.52.1
func (f *FunctionColumn) WithChildren(ctx *sql.Context, children ...sql.Expression) (sql.Expression, error)
WithChildren implements the interface sql.Expression.
func (*FunctionColumn) WithResolvedChildren ¶ added in v0.52.1
WithResolvedChildren implements the interface vitess.Injectable.
type Grant ¶ added in v0.14.0
type Grant struct {
GrantTable *GrantTable
GrantSchema *GrantSchema
GrantDatabase *GrantDatabase
GrantSequence *GrantSequence
GrantRoutine *GrantRoutine
GrantRole *GrantRole
ToRoles []string
WithGrantOption bool // This is "WITH ADMIN OPTION" for GrantRole only
GrantedBy string
}
Grant handles all of the GRANT statements.
func (*Grant) IsReadOnly ¶ added in v0.14.0
IsReadOnly implements the interface sql.ExecSourceRel.
func (*Grant) WithChildren ¶ added in v0.14.0
WithChildren implements the interface sql.ExecSourceRel.
type GrantDatabase ¶ added in v0.15.0
GrantDatabase specifically handles the GRANT ... ON DATABASE statement.
type GrantRole ¶ added in v0.15.0
type GrantRole struct {
Groups []string
}
GrantRole specifically handles the GRANT <roles> TO <roles> statement.
type GrantRoutine ¶ added in v0.55.6
type GrantRoutine struct {
Privileges []auth.Privilege
Routines []PrivilegeTarget
Kind RoutineKind
}
GrantRoutine specifically handles the GRANT ... ON FUNCTION/PROCEDURE/ROUTINE statement.
type GrantSchema ¶ added in v0.15.0
GrantSchema specifically handles the GRANT ... ON SCHEMA statement.
type GrantSequence ¶ added in v0.55.6
type GrantSequence struct {
Privileges []auth.Privilege
Sequences []PrivilegeTarget
}
GrantSequence specifically handles the GRANT ... ON SEQUENCE statement.
type GrantTable ¶ added in v0.14.0
type GrantTable struct {
Privileges []auth.Privilege
Tables []PrivilegeTarget
}
GrantTable specifically handles the GRANT ... ON TABLE statement.
type JsonTable ¶ added in v1.4.0
type JsonTable struct {
Context sql.Expression
ContextFormat *tree.JsonFormat
Passing []JsonTablePassing
Root *JsonTablePath
Columns []JsonTableColumn
ErrorOnError bool
// contains filtered or unexported fields
}
JsonTable is the table function that implements JSON_TABLE, producing one row per item matched by Root in Context.
func (*JsonTable) Expressions ¶ added in v1.4.0
func (j *JsonTable) Expressions() []sql.Expression
Expressions implements the interface sql.TableFunction.
func (*JsonTable) IsReadOnly ¶ added in v1.4.0
IsReadOnly implements the interface sql.TableFunction.
func (*JsonTable) NewInstance ¶ added in v1.4.0
func (j *JsonTable) NewInstance(ctx *sql.Context, db sql.Database, args []sql.Expression) (sql.Node, error)
NewInstance implements the interface sql.TableFunction.
func (*JsonTable) WithChildren ¶ added in v1.4.0
WithChildren implements the interface sql.TableFunction.
func (*JsonTable) WithDatabase ¶ added in v1.4.0
WithDatabase implements the interface sql.TableFunction.
func (*JsonTable) WithExpressions ¶ added in v1.4.0
WithExpressions implements the interface sql.TableFunction.
type JsonTableBehavior ¶ added in v1.4.0
type JsonTableBehavior struct {
Type tree.JsonBehaviorType
Default sql.Expression
}
JsonTableBehavior is an ON EMPTY or ON ERROR behavior of a JSON_TABLE column, whose Default is only set for DEFAULT.
type JsonTableColumn ¶ added in v1.4.0
type JsonTableColumn struct {
Name string
Type *pgtypes.DoltgresType
Kind tree.JsonTableColumnKind
Path *path.Path
Format *tree.JsonFormat
Wrapper tree.JsonWrapper
Quotes tree.JsonQuotes
OnEmpty *JsonTableBehavior
OnError *JsonTableBehavior
// contains filtered or unexported fields
}
JsonTableColumn is one output column of a JSON_TABLE expression.
type JsonTablePassing ¶ added in v1.4.0
type JsonTablePassing struct {
Name string
Value sql.Expression
Format *tree.JsonFormat
}
JsonTablePassing is one entry of the PASSING clause of a JSON_TABLE expression.
type JsonTablePath ¶ added in v1.4.0
type JsonTablePath struct {
Path *path.Path
Columns []int
Nested []*JsonTablePath
}
JsonTablePath is a row path of a JSON_TABLE expression, whose Columns are indexes into the table's columns.
type NoOp ¶ added in v0.17.0
type NoOp struct {
Warnings []string
}
NoOp is a node that does nothing and issues zero or more warnings when run. Used when a statement should parse but isn't expected to do anything, for compatibility with Postgres dumps / tools.
func (NoOp) IsReadOnly ¶ added in v0.17.0
func (NoOp) WithChildren ¶ added in v0.17.0
type OperatorToDrop ¶ added in v1.2.0
type OperatorToDrop struct {
Symbol string
Left *pgtypes.DoltgresType // This is nil for prefix operators
Right *pgtypes.DoltgresType
}
OperatorToDrop represents an operator in DROP OPERATOR.
type PrivilegeTarget ¶ added in v1.5.0
type PrivilegeTarget struct {
Database string // The database qualifier as written, which is empty when the target is not database-qualified
Schema string // The schema qualifier as written, which is empty when the target is not schema-qualified
Name string // The object's name, which is empty for ALL ... IN SCHEMA
ArgTypes string // A routine's argument types for its privilege key
// TODO: there can be 2 routines with the same name but different argument types, so ArgTypes is always empty
// until we can get argument types from a CALL statement
Args string // A routine's argument types as written, which are used only in error messages
// ArgsOmitted is true when a routine was named without an argument list, which is used only in error messages
ArgsOmitted bool
}
PrivilegeTarget is a table, sequence, or routine named by a GRANT or REVOKE statement.
func (PrivilegeTarget) String ¶ added in v1.5.0
func (t PrivilegeTarget) String() string
String returns the target's name as written.
type RenameIndex ¶ added in v1.3.0
type RenameIndex struct {
IfExists bool
DbName string // optional catalog qualifier for the index name
SchemaName string // optional schema qualifier for the index name
TableName string // optional table name (from the CockroachDB `table@index` syntax)
IndexName string
NewName string
// contains filtered or unexported fields
}
RenameIndex handles the ALTER INDEX ... RENAME TO ... statement. The table owning the index is resolved at analysis time by the resolveTableForDDL analyzer rule.
func NewRenameIndex ¶ added in v1.3.0
func NewRenameIndex(ifExists bool, dbName, schemaName, tableName, indexName, newName string) *RenameIndex
NewRenameIndex returns a new *RenameIndex.
func (*RenameIndex) Children ¶ added in v1.3.0
func (r *RenameIndex) Children() []sql.Node
Children implements the interface sql.ExecSourceRel.
func (*RenameIndex) IsReadOnly ¶ added in v1.3.0
func (r *RenameIndex) IsReadOnly() bool
IsReadOnly implements the interface sql.ExecSourceRel.
func (*RenameIndex) Resolved ¶ added in v1.3.0
func (r *RenameIndex) Resolved() bool
Resolved implements the interface sql.ExecSourceRel.
func (*RenameIndex) Schema ¶ added in v1.3.0
func (r *RenameIndex) Schema(ctx *sql.Context) sql.Schema
Schema implements the interface sql.ExecSourceRel.
func (*RenameIndex) String ¶ added in v1.3.0
func (r *RenameIndex) String() string
String implements the interface sql.ExecSourceRel.
func (*RenameIndex) WithChildren ¶ added in v1.3.0
WithChildren implements the interface sql.ExecSourceRel.
func (*RenameIndex) WithResolvedChildren ¶ added in v1.3.0
WithResolvedChildren implements the interface vitess.Injectable.
func (*RenameIndex) WithResolvedTable ¶ added in v1.3.0
func (r *RenameIndex) WithResolvedTable(table sql.TableNode) *RenameIndex
WithResolvedTable returns a copy of this node with the table owning the index assigned. A nil table is only valid when IfExists is set, and makes execution a no-op.
type ResetSettings ¶ added in v1.5.0
type ResetSettings struct{}
ResetSettings restores changed PostgreSQL GUCs to their connection defaults.
func (*ResetSettings) Children ¶ added in v1.5.0
func (*ResetSettings) Children() []sql.Node
func (*ResetSettings) IsReadOnly ¶ added in v1.5.0
func (*ResetSettings) IsReadOnly() bool
func (*ResetSettings) Resolved ¶ added in v1.5.0
func (*ResetSettings) Resolved() bool
func (*ResetSettings) Schema ¶ added in v1.5.0
func (*ResetSettings) Schema(*sql.Context) sql.Schema
func (*ResetSettings) String ¶ added in v1.5.0
func (*ResetSettings) String() string
func (*ResetSettings) WithChildren ¶ added in v1.5.0
func (*ResetSettings) WithResolvedChildren ¶ added in v1.5.0
type Return ¶ added in v0.56.2
type Return struct {
Expr sql.Expression
// contains filtered or unexported fields
}
Return represents the statement RETURN statement.
func (*Return) Expressions ¶ added in v0.56.2
func (r *Return) Expressions() []sql.Expression
Expressions implements the interface sql.Expressioner.
func (*Return) IsReadOnly ¶ added in v0.56.2
IsReadOnly implements the interface sql.ExecSourceRel.
func (*Return) WithChildren ¶ added in v0.56.2
WithChildren implements the interface sql.ExecSourceRel.
func (*Return) WithExpressions ¶ added in v0.56.2
WithExpressions implements the interface sql.Expressioner.
type Revoke ¶ added in v0.14.0
type Revoke struct {
RevokeTable *RevokeTable
RevokeSchema *RevokeSchema
RevokeDatabase *RevokeDatabase
RevokeSequence *RevokeSequence
RevokeRoutine *RevokeRoutine
RevokeRole *RevokeRole
FromRoles []string
GrantedBy string
GrantOptionFor bool // This is "ADMIN OPTION FOR" for RevokeRole only
Cascade bool // When false, represents RESTRICT
}
Revoke handles all of the REVOKE statements.
func (*Revoke) IsReadOnly ¶ added in v0.14.0
IsReadOnly implements the interface sql.ExecSourceRel.
func (*Revoke) WithChildren ¶ added in v0.14.0
WithChildren implements the interface sql.ExecSourceRel.
type RevokeDatabase ¶ added in v0.15.0
RevokeDatabase specifically handles the REVOKE ... ON DATABASE statement.
type RevokeRole ¶ added in v0.15.0
type RevokeRole struct {
Groups []string
}
RevokeRole specifically handles the REVOKE <roles> FROM <roles> statement.
type RevokeRoutine ¶ added in v0.55.6
type RevokeRoutine struct {
Privileges []auth.Privilege
Routines []PrivilegeTarget
Kind RoutineKind
}
RevokeRoutine specifically handles the REVOKE ... ON FUNCTION/PROCEDURE/ROUTINE statement.
type RevokeSchema ¶ added in v0.15.0
RevokeSchema specifically handles the REVOKE ... ON SCHEMA statement.
type RevokeSequence ¶ added in v0.55.6
type RevokeSequence struct {
Privileges []auth.Privilege
Sequences []PrivilegeTarget
}
RevokeSequence specifically handles the REVOKE ... ON SEQUENCE statement.
type RevokeTable ¶ added in v0.14.0
type RevokeTable struct {
Privileges []auth.Privilege
Tables []PrivilegeTarget
}
RevokeTable specifically handles the REVOKE ... ON TABLE statement.
type RoutineKind ¶ added in v1.5.0
type RoutineKind string
RoutineKind is the kind of routine named by a GRANT or REVOKE ON FUNCTION/PROCEDURE/ROUTINE statement.
const ( RoutineKind_Function RoutineKind = "function" RoutineKind_Procedure RoutineKind = "procedure" RoutineKind_Routine RoutineKind = "routine" // either a function or a procedure )
type RoutineParam ¶ added in v0.56.2
type RoutineParam struct {
Mode procedures.ParameterMode
Name string
Type *pgtypes.DoltgresType
HasDefault bool
Default sql.Expression
}
RoutineParam represents a routine parameter with parameter mode, name, type and default value if exists.
type RoutineWithParams ¶ added in v0.56.2
type RoutineWithParams struct {
SchemaName string
RoutineName string
Args []RoutineParam
NoArgDefined bool
}
RoutineWithParams represent a function or a procedure with schema name, routine name and its parameters.
type SetConstraints ¶ added in v1.4.0
type SetConstraints struct {
Names []*tree.UnresolvedObjectName
Deferred bool
}
SetConstraints handles the SET CONSTRAINTS statement, treating every constraint as NOT DEFERRABLE.
func (*SetConstraints) Children ¶ added in v1.4.0
func (c *SetConstraints) Children() []sql.Node
Children implements the interface sql.ExecSourceRel.
func (*SetConstraints) IsReadOnly ¶ added in v1.4.0
func (c *SetConstraints) IsReadOnly() bool
IsReadOnly implements the interface sql.ExecSourceRel.
func (*SetConstraints) Resolved ¶ added in v1.4.0
func (c *SetConstraints) Resolved() bool
Resolved implements the interface sql.ExecSourceRel.
func (*SetConstraints) RowIter ¶ added in v1.4.0
RowIter implements the interface sql.ExecSourceRel.
func (*SetConstraints) Schema ¶ added in v1.4.0
func (c *SetConstraints) Schema(ctx *sql.Context) sql.Schema
Schema implements the interface sql.ExecSourceRel.
func (*SetConstraints) String ¶ added in v1.4.0
func (c *SetConstraints) String() string
String implements the interface sql.ExecSourceRel.
func (*SetConstraints) WithChildren ¶ added in v1.4.0
WithChildren implements the interface sql.ExecSourceRel.
func (*SetConstraints) WithResolvedChildren ¶ added in v1.4.0
WithResolvedChildren implements the interface vitess.Injectable.
type SetRole ¶ added in v1.5.0
SetRole changes the selected role. Permission is always checked against the session role, even when another role is currently selected.
func (*SetRole) IsReadOnly ¶ added in v1.5.0
func (*SetRole) WithChildren ¶ added in v1.5.0
type SetSessionAuthorization ¶ added in v1.5.0
SetSessionAuthorization changes the session role after an authorization check.
func (*SetSessionAuthorization) Children ¶ added in v1.5.0
func (s *SetSessionAuthorization) Children() []sql.Node
func (*SetSessionAuthorization) IsReadOnly ¶ added in v1.5.0
func (s *SetSessionAuthorization) IsReadOnly() bool
func (*SetSessionAuthorization) Resolved ¶ added in v1.5.0
func (s *SetSessionAuthorization) Resolved() bool
func (*SetSessionAuthorization) Schema ¶ added in v1.5.0
func (s *SetSessionAuthorization) Schema(*sql.Context) sql.Schema
func (*SetSessionAuthorization) String ¶ added in v1.5.0
func (s *SetSessionAuthorization) String() string
func (*SetSessionAuthorization) WithChildren ¶ added in v1.5.0
func (*SetSessionAuthorization) WithResolvedChildren ¶ added in v1.5.0
type SetSetting ¶ added in v1.5.0
type SetSetting struct {
Name string
Local bool
Reset bool
Value sql.Expression
}
SetSetting executes PostgreSQL SET and SET LOCAL without routing custom setting names through GMS's registered system-variable planner.
func (*SetSetting) Children ¶ added in v1.5.0
func (*SetSetting) Children() []sql.Node
func (*SetSetting) Expressions ¶ added in v1.5.0
func (s *SetSetting) Expressions() []sql.Expression
func (*SetSetting) IsReadOnly ¶ added in v1.5.0
func (*SetSetting) IsReadOnly() bool
func (*SetSetting) Resolved ¶ added in v1.5.0
func (s *SetSetting) Resolved() bool
func (*SetSetting) String ¶ added in v1.5.0
func (s *SetSetting) String() string
func (*SetSetting) WithChildren ¶ added in v1.5.0
func (*SetSetting) WithExpressions ¶ added in v1.5.0
func (s *SetSetting) WithExpressions(_ *sql.Context, exprs ...sql.Expression) (sql.Node, error)
func (*SetSetting) WithResolvedChildren ¶ added in v1.5.0
type ShowSchemas ¶ added in v0.51.0
type ShowSchemas struct {
// contains filtered or unexported fields
}
ShowSchemas is a node that implements the SHOW SCHEMAS statement.
func NewShowSchemas ¶ added in v0.51.0
func NewShowSchemas(database string) *ShowSchemas
NewShowSchemas returns a new *ShowSchemas.
func (*ShowSchemas) Children ¶ added in v0.51.0
func (s *ShowSchemas) Children() []sql.Node
Children implements the interface sql.ExecSourceRel.
func (*ShowSchemas) IsReadOnly ¶ added in v0.51.0
func (s *ShowSchemas) IsReadOnly() bool
IsReadOnly implements the interface sql.ExecSourceRel.
func (*ShowSchemas) Resolved ¶ added in v0.51.0
func (s *ShowSchemas) Resolved() bool
Resolved implements the interface sql.ExecSourceRel.
func (*ShowSchemas) Schema ¶ added in v0.51.0
func (s *ShowSchemas) Schema(ctx *sql.Context) sql.Schema
Schema implements the interface sql.ExecSourceRel.
func (*ShowSchemas) String ¶ added in v0.51.0
func (s *ShowSchemas) String() string
String implements the interface sql.ExecSourceRel.
func (*ShowSchemas) WithChildren ¶ added in v0.51.0
WithChildren implements the interface sql.ExecSourceRel.
func (*ShowSchemas) WithResolvedChildren ¶ added in v0.51.0
WithResolvedChildren implements the interface vitess.InjectedStatement.
type ShowSequences ¶ added in v0.51.0
type ShowSequences struct {
// contains filtered or unexported fields
}
ShowSequences is a node that implements the SHOW SCHEMAS statement.
func NewShowSequences ¶ added in v0.51.0
func NewShowSequences(database string) *ShowSequences
NewShowSequences returns a new ShowSequences.
func (*ShowSequences) Children ¶ added in v0.51.0
func (s *ShowSequences) Children() []sql.Node
Children implements the interface sql.ExecSourceRel.
func (*ShowSequences) IsReadOnly ¶ added in v0.51.0
func (s *ShowSequences) IsReadOnly() bool
IsReadOnly implements the interface sql.ExecSourceRel.
func (*ShowSequences) Resolved ¶ added in v0.51.0
func (s *ShowSequences) Resolved() bool
Resolved implements the interface sql.ExecSourceRel.
func (*ShowSequences) RowIter ¶ added in v0.51.0
RowIter implements the interface sql.ExecSourceRel.
func (*ShowSequences) Schema ¶ added in v0.51.0
func (s *ShowSequences) Schema(ctx *sql.Context) sql.Schema
Schema implements the interface sql.ExecSourceRel.
func (*ShowSequences) String ¶ added in v0.51.0
func (s *ShowSequences) String() string
String implements the interface sql.ExecSourceRel.
func (*ShowSequences) WithChildren ¶ added in v0.51.0
WithChildren implements the interface sql.ExecSourceRel.
func (*ShowSequences) WithResolvedChildren ¶ added in v0.51.0
WithResolvedChildren implements the interface vitess.InjectedStatement.
type TableFunctionDefinition ¶ added in v1.4.0
type TableFunctionDefinition struct {
// contains filtered or unexported fields
}
TableFunctionDefinition is the sole argument of a table function whose SQL form is not a function call, such as XMLTABLE, carrying the table function that the expression converts to so that the planner resolves its expressions.
func NewTableFunctionDefinition ¶ added in v1.4.0
func NewTableFunctionDefinition(table sql.TableFunction) *TableFunctionDefinition
NewTableFunctionDefinition returns a new TableFunctionDefinition for `table`.
func (*TableFunctionDefinition) Children ¶ added in v1.4.0
func (d *TableFunctionDefinition) Children() []sql.Expression
Children implements the interface sql.Expression.
func (*TableFunctionDefinition) Eval ¶ added in v1.4.0
Eval implements the interface sql.Expression.
func (*TableFunctionDefinition) IsNullable ¶ added in v1.4.0
func (d *TableFunctionDefinition) IsNullable(ctx *sql.Context) bool
IsNullable implements the interface sql.Expression.
func (*TableFunctionDefinition) Resolved ¶ added in v1.4.0
func (d *TableFunctionDefinition) Resolved() bool
Resolved implements the interface sql.Expression.
func (*TableFunctionDefinition) String ¶ added in v1.4.0
func (d *TableFunctionDefinition) String() string
String implements the interface sql.Expression.
func (*TableFunctionDefinition) Type ¶ added in v1.4.0
func (d *TableFunctionDefinition) Type(ctx *sql.Context) sql.Type
Type implements the interface sql.Expression.
func (*TableFunctionDefinition) WithChildren ¶ added in v1.4.0
func (d *TableFunctionDefinition) WithChildren(ctx *sql.Context, children ...sql.Expression) (sql.Expression, error)
WithChildren implements the interface sql.Expression.
func (*TableFunctionDefinition) WithResolvedChildren ¶ added in v1.4.0
func (d *TableFunctionDefinition) WithResolvedChildren(ctx context.Context, children []any) (any, error)
WithResolvedChildren implements the interface vitess.Injectable.
type TriggerExecution ¶ added in v0.50.1
type TriggerExecution struct {
Timing triggers.TriggerTiming
Triggers []triggers.Trigger
Split TriggerExecutionRowHandling // How the source row should be split
Return TriggerExecutionRowHandling // How the returned rows should be combined
Sch sql.Schema
Source sql.Node
Runner pgexprs.StatementRunner
TgOp string // The operation that fired the triggers, as seen by TG_OP
}
TriggerExecution handles the execution of a set of triggers on a table.
func (*TriggerExecution) BuildRowIter ¶ added in v0.54.6
func (te *TriggerExecution) BuildRowIter(ctx *sql.Context, b sql.NodeExecBuilder, r sql.Row) (sql.RowIter, error)
BuildRowIter implements the interface sql.ExecBuilderNode.
func (*TriggerExecution) Children ¶ added in v0.50.1
func (te *TriggerExecution) Children() []sql.Node
func (*TriggerExecution) Expressions ¶ added in v0.50.1
func (te *TriggerExecution) Expressions() []sql.Expression
Expressions implements the interface sql.Expressioner.
func (*TriggerExecution) IsReadOnly ¶ added in v0.50.1
func (te *TriggerExecution) IsReadOnly() bool
IsReadOnly implements the interface sql.ExecBuilderNode.
func (*TriggerExecution) Resolved ¶ added in v0.50.1
func (te *TriggerExecution) Resolved() bool
Resolved implements the interface sql.ExecBuilderNode.
func (*TriggerExecution) Schema ¶ added in v0.50.1
func (te *TriggerExecution) Schema(ctx *sql.Context) sql.Schema
Schema implements the interface sql.ExecBuilderNode.
func (*TriggerExecution) String ¶ added in v0.50.1
func (te *TriggerExecution) String() string
String implements the interface sql.ExecBuilderNode.
func (*TriggerExecution) WithChildren ¶ added in v0.50.1
WithChildren implements the interface sql.ExecBuilderNode.
func (*TriggerExecution) WithExpressions ¶ added in v0.50.1
func (te *TriggerExecution) WithExpressions(ctx *sql.Context, expressions ...sql.Expression) (sql.Node, error)
WithExpressions implements the interface sql.Expressioner.
type TriggerExecutionRowHandling ¶ added in v0.50.1
type TriggerExecutionRowHandling uint8
TriggerExecutionRowHandling states how to interpret the source row, or how to return the resulting row.
const ( TriggerExecutionRowHandling_None TriggerExecutionRowHandling = iota TriggerExecutionRowHandling_Old TriggerExecutionRowHandling_OldNew TriggerExecutionRowHandling_NewOld TriggerExecutionRowHandling_New )
type UsingColumn ¶ added in v1.3.1
type UsingColumn struct {
SchemaName string
TableName string
ColumnName string
// contains filtered or unexported fields
}
UsingColumn is a placeholder expression for a column reference within the USING expression of an ALTER TABLE ... ALTER COLUMN ... TYPE ... USING statement. It resolves its type against the target table when the statement is built, so that operator and function overloads over the column are chosen correctly, and is replaced with a GetField expression bound to the table's schema when the statement executes.
func (*UsingColumn) Children ¶ added in v1.3.1
func (u *UsingColumn) Children() []sql.Expression
Children implements the interface sql.Expression.
func (*UsingColumn) IsNullable ¶ added in v1.3.1
func (u *UsingColumn) IsNullable(ctx *sql.Context) bool
IsNullable implements the interface sql.Expression.
func (*UsingColumn) Resolved ¶ added in v1.3.1
func (u *UsingColumn) Resolved() bool
Resolved implements the interface sql.Expression.
func (*UsingColumn) String ¶ added in v1.3.1
func (u *UsingColumn) String() string
String implements the interface sql.Expression.
func (*UsingColumn) Type ¶ added in v1.3.1
func (u *UsingColumn) Type(ctx *sql.Context) sql.Type
Type implements the interface sql.Expression.
func (*UsingColumn) WithChildren ¶ added in v1.3.1
func (u *UsingColumn) WithChildren(ctx *sql.Context, children ...sql.Expression) (sql.Expression, error)
WithChildren implements the interface sql.Expression.
func (*UsingColumn) WithResolvedChildren ¶ added in v1.3.1
WithResolvedChildren implements the interface vitess.Injectable. It resolves the referenced column's type against the target table, if the table exists, honoring the search path for unqualified table names just like the resolveTableForDDL analyzer rule does when it resolves the statement's target table.
type ValidateConstraint ¶ added in v0.56.5
type ValidateConstraint struct {
DbProvider sql.DatabaseProvider
// contains filtered or unexported fields
}
ValidateConstraint handles the ALTER TABLE ... VALIDATE CONSTRAINT statement.
func NewValidateConstraint ¶ added in v0.56.5
func NewValidateConstraint(schemaName, tableName, constraintName string) *ValidateConstraint
NewValidateConstraint returns a new *ValidateConstraint.
func (*ValidateConstraint) Children ¶ added in v0.56.5
func (v *ValidateConstraint) Children() []sql.Node
Children implements sql.ExecSourceRel.
func (*ValidateConstraint) DatabaseProvider ¶ added in v0.56.5
func (v *ValidateConstraint) DatabaseProvider() sql.DatabaseProvider
DatabaseProvider implements sql.MultiDatabaser.
func (*ValidateConstraint) IsReadOnly ¶ added in v0.56.5
func (v *ValidateConstraint) IsReadOnly() bool
IsReadOnly implements sql.ExecSourceRel.
func (*ValidateConstraint) Resolved ¶ added in v0.56.5
func (v *ValidateConstraint) Resolved() bool
Resolved implements sql.ExecSourceRel.
func (*ValidateConstraint) Schema ¶ added in v0.56.5
func (v *ValidateConstraint) Schema(ctx *sql.Context) sql.Schema
Schema implements sql.ExecSourceRel.
func (*ValidateConstraint) String ¶ added in v0.56.5
func (v *ValidateConstraint) String() string
String implements sql.ExecSourceRel.
func (*ValidateConstraint) WithChildren ¶ added in v0.56.5
WithChildren implements sql.ExecSourceRel.
func (*ValidateConstraint) WithDatabaseProvider ¶ added in v0.56.5
func (v *ValidateConstraint) WithDatabaseProvider(provider sql.DatabaseProvider) (sql.Node, error)
WithDatabaseProvider implements sql.MultiDatabaser.
func (*ValidateConstraint) WithResolvedChildren ¶ added in v0.56.5
WithResolvedChildren implements vitess.Injectable.
type XmlTable ¶ added in v1.4.0
type XmlTable struct {
Namespaces []XmlTableNamespace
RowPath sql.Expression
Document sql.Expression
Columns []XmlTableColumn
// contains filtered or unexported fields
}
XmlTable is the table function that implements XMLTABLE, producing one row per node matched by RowPath in Document.
func (*XmlTable) Expressions ¶ added in v1.4.0
func (x *XmlTable) Expressions() []sql.Expression
Expressions implements the interface sql.TableFunction.
func (*XmlTable) IsReadOnly ¶ added in v1.4.0
IsReadOnly implements the interface sql.TableFunction.
func (*XmlTable) NewInstance ¶ added in v1.4.0
func (x *XmlTable) NewInstance(ctx *sql.Context, db sql.Database, args []sql.Expression) (sql.Node, error)
NewInstance implements the interface sql.TableFunction.
func (*XmlTable) WithChildren ¶ added in v1.4.0
WithChildren implements the interface sql.TableFunction.
func (*XmlTable) WithDatabase ¶ added in v1.4.0
WithDatabase implements the interface sql.TableFunction.
func (*XmlTable) WithExpressions ¶ added in v1.4.0
WithExpressions implements the interface sql.TableFunction.
type XmlTableColumn ¶ added in v1.4.0
type XmlTableColumn struct {
Name string
Type *pgtypes.DoltgresType
Path sql.Expression
Default sql.Expression
NotNull bool
ForOrdinality bool
}
XmlTableColumn is one output column of an XMLTABLE expression. Path and Default are nil for a FOR ORDINALITY column, and Default evaluates to NULL when the column has no DEFAULT.
type XmlTableNamespace ¶ added in v1.4.0
type XmlTableNamespace struct {
Prefix string
URI sql.Expression
}
XmlTableNamespace is one entry of the XMLNAMESPACES list of an XMLTABLE expression.
Source Files
¶
- alter_default_privileges.go
- alter_extension.go
- alter_role.go
- alter_role_setting.go
- alter_sequence.go
- alter_table_column_type_using.go
- alter_type.go
- call.go
- close_cursor.go
- context_root_finalizer.go
- copy_from.go
- copy_to.go
- create_aggregate.go
- create_cast.go
- create_domain.go
- create_extension.go
- create_function.go
- create_operator.go
- create_procedure.go
- create_role.go
- create_sequence.go
- create_table.go
- create_trigger.go
- create_type.go
- declare_cursor.go
- discard.go
- do.go
- drop_aggregate.go
- drop_cast.go
- drop_database.go
- drop_domain.go
- drop_extension.go
- drop_function.go
- drop_operator.go
- drop_procedure.go
- drop_role.go
- drop_sequence.go
- drop_table.go
- drop_trigger.go
- drop_type.go
- fetch_cursor.go
- grant.go
- json_table.go
- no_op.go
- privilege_targets.go
- rename_index.go
- replace_routine.go
- reset_settings.go
- return.go
- revoke.go
- set_constraints.go
- set_role.go
- set_session_authorization.go
- set_setting.go
- show_schemas.go
- show_sequences.go
- table_function_definition.go
- trigger_execution.go
- validate_constraint.go
- xml_table.go