MCPcopy Create free account
hub / github.com/bytebase/bytebase / isCurrentDatabase

Function isCurrentDatabase

backend/plugin/schema/tidb/walk_through.go:1414–1416  ·  view source on GitHub ↗

isCurrentDatabase returns true if the given database is the current database.

(d *model.DatabaseMetadata, database string)

Source from the content-addressed store, hash-verified

1412
1413// isCurrentDatabase returns true if the given database is the current database.
1414func isCurrentDatabase(d *model.DatabaseMetadata, database string) bool {
1415 return compareIdentifier(d.DatabaseName(), database, !d.GetIsObjectCaseSensitive())
1416}

Callers 8

tidbTargetDatabaseFunction · 0.70
tidbMoveToOtherDatabaseFunction · 0.70
tidbTheCurrentDatabaseFunction · 0.70
tidbDropDatabaseFunction · 0.70
tidbAlterDatabaseFunction · 0.70
tidbFindTableStateFunction · 0.70
tidbDropTableFunction · 0.70
tidbCreateTableFunction · 0.70

Calls 3

compareIdentifierFunction · 0.85
DatabaseNameMethod · 0.80

Tested by

no test coverage detected