node

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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) CheckPrivileges

func (rf *ContextRootFinalizer) CheckPrivileges(ctx *sql.Context, opChecker sql.PrivilegedOperationChecker) bool

CheckPrivileges implements the interface sql.ExecSourceRel.

func (*ContextRootFinalizer) Child

func (rf *ContextRootFinalizer) Child() sql.Node

Child returns the child of the finalizer.

func (*ContextRootFinalizer) Children

func (rf *ContextRootFinalizer) Children() []sql.Node

Children implements the interface sql.ExecSourceRel.

func (*ContextRootFinalizer) DebugString

func (rf *ContextRootFinalizer) DebugString() string

func (*ContextRootFinalizer) Expressions

func (rf *ContextRootFinalizer) Expressions() []sql.Expression

Expressions implements the interface sql.Expressioner.

func (*ContextRootFinalizer) IsReadOnly

func (rf *ContextRootFinalizer) IsReadOnly() bool

IsReadOnly implements the interface sql.ExecSourceRel.

func (*ContextRootFinalizer) Resolved

func (rf *ContextRootFinalizer) Resolved() bool

Resolved implements the interface sql.ExecSourceRel.

func (*ContextRootFinalizer) RowIter

func (rf *ContextRootFinalizer) RowIter(ctx *sql.Context, r sql.Row) (sql.RowIter, error)

RowIter implements the interface sql.ExecSourceRel.

func (*ContextRootFinalizer) Schema

func (rf *ContextRootFinalizer) Schema() sql.Schema

Schema implements the interface sql.ExecSourceRel.

func (*ContextRootFinalizer) String

func (rf *ContextRootFinalizer) String() string

String implements the interface sql.ExecSourceRel.

func (*ContextRootFinalizer) WithChildren

func (rf *ContextRootFinalizer) WithChildren(children ...sql.Node) (sql.Node, error)

WithChildren implements the interface sql.ExecSourceRel.

func (*ContextRootFinalizer) WithExpressions

func (rf *ContextRootFinalizer) WithExpressions(expressions ...sql.Expression) (sql.Node, error)

WithExpressions implements the interface sql.Expressioner.

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, sequence *sequences.Sequence) *CreateSequence

NewCreateSequence returns a new *CreateSequence.

func (*CreateSequence) CheckPrivileges

func (c *CreateSequence) CheckPrivileges(ctx *sql.Context, opChecker sql.PrivilegedOperationChecker) bool

CheckPrivileges implements the interface sql.ExecSourceRel.

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) RowIter

func (c *CreateSequence) RowIter(ctx *sql.Context, r sql.Row) (sql.RowIter, error)

RowIter implements the interface sql.ExecSourceRel.

func (*CreateSequence) Schema

func (c *CreateSequence) Schema() 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

func (c *CreateSequence) WithChildren(children ...sql.Node) (sql.Node, error)

WithChildren implements the interface sql.ExecSourceRel.

func (*CreateSequence) WithResolvedChildren

func (c *CreateSequence) WithResolvedChildren(children []any) (any, error)

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) CheckPrivileges

func (c *CreateTable) CheckPrivileges(ctx *sql.Context, opChecker sql.PrivilegedOperationChecker) bool

CheckPrivileges implements the interface sql.ExecSourceRel.

func (*CreateTable) Children

func (c *CreateTable) Children() []sql.Node

Children implements the interface sql.ExecSourceRel.

func (*CreateTable) IsReadOnly

func (c *CreateTable) IsReadOnly() bool

IsReadOnly implements the interface sql.ExecSourceRel.

func (*CreateTable) Resolved

func (c *CreateTable) Resolved() bool

Resolved implements the interface sql.ExecSourceRel.

func (*CreateTable) RowIter

func (c *CreateTable) RowIter(ctx *sql.Context, r sql.Row) (sql.RowIter, error)

RowIter implements the interface sql.ExecSourceRel.

func (*CreateTable) Schema

func (c *CreateTable) Schema() sql.Schema

Schema implements the interface sql.ExecSourceRel.

func (*CreateTable) String

func (c *CreateTable) String() string

String implements the interface sql.ExecSourceRel.

func (*CreateTable) WithChildren

func (c *CreateTable) WithChildren(children ...sql.Node) (sql.Node, error)

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) CheckPrivileges

func (c *DropSequence) CheckPrivileges(ctx *sql.Context, opChecker sql.PrivilegedOperationChecker) bool

CheckPrivileges implements the interface sql.ExecSourceRel.

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) RowIter

func (c *DropSequence) RowIter(ctx *sql.Context, r sql.Row) (sql.RowIter, error)

RowIter implements the interface sql.ExecSourceRel.

func (*DropSequence) Schema

func (c *DropSequence) Schema() 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

func (c *DropSequence) WithChildren(children ...sql.Node) (sql.Node, error)

WithChildren implements the interface sql.ExecSourceRel.

func (*DropSequence) WithResolvedChildren

func (c *DropSequence) WithResolvedChildren(children []any) (any, error)

WithResolvedChildren implements the interface vitess.Injectable.

Jump to

Keyboard shortcuts

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