Versions in this module Expand all Collapse all v0 v0.16.3 Nov 29, 2024 Changes in this version + const TableBaseTable + const TableView + func DbPermissionPrimaryKey(dp *tabletmanagerdatapb.DbPermission) string + func DbPermissionString(dp *tabletmanagerdatapb.DbPermission) string + func DiffPermissions(leftName string, left *tabletmanagerdatapb.Permissions, rightName string, ...) + func DiffPermissionsToArray(leftName string, left *tabletmanagerdatapb.Permissions, rightName string, ...) (result []string) + func DiffSchema(leftName string, left *tabletmanagerdatapb.SchemaDefinition, rightName string, ...) + func DiffSchemaToArray(leftName string, left *tabletmanagerdatapb.SchemaDefinition, rightName string, ...) (result []string) + func FilterTables(sd *tabletmanagerdatapb.SchemaDefinition, tables, excludeTables []string, ...) (*tabletmanagerdatapb.SchemaDefinition, error) + func GenerateSchemaVersion(sd *tabletmanagerdatapb.SchemaDefinition) + func NewDbPermission(fields []*querypb.Field, values []sqltypes.Value) *tabletmanagerdatapb.DbPermission + func NewUserPermission(fields []*querypb.Field, values []sqltypes.Value) *tabletmanagerdatapb.UserPermission + func PermissionsString(permissions *tabletmanagerdatapb.Permissions) string + func SchemaDefinitionGetTable(sd *tabletmanagerdatapb.SchemaDefinition, table string) (td *tabletmanagerdatapb.TableDefinition, ok bool) + func SchemaDefinitionToSQLStrings(sd *tabletmanagerdatapb.SchemaDefinition) []string + func TableDefinitionGetColumn(td *tabletmanagerdatapb.TableDefinition, name string) (index int, ok bool) + func UserPermissionPrimaryKey(up *tabletmanagerdatapb.UserPermission) string + func UserPermissionString(up *tabletmanagerdatapb.UserPermission) string + type SchemaChange struct + AfterSchema *tabletmanagerdatapb.SchemaDefinition + AllowReplication bool + BeforeSchema *tabletmanagerdatapb.SchemaDefinition + Force bool + SQL string + func (s *SchemaChange) Equal(s2 *SchemaChange) bool + type TableDefinitions []*tabletmanagerdatapb.TableDefinition + func (tds TableDefinitions) Len() int + func (tds TableDefinitions) Swap(i, j int)