schema

package
v0.8.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 9, 2017 License: AGPL-3.0, Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init added in v0.7.3

func Init(ps *badger.KV)

func LoadFromDb added in v0.7.3

func LoadFromDb() error

LoadFromDb reads schema information from db and stores it in memory

func Parse

func Parse(s string) ([]*protos.SchemaUpdate, error)

Parse parses a schema string and returns the schema representation for it.

func ParseBytes

func ParseBytes(s []byte, gid uint32) (rerr error)

ParseBytes parses the byte array which holds the schema. We will reset all the globals. Overwrites schema blindly - called only during initilization in testing

func State added in v0.7.3

func State() *stateGroup

SateFor returns the schema for given group

Types

type SyncEntry added in v0.7.3

type SyncEntry struct {
	Attr   string
	Schema protos.SchemaUpdate
	Water  *x.WaterMark
	Index  uint64
}

SyncEntry stores the schema mutation information

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL