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

Function Parse

schema/parse.go:715–717  ·  view source on GitHub ↗

Parse parses the schema with namespace preserved. For the types/predicates for which the namespace is not specified, it uses default.

(s string)

Source from the content-addressed store, hash-verified

713// Parse parses the schema with namespace preserved. For the types/predicates for which the
714// namespace is not specified, it uses default.
715func Parse(s string) (*ParsedSchema, error) {
716 return parse(s, math.MaxUint64)
717}
718
719// ParseWithNamespace parses the schema and forces the given namespace on each of the
720// type/predicate.

Callers 15

authorizeAlterFunction · 0.92
TestCheckSchemaFunction · 0.92
checkExportSchemaFunction · 0.92
TestParseFunction · 0.70
TestParse2Function · 0.70
TestParse3_ErrorFunction · 0.70
TestParse4_ErrorFunction · 0.70
TestParse4_NoErrorFunction · 0.70
TestParse5_ErrorFunction · 0.70
TestParse6_ErrorFunction · 0.70
TestParse7_ErrorFunction · 0.70
TestParse8_ErrorFunction · 0.70

Calls 1

parseFunction · 0.85

Tested by 15

TestCheckSchemaFunction · 0.74
checkExportSchemaFunction · 0.74
TestParseFunction · 0.56
TestParse2Function · 0.56
TestParse3_ErrorFunction · 0.56
TestParse4_ErrorFunction · 0.56
TestParse4_NoErrorFunction · 0.56
TestParse5_ErrorFunction · 0.56
TestParse6_ErrorFunction · 0.56
TestParse7_ErrorFunction · 0.56
TestParse8_ErrorFunction · 0.56
TestParse9_ErrorFunction · 0.56