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

Function getObjectID

backend/plugin/schema/mssql/generate_migration.go:1166–1171  ·  view source on GitHub ↗

getObjectID creates a unique identifier for a database object

(schema, name string)

Source from the content-addressed store, hash-verified

1164
1165// getObjectID creates a unique identifier for a database object
1166func getObjectID(schema, name string) string {
1167 if schema == "" {
1168 return name
1169 }
1170 return fmt.Sprintf("%s.%s", schema, name)
1171}
1172
1173// dropViewsInOrder drops views in reverse topological order (dependent views first)
1174func dropViewsInOrder(diff *schema.MetadataDiff, buf *strings.Builder) {

Callers 6

getViewDependenciesFunction · 0.70
dropViewsInOrderFunction · 0.70
createTablesInOrderFunction · 0.70
createViewsInOrderFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected