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

Function sortedMapKeys

backend/plugin/schema/pg/metadata_migration.go:439–446  ·  view source on GitHub ↗
(items map[string]T)

Source from the content-addressed store, hash-verified

437}
438
439func sortedMapKeys[T any](items map[string]T) []string {
440 keys := make([]string, 0, len(items))
441 for key := range items {
442 keys = append(keys, key)
443 }
444 slices.Sort(keys)
445 return keys
446}
447
448func writeDropTableTriggers(out *strings.Builder, diff *schema.MetadataDiff) error {
449 for _, tableDiff := range diff.TableChanges {

Calls

no outgoing calls

Tested by

no test coverage detected