package
23.1.1+incompatible
Repository: https://github.com/dgraph-io/dgraph.git
Documentation: pkg.go.dev

# Functions

CompleteInitialSchema returns all the schema updates regardless of the worker options.
CompleteInitialTypes returns all the type updates regardless of the worker options.
GetIndexingPredicates returns the list of predicates for which we are building indexes.
GetWriteContext returns a context that sets the schema context for writing.
Init resets the schema state, setting the underlying DB to the given pointer.
InitialSchema returns the schema updates to insert at the beginning of Dgraph's execution.
InitialTypes returns the type updates to insert at the beginning of Dgraph's execution.
IsPreDefPredChanged returns true if the initial update for the pre-defined predicate is different than the passed update.
IsPreDefTypeChanged returns true if the initial update for the pre-defined type is different than the passed update.
Load reads the latest schema for the given predicate from the DB.
LoadFromDb reads schema information from db and stores it in memory.
Parse parses the schema with namespace preserved.
ParseBytes parses the byte array which holds the schema.
ParseWithNamespace parses the schema and forces the given namespace on each of the type/predicate.
State returns the struct holding the current schema.

# Structs

ParsedSchema represents the parsed schema and type updates.