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

Function convertStatementTypesToV1

backend/api/v1/plan_service.go:1301–1307  ·  view source on GitHub ↗
(storeTypes []storepb.StatementType)

Source from the content-addressed store, hash-verified

1299}
1300
1301func convertStatementTypesToV1(storeTypes []storepb.StatementType) []v1pb.StatementType {
1302 result := make([]v1pb.StatementType, len(storeTypes))
1303 for i, t := range storeTypes {
1304 result[i] = v1pb.StatementType(t)
1305 }
1306 return result
1307}
1308
1309func convertToPlanCheckRunResultStatus(status storepb.Advice_Status) v1pb.Advice_Level {
1310 switch status {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected