schema

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2017 License: Apache-2.0 Imports: 8 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 *store.Store, file string) error

func LoadFromDb added in v0.7.3

func LoadFromDb() error

LoadFromDb reads schema information from db and stores it in memory

func ParseBytes

func ParseBytes(schema []byte) (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 ReloadData added in v0.7.3

func ReloadData(file string) error

ReloadData loads schema from file and then later from db

func State added in v0.7.3

func State() *state

State returns the schema state

Types

type SyncEntry added in v0.7.3

type SyncEntry struct {
	Attr   string
	Schema types.Schema
	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