package
3.0.0-rc.3+incompatible
Repository: https://github.com/vitessio/vitess.git
Documentation: pkg.go.dev

# Functions

DbPermissionPrimaryKey returns the sorting key for a DbPermission.
DbPermissionString pretty-prints a DbPermission.
DiffPermissions records the errors between two permission sets.
DiffPermissionsToArray difs two sets of permissions, and returns the difference.
DiffSchema generates a report on what's different between two SchemaDefinitions including views.
DiffSchemaToArray diffs two schemas and return the schema diffs if there is any.
FilterTables returns a copy which includes only whitelisted tables (tables), no blacklisted tables (excludeTables) and optionally views (includeViews).
GenerateSchemaVersion return a unique schema version string based on its TableDefinitions.
NewDbPermission is a helper method to create a tabletmanagerdatapb.DbPermission.
NewUserPermission is a helper method to create a tabletmanagerdatapb.UserPermission.
PermissionsString pretty-prints Permissions.
SchemaDefinitionGetTable returns TableDefinition for a given table name.
SchemaDefinitionToSQLStrings converts a SchemaDefinition to an array of SQL strings.
TableDefinitionGetColumn returns the index of a column inside a TableDefinition.
UserPermissionPrimaryKey returns the sorting key for a UserPermission.
UserPermissionString pretty-prints a UserPermission.

# Constants

TableBaseTable indicates the table type is a base table.
TableView indicates the table type is a view.

# Structs

SchemaChange contains all necessary information to apply a schema change.

# Type aliases

TableDefinitions is a list of TableDefinition, for sorting.