Versions in this module Expand all Collapse all v0 v0.2.0 Sep 30, 2023 Changes in this version + type AlterTablePlan struct + Shards rule.DatabaseTables + func NewAlterTablePlan(stmt *ast.AlterTableStatement) *AlterTablePlan + func (at *AlterTablePlan) ExecIn(ctx context.Context, conn proto.VConn) (proto.Result, error) + func (at *AlterTablePlan) Type() proto.PlanType + type CheckTablePlan struct + Shards rule.DatabaseTables + ShardsByName map[string]rule.DatabaseTables + Stmt *ast.CheckTableStmt + func NewCheckTablePlan(stmt *ast.CheckTableStmt, shards rule.DatabaseTables, ...) *CheckTablePlan + func (c *CheckTablePlan) ExecIn(ctx context.Context, conn proto.VConn) (proto.Result, error) + func (c *CheckTablePlan) Type() proto.PlanType + type CreateIndexPlan struct + Shards rule.DatabaseTables + func NewCreateIndexPlan(stmt *ast.CreateIndexStatement) *CreateIndexPlan + func (c *CreateIndexPlan) ExecIn(ctx context.Context, conn proto.VConn) (proto.Result, error) + func (c *CreateIndexPlan) SetShard(shard rule.DatabaseTables) + func (c *CreateIndexPlan) Type() proto.PlanType + type CreateTablePlan struct + Database string + Stmt *ast.CreateTableStmt + Tables []string + func NewCreateTablePlan(stmt *ast.CreateTableStmt, db string, tb []string) *CreateTablePlan + func (c *CreateTablePlan) ExecIn(ctx context.Context, conn proto.VConn) (proto.Result, error) + func (c *CreateTablePlan) Type() proto.PlanType + type DropIndexPlan struct + func NewDropIndexPlan(stmt *ast.DropIndexStatement) *DropIndexPlan + func (d *DropIndexPlan) ExecIn(ctx context.Context, conn proto.VConn) (proto.Result, error) + func (d *DropIndexPlan) SetShard(shard rule.DatabaseTables) + func (d *DropIndexPlan) Type() proto.PlanType + type DropTablePlan struct + func NewDropTablePlan(stmt *ast.DropTableStatement) *DropTablePlan + func (d *DropTablePlan) ExecIn(ctx context.Context, conn proto.VConn) (proto.Result, error) + func (d *DropTablePlan) SetShards(shardsMap []rule.DatabaseTables) + func (d *DropTablePlan) Type() proto.PlanType + type DropTriggerPlan struct + Shards rule.DatabaseTables + Stmt *ast.DropTriggerStatement + func (d *DropTriggerPlan) ExecIn(ctx context.Context, conn proto.VConn) (proto.Result, error) + func (d *DropTriggerPlan) Type() proto.PlanType + type OptimizeTablePlan struct + Shards rule.DatabaseTables + ShardsByName map[string]rule.DatabaseTables + Stmt *ast.OptimizeTableStatement + func NewOptimizeTablePlan(stmt *ast.OptimizeTableStatement, shards rule.DatabaseTables, ...) *OptimizeTablePlan + func (a *OptimizeTablePlan) ExecIn(ctx context.Context, conn proto.VConn) (proto.Result, error) + func (a *OptimizeTablePlan) Type() proto.PlanType + type RenameTablePlan struct + Shards rule.DatabaseTables + ShardsByName map[string]rule.DatabaseTables + Stmt *ast.RenameTableStatement + func NewRenameTablePlan(stmt *ast.RenameTableStatement, shards rule.DatabaseTables, ...) *RenameTablePlan + func (d *RenameTablePlan) ExecIn(ctx context.Context, conn proto.VConn) (proto.Result, error) + func (d *RenameTablePlan) Type() proto.PlanType + type RepairTablePlan struct + Shards rule.DatabaseTables + ShardsByName map[string]rule.DatabaseTables + Stmt *ast.RepairTableStmt + func NewRepairTablePlan(stmt *ast.RepairTableStmt, shards rule.DatabaseTables, ...) *RepairTablePlan + func (c *RepairTablePlan) ExecIn(ctx context.Context, conn proto.VConn) (proto.Result, error) + func (c *RepairTablePlan) Type() proto.PlanType + type SetVariablePlan struct + Stmt *ast.SetStatement + func (d *SetVariablePlan) ExecIn(ctx context.Context, conn proto.VConn) (proto.Result, error) + func (d *SetVariablePlan) Type() proto.PlanType + type TruncatePlan struct + func NewTruncatePlan(stmt *ast.TruncateStatement) *TruncatePlan + func (s *TruncatePlan) ExecIn(ctx context.Context, conn proto.VConn) (proto.Result, error) + func (s *TruncatePlan) SetShards(shards rule.DatabaseTables) + func (s *TruncatePlan) Type() proto.PlanType v0.1.0-rc1 Sep 1, 2022