MCPcopy Index your code
hub / github.com/bytebase/bytebase / kindLabel

Function kindLabel

backend/plugin/parser/pg/query_span_loader.go:127–143  ·  view source on GitHub ↗
(k objectKind)

Source from the content-addressed store, hash-verified

125}
126
127func kindLabel(k objectKind) string {
128 switch k {
129 case kindSchema:
130 return "0schema"
131 case kindEnum:
132 return "1enum"
133 case kindTable:
134 return "2table"
135 case kindView:
136 return "3view"
137 case kindMatView:
138 return "4matview"
139 case kindFunction:
140 return "5function"
141 }
142 return "9unknown"
143}
144
145// newCatalogLoader returns a loader primed for Load(). It does not touch the
146// catalog until Load() is called.

Callers 1

sortKeyMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected