schema

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 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.ManagedDB)

func Load

func Load(predicate string) error

func LoadFromDb

func LoadFromDb() error

LoadFromDb reads schema information from db and stores it in memory

func Parse

func Parse(s string) ([]*intern.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() *state

SateFor returns the schema for given group

Types

This section is empty.

Jump to

Keyboard shortcuts

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