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

Function convertRevisionType

backend/api/v1/revision_service.go:369–381  ·  view source on GitHub ↗
(t v1pb.Revision_Type)

Source from the content-addressed store, hash-verified

367}
368
369func convertRevisionType(t v1pb.Revision_Type) storepb.SchemaChangeType {
370 //exhaustive:enforce
371 switch t {
372 case v1pb.Revision_TYPE_UNSPECIFIED:
373 return storepb.SchemaChangeType_SCHEMA_CHANGE_TYPE_UNSPECIFIED
374 case v1pb.Revision_VERSIONED:
375 return storepb.SchemaChangeType_VERSIONED
376 case v1pb.Revision_DECLARATIVE:
377 return storepb.SchemaChangeType_DECLARATIVE
378 default:
379 return storepb.SchemaChangeType_SCHEMA_CHANGE_TYPE_UNSPECIFIED
380 }
381}

Callers 1

convertRevisionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected