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

Function convertV1ColumnCatalog

backend/api/v1/database_catalog_service.go:332–340  ·  view source on GitHub ↗
(c *v1pb.ColumnCatalog)

Source from the content-addressed store, hash-verified

330}
331
332func convertV1ColumnCatalog(c *v1pb.ColumnCatalog) *storepb.ColumnCatalog {
333 return &storepb.ColumnCatalog{
334 Name: c.Name,
335 SemanticType: c.SemanticType,
336 Labels: c.Labels,
337 Classification: c.Classification,
338 ObjectSchema: convertV1ObjectSchema(c.GetObjectSchema()),
339 }
340}
341
342func convertV1ObjectSchema(objectSchema *v1pb.ObjectSchema) *storepb.ObjectSchema {
343 if objectSchema == nil {

Callers 1

convertV1TableCatalogFunction · 0.85

Calls 2

convertV1ObjectSchemaFunction · 0.85
GetObjectSchemaMethod · 0.45

Tested by

no test coverage detected