Documentation ¶
Index ¶
- func ApplySchemaChanges(ctx context.Context, rwt datastore.ReadWriteTransaction, ...) (*shared.AppliedSchemaChanges, *shared.ErrSchemaWriteDataValidation, error)
- func ValidateSchemaChanges(ctx context.Context, compiled *compiler.CompiledSchema, isAdditiveOnly bool) (*shared.ValidatedSchemaChanges, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplySchemaChanges ¶
func ApplySchemaChanges( ctx context.Context, rwt datastore.ReadWriteTransaction, validated *shared.ValidatedSchemaChanges, existingCaveats []*core.CaveatDefinition, existingObjectDefs []*core.NamespaceDefinition, ) (*shared.AppliedSchemaChanges, *shared.ErrSchemaWriteDataValidation, error)
ApplySchemaChanges applies schema changes found in the validated changes struct, via the specified ReadWriteTransaction. Returns the applied changes, the validation error (if any), and the error itself (if any).
func ValidateSchemaChanges ¶
func ValidateSchemaChanges(ctx context.Context, compiled *compiler.CompiledSchema, isAdditiveOnly bool) (*shared.ValidatedSchemaChanges, error)
ValidateSchemaChanges validates the schema found in the compiled schema and returns a ValidatedSchemaChanges, if fully validated.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.