Documentation
¶
Index ¶
- Variables
- 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() sql.Schema
- func (c *AlterRole) String() string
- func (c *AlterRole) WithChildren(children ...sql.Node) (sql.Node, error)
- func (c *AlterRole) WithResolvedChildren(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() sql.Schema
- func (c *AlterSequence) String() string
- func (c *AlterSequence) WithChildren(children ...sql.Node) (sql.Node, error)
- func (c *AlterSequence) WithResolvedChildren(children []any) (any, error)
- type AlterSequenceOwnedBy
- 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() sql.Schema
- func (c *Call) String() string
- func (c *Call) WithChildren(children ...sql.Node) (sql.Node, error)
- func (c *Call) WithExpressions(exprs ...sql.Expression) (sql.Node, error)
- func (c *Call) WithResolvedChildren(children []any) (any, error)
- type CompositeAsType
- type ContextRootFinalizer
- func (rf *ContextRootFinalizer) Child() sql.Node
- func (rf *ContextRootFinalizer) Children() []sql.Node
- func (rf *ContextRootFinalizer) DebugString() string
- func (rf *ContextRootFinalizer) IsReadOnly() bool
- func (rf *ContextRootFinalizer) Resolved() bool
- func (rf *ContextRootFinalizer) RowIter(ctx *sql.Context, r sql.Row) (sql.RowIter, error)
- func (rf *ContextRootFinalizer) Schema() sql.Schema
- func (rf *ContextRootFinalizer) String() string
- func (rf *ContextRootFinalizer) WithChildren(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() sql.Schema
- func (cf *CopyFrom) String() string
- func (cf *CopyFrom) WithChildren(children ...sql.Node) (sql.Node, error)
- func (cf *CopyFrom) WithResolvedChildren(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() sql.Schema
- func (c *CreateDomain) String() string
- func (c *CreateDomain) WithChildren(children ...sql.Node) (sql.Node, error)
- func (c *CreateDomain) WithResolvedChildren(children []any) (any, error)
- type CreateExtension
- func (c *CreateExtension) Children() []sql.Node
- func (c *CreateExtension) Expressions() []sql.Expression
- 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() sql.Schema
- func (c *CreateExtension) String() string
- func (c *CreateExtension) WithChildren(children ...sql.Node) (sql.Node, error)
- func (c *CreateExtension) WithExpressions(expressions ...sql.Expression) (sql.Node, error)
- func (c *CreateExtension) WithResolvedChildren(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() sql.Schema
- func (c *CreateFunction) String() string
- func (c *CreateFunction) WithChildren(children ...sql.Node) (sql.Node, error)
- func (c *CreateFunction) WithResolvedChildren(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() sql.Schema
- func (c *CreateProcedure) String() string
- func (c *CreateProcedure) WithChildren(children ...sql.Node) (sql.Node, error)
- func (c *CreateProcedure) WithResolvedChildren(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() sql.Schema
- func (c *CreateRole) String() string
- func (c *CreateRole) WithChildren(children ...sql.Node) (sql.Node, error)
- func (c *CreateRole) WithResolvedChildren(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() sql.Schema
- func (c *CreateSequence) String() string
- func (c *CreateSequence) WithChildren(children ...sql.Node) (sql.Node, error)
- func (c *CreateSequence) WithResolvedChildren(children []any) (any, error)
- type CreateTable
- func (c *CreateTable) Children() []sql.Node
- func (c *CreateTable) DebugString() string
- func (c *CreateTable) Expressions() []sql.Expression
- func (c *CreateTable) IsReadOnly() bool
- func (c *CreateTable) Resolved() bool
- func (c *CreateTable) RowIter(ctx *sql.Context, r sql.Row) (sql.RowIter, error)
- func (c *CreateTable) Schema() sql.Schema
- func (c *CreateTable) String() string
- func (c *CreateTable) TargetSchema() sql.Schema
- func (c *CreateTable) WithChildren(children ...sql.Node) (sql.Node, error)
- func (c *CreateTable) WithExpressions(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() sql.Schema
- func (c *CreateTrigger) String() string
- func (c *CreateTrigger) WithChildren(children ...sql.Node) (sql.Node, error)
- func (c *CreateTrigger) WithResolvedChildren(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() sql.Schema
- func (c *CreateType) String() string
- func (c *CreateType) WithChildren(children ...sql.Node) (sql.Node, error)
- func (c *CreateType) WithResolvedChildren(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() sql.Schema
- func (d DiscardStatement) String() string
- func (d DiscardStatement) WithChildren(children ...sql.Node) (sql.Node, error)
- func (d DiscardStatement) WithResolvedChildren(children []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() bool
- func (d *DomainColumn) Resolved() bool
- func (d *DomainColumn) String() string
- func (d *DomainColumn) Type() sql.Type
- func (d *DomainColumn) WithChildren(children ...sql.Expression) (sql.Expression, error)
- func (d *DomainColumn) WithResolvedChildren(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() sql.Schema
- func (c *DropDomain) String() string
- func (c *DropDomain) WithChildren(children ...sql.Node) (sql.Node, error)
- func (c *DropDomain) WithResolvedChildren(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() sql.Schema
- func (c *DropExtension) String() string
- func (c *DropExtension) WithChildren(children ...sql.Node) (sql.Node, error)
- func (c *DropExtension) WithResolvedChildren(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() sql.Schema
- func (d *DropFunction) String() string
- func (d *DropFunction) WithChildren(children ...sql.Node) (sql.Node, error)
- func (d *DropFunction) WithResolvedChildren(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() sql.Schema
- func (c *DropRole) String() string
- func (c *DropRole) WithChildren(children ...sql.Node) (sql.Node, error)
- func (c *DropRole) WithResolvedChildren(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() sql.Schema
- func (c *DropSequence) String() string
- func (c *DropSequence) WithChildren(children ...sql.Node) (sql.Node, error)
- func (c *DropSequence) WithResolvedChildren(children []any) (any, error)
- type DropTable
- func (c *DropTable) Children() []sql.Node
- func (c *DropTable) IsReadOnly() bool
- func (c *DropTable) Resolved() bool
- func (c *DropTable) RowIter(ctx *sql.Context, r sql.Row) (sql.RowIter, error)
- func (c *DropTable) Schema() sql.Schema
- func (c *DropTable) String() string
- func (c *DropTable) WithChildren(children ...sql.Node) (sql.Node, 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() sql.Schema
- func (c *DropType) String() string
- func (c *DropType) WithChildren(children ...sql.Node) (sql.Node, error)
- func (c *DropType) WithResolvedChildren(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() bool
- func (f *FunctionColumn) Resolved() bool
- func (f *FunctionColumn) String() string
- func (f *FunctionColumn) Type() sql.Type
- func (f *FunctionColumn) WithChildren(children ...sql.Expression) (sql.Expression, error)
- func (f *FunctionColumn) WithResolvedChildren(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() sql.Schema
- func (g *Grant) String() string
- func (g *Grant) WithChildren(children ...sql.Node) (sql.Node, error)
- func (g *Grant) WithResolvedChildren(children []any) (any, error)
- type GrantDatabase
- type GrantRole
- type GrantSchema
- type GrantTable
- 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() sql.Schema
- func (n NoOp) String() string
- func (n NoOp) WithChildren(children ...sql.Node) (sql.Node, error)
- func (n NoOp) WithResolvedChildren(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() sql.Schema
- func (r *Revoke) String() string
- func (r *Revoke) WithChildren(children ...sql.Node) (sql.Node, error)
- func (r *Revoke) WithResolvedChildren(children []any) (any, error)
- type RevokeDatabase
- type RevokeRole
- type RevokeSchema
- type RevokeTable
- 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() sql.Schema
- func (s *ShowSchemas) String() string
- func (s *ShowSchemas) WithChildren(children ...sql.Node) (sql.Node, error)
- func (s *ShowSchemas) WithResolvedChildren(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() sql.Schema
- func (s *ShowSequences) String() string
- func (s *ShowSequences) WithChildren(children ...sql.Node) (sql.Node, error)
- func (s *ShowSequences) WithResolvedChildren(children []any) (any, error)
- type TriggerExecution
- 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) RowIter(ctx *sql.Context, r sql.Row) (sql.RowIter, error)
- func (te *TriggerExecution) Schema() sql.Schema
- func (te *TriggerExecution) String() string
- func (te *TriggerExecution) WithChildren(children ...sql.Node) (sql.Node, error)
- func (te *TriggerExecution) WithExpressions(expressions ...sql.Expression) (sql.Node, error)
- type TriggerExecutionRowHandling
Constants ¶
This section is empty.
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 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 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() 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
func (c *AlterSequence) WithResolvedChildren(children []any) (any, error)
WithResolvedChildren implements the interface vitess.Injectable.
type AlterSequenceOwnedBy ¶ added in v0.52.2
AlterSequenceOwnedBy is an option in AlterSequence to represent OWNED BY.
type Call ¶ added in v0.52.3
type Call struct {
SchemaName string
ProcedureName string
Exprs []sql.Expression
Runner pgexprs.StatementRunner
// 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 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) 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.ExecSourceRel.
func (*ContextRootFinalizer) DebugString ¶
func (rf *ContextRootFinalizer) DebugString() string
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) 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 ¶
WithChildren implements the interface sql.ExecSourceRel.
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 CreateDomain ¶ added in v0.14.0
type CreateDomain struct {
SchemaName string
Name string
AsType *types.DoltgresType
Collation string
HasDefault bool
DefaultExpr sql.Expression
IsNotNull bool
CheckConstraintNames []string
CheckConstraints sql.CheckConstraints
}
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() 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) WithResolvedChildren ¶ added in v0.14.0
func (c *CreateDomain) WithResolvedChildren(children []any) (any, error)
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
Runner pgexprs.StatementRunner
}
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) Expressions ¶ added in v0.51.0
func (c *CreateExtension) Expressions() []sql.Expression
Expressions implements the interface sql.Expressioner.
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() 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) WithExpressions ¶ added in v0.51.0
func (c *CreateExtension) WithExpressions(expressions ...sql.Expression) (sql.Node, error)
WithExpressions implements the interface sql.Expressioner.
func (*CreateExtension) WithResolvedChildren ¶ added in v0.51.0
func (c *CreateExtension) WithResolvedChildren(children []any) (any, error)
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
ParameterNames []string
ParameterTypes []*pgtypes.DoltgresType
Strict bool
Statements []plpgsql.InterpreterOperation
ExtensionName string
ExtensionSymbol string
Definition string
SqlDef string
SqlDefParsed 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, paramNames []string, paramTypes []*pgtypes.DoltgresType, strict bool, definition string, extensionName string, extensionSymbol string, statements []plpgsql.InterpreterOperation, sqlDef string, sqlDefParsed 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() 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
func (c *CreateFunction) WithResolvedChildren(children []any) (any, error)
WithResolvedChildren implements the interface vitess.Injectable.
type CreateProcedure ¶ added in v0.52.3
type CreateProcedure struct {
ProcedureName string
SchemaName string
Replace bool
ParameterNames []string
ParameterTypes []*pgtypes.DoltgresType
ParameterModes []procedures.ParameterMode
Statements []plpgsql.InterpreterOperation
ExtensionName string
ExtensionSymbol string
Definition string
SqlDef string
SqlDefParsed vitess.Statement
}
CreateProcedure implements CREATE PROCEDURE.
func NewCreateProcedure ¶ added in v0.52.3
func NewCreateProcedure( procedureName string, schemaName string, replace bool, paramNames []string, paramTypes []*pgtypes.DoltgresType, paramModes []procedures.ParameterMode, definition string, extensionName string, extensionSymbol string, statements []plpgsql.InterpreterOperation, sqlDef string, sqlDefParsed 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() 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
func (c *CreateProcedure) WithResolvedChildren(children []any) (any, error)
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() 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
func (c *CreateRole) WithResolvedChildren(children []any) (any, error)
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() 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 ¶
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) Children ¶
func (c *CreateTable) Children() []sql.Node
Children implements the interface sql.ExecSourceRel.
func (*CreateTable) DebugString ¶ added in v0.17.0
func (c *CreateTable) DebugString() 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.ExecSourceRel.
func (*CreateTable) Resolved ¶
func (c *CreateTable) Resolved() bool
Resolved 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) TargetSchema ¶ added in v0.17.0
func (c *CreateTable) TargetSchema() sql.Schema
func (*CreateTable) WithChildren ¶
WithChildren implements the interface sql.ExecSourceRel.
func (*CreateTable) WithExpressions ¶ added in v0.18.0
func (c *CreateTable) WithExpressions(expression ...sql.Expression) (sql.Node, error)
WithExpressions implements the sql.Expressioner interface.
func (CreateTable) WithTargetSchema ¶ added in v0.17.0
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() 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
func (c *CreateTrigger) WithResolvedChildren(children []any) (any, error)
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() 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
func (c *CreateType) WithResolvedChildren(children []any) (any, error)
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() 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
func (d DiscardStatement) WithResolvedChildren(children []any) (any, error)
WithResolvedChildren implements the interface vitess.Injectable.
type DomainColumn ¶ added in v0.14.0
type DomainColumn struct {
Typ *types.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() 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() sql.Type
Type implements the interface sql.Expression.
func (*DomainColumn) WithChildren ¶ added in v0.14.0
func (d *DomainColumn) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements the interface sql.Expression.
func (*DomainColumn) WithResolvedChildren ¶ added in v0.14.0
func (d *DomainColumn) WithResolvedChildren(children []any) (any, error)
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() 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
func (c *DropDomain) WithResolvedChildren(children []any) (any, error)
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() 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
func (c *DropExtension) WithResolvedChildren(children []any) (any, error)
WithResolvedChildren implements the interface vitess.Injectable.
type DropFunction ¶ added in v0.18.0
type DropFunction struct {
// contains filtered or unexported fields
}
DropFunction implements DROP FUNCTION.
func NewDropFunction ¶ added in v0.18.0
func NewDropFunction(ifExists bool, routinesWithArgs []tree.RoutineWithArgs, 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() 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
func (d *DropFunction) WithResolvedChildren(children []any) (any, error)
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() 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 ¶
func (c *DropSequence) WithResolvedChildren(children []any) (any, error)
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) IsReadOnly ¶ added in v0.14.0
IsReadOnly implements the interface sql.ExecSourceRel.
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 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() 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() sql.Type
Type implements the interface sql.Expression.
func (*FunctionColumn) WithChildren ¶ added in v0.52.1
func (f *FunctionColumn) WithChildren(children ...sql.Expression) (sql.Expression, error)
WithChildren implements the interface sql.Expression.
func (*FunctionColumn) WithResolvedChildren ¶ added in v0.52.1
func (f *FunctionColumn) WithResolvedChildren(children []any) (any, error)
WithResolvedChildren implements the interface vitess.Injectable.
type Grant ¶ added in v0.14.0
type Grant struct {
GrantTable *GrantTable
GrantSchema *GrantSchema
GrantDatabase *GrantDatabase
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 GrantSchema ¶ added in v0.15.0
GrantSchema specifically handles the GRANT ... ON SCHEMA statement.
type GrantTable ¶ added in v0.14.0
GrantTable specifically handles the GRANT ... ON TABLE statement.
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 Revoke ¶ added in v0.14.0
type Revoke struct {
RevokeTable *RevokeTable
RevokeSchema *RevokeSchema
RevokeDatabase *RevokeDatabase
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 RevokeSchema ¶ added in v0.15.0
RevokeSchema specifically handles the REVOKE ... ON SCHEMA statement.
type RevokeTable ¶ added in v0.14.0
RevokeTable specifically handles the REVOKE ... ON TABLE statement.
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() 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
func (s *ShowSchemas) WithResolvedChildren(children []any) (any, error)
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() 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
func (s *ShowSequences) WithResolvedChildren(children []any) (any, error)
WithResolvedChildren implements the interface vitess.InjectedStatement.
type TriggerExecution ¶ added in v0.50.1
type TriggerExecution struct {
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
}
TriggerExecution handles the execution of a set of triggers on a table.
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.ExecSourceRel.
func (*TriggerExecution) Resolved ¶ added in v0.50.1
func (te *TriggerExecution) Resolved() bool
Resolved implements the interface sql.ExecSourceRel.
func (*TriggerExecution) RowIter ¶ added in v0.50.1
RowIter implements the interface sql.ExecSourceRel.
func (*TriggerExecution) Schema ¶ added in v0.50.1
func (te *TriggerExecution) Schema() sql.Schema
Schema implements the interface sql.ExecSourceRel.
func (*TriggerExecution) String ¶ added in v0.50.1
func (te *TriggerExecution) String() string
String implements the interface sql.ExecSourceRel.
func (*TriggerExecution) WithChildren ¶ added in v0.50.1
WithChildren implements the interface sql.ExecSourceRel.
func (*TriggerExecution) WithExpressions ¶ added in v0.50.1
func (te *TriggerExecution) WithExpressions(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 )
Source Files
¶
- alter_role.go
- alter_sequence.go
- call.go
- context_root_finalizer.go
- copy_from.go
- create_domain.go
- create_extension.go
- create_function.go
- create_procedure.go
- create_role.go
- create_sequence.go
- create_table.go
- create_trigger.go
- create_type.go
- discard.go
- drop_domain.go
- drop_extension.go
- drop_function.go
- drop_role.go
- drop_sequence.go
- drop_table.go
- drop_type.go
- grant.go
- no_op.go
- revoke.go
- show_schemas.go
- show_sequences.go
- trigger_execution.go