schema

package
v83.0.0-...-38e0eed Latest Latest
Warning

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

Go to latest
Published: Oct 12, 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

func Init(ps *badger.KV)

func LoadFromDb

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

func State() *stateGroup

SateFor returns the schema for given group

Types

type SyncEntry

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