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

Function hasCreateViews

backend/plugin/schema/mssql/generate_migration.go:1469–1476  ·  view source on GitHub ↗
(diff *schema.MetadataDiff)

Source from the content-addressed store, hash-verified

1467}
1468
1469func hasCreateViews(diff *schema.MetadataDiff) bool {
1470 for _, viewDiff := range diff.ViewChanges {
1471 if viewDiff.Action == schema.MetadataDiffActionCreate || viewDiff.Action == schema.MetadataDiffActionAlter {
1472 return true
1473 }
1474 }
1475 return false
1476}
1477
1478func hasCreateFunctions(diff *schema.MetadataDiff) bool {
1479 for _, funcDiff := range diff.FunctionChanges {

Callers 1

generateMigrationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected