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

Function logUpdate

schema/schema.go:174–185  ·  view source on GitHub ↗
(schema *pb.SchemaUpdate, pred string)

Source from the content-addressed store, hash-verified

172}
173
174func logUpdate(schema *pb.SchemaUpdate, pred string) string {
175 if schema == nil {
176 return ""
177 }
178
179 typ := types.TypeID(schema.ValueType).Name()
180 if schema.List {
181 typ = fmt.Sprintf("[%s]", typ)
182 }
183 return fmt.Sprintf("Setting schema for attr %s: %v, tokenizer: %v, directive: %v, count: %v\n",
184 pred, typ, schema.Tokenizer, schema.Directive, schema.Count)
185}
186
187func logTypeUpdate(typ *pb.TypeUpdate, typeName string) string {
188 return fmt.Sprintf("Setting type definition for type %s: %v\n", typeName, typ)

Callers 2

SetMethod · 0.85
LoadFunction · 0.85

Calls 2

TypeIDTypeAlias · 0.92
NameMethod · 0.65

Tested by

no test coverage detected