...

Package shape_registry

import "bitbucket.org/twicedb/twicedb-go/client/shape_registry"
Overview
Index

Overview ▾

Package shape_registry defines the ShapeRegistry that allows the TwiceDB client to modify object schemas.

func ProcessJsonForRead

func ProcessJsonForRead(fqn shared.Fqn, j []byte) ([]byte, error)

Add missing AddableFields to read json. Remove found RemovableFields from read json.

func RegisterAddableField

func RegisterAddableField(fqn shared.Fqn, aField *cshared.AddableField) error

func RegisterRemovableField

func RegisterRemovableField(fqn shared.Fqn, fieldName cshared.FieldName) error