vschemawrapper

package
v0.19.4 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type VSchemaWrapper

type VSchemaWrapper struct {
	V                     *vindexes.VSchema
	Keyspace              *vindexes.Keyspace
	TabletType_           topodatapb.TabletType
	Dest                  key.Destination
	SysVarEnabled         bool
	ForeignKeyChecksState *bool
	Version               plancontext.PlannerVersion
	EnableViews           bool
	TestBuilder           func(query string, vschema plancontext.VSchema, keyspace string) (*engine.Plan, error)
	Env                   *vtenv.Environment
}

func (*VSchemaWrapper) AllKeyspace

func (vw *VSchemaWrapper) AllKeyspace() ([]*vindexes.Keyspace, error)

func (*VSchemaWrapper) AnyKeyspace

func (vw *VSchemaWrapper) AnyKeyspace() (*vindexes.Keyspace, error)

func (*VSchemaWrapper) ClearPrepareData

func (vw *VSchemaWrapper) ClearPrepareData(string)

func (*VSchemaWrapper) ConnCollation

func (vw *VSchemaWrapper) ConnCollation() collations.ID

func (*VSchemaWrapper) CurrentDb

func (vw *VSchemaWrapper) CurrentDb() string

func (*VSchemaWrapper) DefaultKeyspace

func (vw *VSchemaWrapper) DefaultKeyspace() (*vindexes.Keyspace, error)

func (*VSchemaWrapper) Destination

func (vw *VSchemaWrapper) Destination() key.Destination

func (*VSchemaWrapper) Environment added in v0.19.0

func (vw *VSchemaWrapper) Environment() *vtenv.Environment

func (*VSchemaWrapper) ErrorIfShardedF

func (vw *VSchemaWrapper) ErrorIfShardedF(keyspace *vindexes.Keyspace, _, errFmt string, params ...any) error

func (*VSchemaWrapper) FindKeyspace

func (vw *VSchemaWrapper) FindKeyspace(keyspace string) (*vindexes.Keyspace, error)

FindKeyspace implements the VSchema interface

func (*VSchemaWrapper) FindRoutedShard

func (vw *VSchemaWrapper) FindRoutedShard(keyspace, shard string) (string, error)

func (*VSchemaWrapper) FindTable

func (*VSchemaWrapper) FindView

func (*VSchemaWrapper) FirstSortedKeyspace

func (vw *VSchemaWrapper) FirstSortedKeyspace() (*vindexes.Keyspace, error)

func (*VSchemaWrapper) ForeignKeyMode

func (vw *VSchemaWrapper) ForeignKeyMode(keyspace string) (vschemapb.Keyspace_ForeignKeyMode, error)

func (*VSchemaWrapper) GetForeignKeyChecksState added in v0.19.0

func (vw *VSchemaWrapper) GetForeignKeyChecksState() *bool

func (*VSchemaWrapper) GetPrepareData

func (vw *VSchemaWrapper) GetPrepareData(stmtName string) *vtgatepb.PrepareData

func (*VSchemaWrapper) GetSemTable

func (vw *VSchemaWrapper) GetSemTable() *semantics.SemTable

func (*VSchemaWrapper) GetSrvVschema

func (vw *VSchemaWrapper) GetSrvVschema() *vschemapb.SrvVSchema

func (*VSchemaWrapper) GetUDV

func (vw *VSchemaWrapper) GetUDV(name string) *querypb.BindVariable

func (*VSchemaWrapper) GetVSchema

func (vw *VSchemaWrapper) GetVSchema() *vindexes.VSchema

func (*VSchemaWrapper) IsShardRoutingEnabled

func (vw *VSchemaWrapper) IsShardRoutingEnabled() bool

func (*VSchemaWrapper) IsViewsEnabled

func (vw *VSchemaWrapper) IsViewsEnabled() bool

func (*VSchemaWrapper) KeyspaceError added in v0.19.0

func (vw *VSchemaWrapper) KeyspaceError(keyspace string) error

func (*VSchemaWrapper) KeyspaceExists

func (vw *VSchemaWrapper) KeyspaceExists(keyspace string) bool

func (*VSchemaWrapper) PlanPrepareStatement

func (vw *VSchemaWrapper) PlanPrepareStatement(ctx context.Context, query string) (*engine.Plan, sqlparser.Statement, error)

func (*VSchemaWrapper) Planner

func (*VSchemaWrapper) PlannerWarning

func (vw *VSchemaWrapper) PlannerWarning(_ string)

func (*VSchemaWrapper) SetPlannerVersion

func (vw *VSchemaWrapper) SetPlannerVersion(v plancontext.PlannerVersion)

SetPlannerVersion implements the ContextVSchema interface

func (*VSchemaWrapper) StorePrepareData

func (vw *VSchemaWrapper) StorePrepareData(string, *vtgatepb.PrepareData)

func (*VSchemaWrapper) SysVarSetEnabled

func (vw *VSchemaWrapper) SysVarSetEnabled() bool

func (*VSchemaWrapper) TabletType

func (vw *VSchemaWrapper) TabletType() topodatapb.TabletType

func (*VSchemaWrapper) TargetDestination

func (vw *VSchemaWrapper) TargetDestination(qualifier string) (key.Destination, *vindexes.Keyspace, topodatapb.TabletType, error)

func (*VSchemaWrapper) TargetString

func (vw *VSchemaWrapper) TargetString() string

func (*VSchemaWrapper) WarnUnshardedOnly

func (vw *VSchemaWrapper) WarnUnshardedOnly(_ string, _ ...any)

Jump to

Keyboard shortcuts

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