ddl

package
v0.1.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlterTablePlan

type AlterTablePlan struct {
	plan.BasePlan

	Shards rule.DatabaseTables
	// contains filtered or unexported fields
}

func NewAlterTablePlan

func NewAlterTablePlan(stmt *ast.AlterTableStatement) *AlterTablePlan

func (*AlterTablePlan) ExecIn

func (at *AlterTablePlan) ExecIn(ctx context.Context, conn proto.VConn) (proto.Result, error)

func (*AlterTablePlan) Type

func (at *AlterTablePlan) Type() proto.PlanType

type CreateIndexPlan

type CreateIndexPlan struct {
	plan.BasePlan

	Shards rule.DatabaseTables
	// contains filtered or unexported fields
}

func NewCreateIndexPlan

func NewCreateIndexPlan(stmt *ast.CreateIndexStatement) *CreateIndexPlan

func (*CreateIndexPlan) ExecIn

func (c *CreateIndexPlan) ExecIn(ctx context.Context, conn proto.VConn) (proto.Result, error)

func (*CreateIndexPlan) SetShard

func (c *CreateIndexPlan) SetShard(shard rule.DatabaseTables)

func (*CreateIndexPlan) Type

func (c *CreateIndexPlan) Type() proto.PlanType

type DropIndexPlan

type DropIndexPlan struct {
	plan.BasePlan
	// contains filtered or unexported fields
}

func NewDropIndexPlan

func NewDropIndexPlan(stmt *ast.DropIndexStatement) *DropIndexPlan

func (*DropIndexPlan) ExecIn

func (d *DropIndexPlan) ExecIn(ctx context.Context, conn proto.VConn) (proto.Result, error)

func (*DropIndexPlan) SetShard

func (d *DropIndexPlan) SetShard(shard rule.DatabaseTables)

func (*DropIndexPlan) Type

func (d *DropIndexPlan) Type() proto.PlanType

type DropTablePlan

type DropTablePlan struct {
	plan.BasePlan
	// contains filtered or unexported fields
}

func NewDropTablePlan

func NewDropTablePlan(stmt *ast.DropTableStatement) *DropTablePlan

func (*DropTablePlan) ExecIn

func (d *DropTablePlan) ExecIn(ctx context.Context, conn proto.VConn) (proto.Result, error)

func (*DropTablePlan) SetShards

func (d *DropTablePlan) SetShards(shardsMap []rule.DatabaseTables)

func (*DropTablePlan) Type

func (d *DropTablePlan) Type() proto.PlanType

type DropTriggerPlan

type DropTriggerPlan struct {
	plan.BasePlan
	Stmt   *ast.DropTriggerStatement
	Shards rule.DatabaseTables
}

func (*DropTriggerPlan) ExecIn

func (d *DropTriggerPlan) ExecIn(ctx context.Context, conn proto.VConn) (proto.Result, error)

func (*DropTriggerPlan) Type

func (d *DropTriggerPlan) Type() proto.PlanType

type TruncatePlan

type TruncatePlan struct {
	plan.BasePlan
	// contains filtered or unexported fields
}

func NewTruncatePlan

func NewTruncatePlan(stmt *ast.TruncateStatement) *TruncatePlan

NewTruncatePlan creates a truncate plan.

func (*TruncatePlan) ExecIn

func (s *TruncatePlan) ExecIn(ctx context.Context, conn proto.VConn) (proto.Result, error)

func (*TruncatePlan) SetShards

func (s *TruncatePlan) SetShards(shards rule.DatabaseTables)

func (*TruncatePlan) Type

func (s *TruncatePlan) Type() proto.PlanType

Jump to

Keyboard shortcuts

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