MCPcopy
hub / github.com/dgraph-io/dgraph / TypeExportKv

Function TypeExportKv

worker/export.go:961–967  ·  view source on GitHub ↗
(attr string, val []byte)

Source from the content-addressed store, hash-verified

959}
960
961func TypeExportKv(attr string, val []byte) (*bpb.KV, error) {
962 var update pb.TypeUpdate
963 if err := proto.Unmarshal(val, &update); err != nil {
964 return nil, err
965 }
966 return toType(attr, update), nil
967}
968
969// Export request is used to trigger exports for the request list of groups.
970// If a server receives request to export a group that it doesn't handle, it would

Callers 2

exportSchemaFunction · 0.92
exportInternalFunction · 0.85

Calls 1

toTypeFunction · 0.85

Tested by

no test coverage detected