Documentation ¶
Index ¶
- Constants
- Variables
- type Column
- type DataType
- type Manager
- type Schema
- type Table
- func (t *Table) AddColumn(name string, tokenType scanner.TokenType) error
- func (t *Table) Equal(other *Table) bool
- func (t *Table) GetColumn(name string) *Column
- func (t *Table) Key() string
- func (t *Table) Prefix() *keys.Key
- func (t *Table) PrefixEnd() *keys.Key
- func (t *Table) Value() ([]byte, error)
Constants ¶
View Source
const MetaTableName = "__schema__"
Meta Table Name
View Source
const NAME_VALIDATION_REGEXP = "[A-z0-9_]"
View Source
const SchemaTableName = "__schema__"
Variables ¶
View Source
var CATALOG_KEYS_END = CATALOG_KEYS_PREFIX.Next()
View Source
var CATALOG_KEYS_PREFIX = keys.New("__tables")
System Table Keys
View Source
var ErrDropMetaTable = errors.New("cannot drop meta table")
Custom error for dropping the Meta table.
View Source
var ErrNilColumns = errors.New("nil columns passed into NewTable")
View Source
var MetaTable = &Table{ Name: MetaTableName, Columns: []*Column{ { Name: "name", DataType: STRING, }, }, PrimaryKey: []string{"name"}, }
View Source
var ReservedInternalKeyName = "___zkey"
Functions ¶
This section is empty.
Types ¶
type Column ¶
type Manager ¶
Manager is responsible for holding the entire schema as well as keeping it in sync with the underlying data store.
func (*Manager) LoadSchema ¶
type Schema ¶
func SchemaFromBytes ¶
type Table ¶
func NewTableFromBytes ¶
Click to show internal directories.
Click to hide internal directories.