vtcombo

package
v0.15.1 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2022 License: Apache-2.0 Imports: 32 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateKs added in v0.11.0

func CreateKs(
	ctx context.Context,
	ts *topo.Server,
	tpb *vttestpb.VTTestTopology,
	mysqld mysqlctl.MysqlDaemon,
	dbcfgs *dbconfigs.DBConfigs,
	schemaDir string,
	kpb *vttestpb.Keyspace,
	ensureDatabase bool,
	uid uint32,
	wr *wrangler.Wrangler,
) (uint32, error)

CreateKs creates keyspace, shards and tablets with mysql database

func CreateTablet

func CreateTablet(
	ctx context.Context,
	ts *topo.Server,
	cell string,
	uid uint32,
	keyspace, shard, dbname string,
	tabletType topodatapb.TabletType,
	mysqld mysqlctl.MysqlDaemon,
	dbcfgs *dbconfigs.DBConfigs,
) error

CreateTablet creates an individual tablet, with its tm, and adds it to the map. If it's a primary tablet, it also issues a TER.

func DeleteKs added in v0.11.0

func DeleteKs(
	ctx context.Context,
	ts *topo.Server,
	ksName string,
	mysqld mysqlctl.MysqlDaemon,
	tpb *vttestpb.VTTestTopology,
) error

DeleteKs deletes keyspace, shards and tablets with mysql databases

func InitRoutingRules added in v0.14.0

func InitRoutingRules(
	ctx context.Context,
	ts *topo.Server,
	rr *vschemapb.RoutingRules,
) error

InitRoutingRules saves the routing rules into ts and reloads the vschema.

func InitTabletMap

func InitTabletMap(
	ts *topo.Server,
	tpb *vttestpb.VTTestTopology,
	mysqld mysqlctl.MysqlDaemon,
	dbcfgs *dbconfigs.DBConfigs,
	schemaDir string,
	ensureDatabase bool,
) (uint32, error)

InitTabletMap creates the action tms and associated data structures for all tablets, based on the vttest proto parameter.

Types

This section is empty.

Jump to

Keyboard shortcuts

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