meta

package
v0.0.0-...-6120cfb Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrKeyNotExists = errors.New("key does not exists")
	ErrUnknownType  = errors.New("unknown type")
	ErrDbExists     = errors.New("db already exists")
)

Functions

func IsErrNotFound

func IsErrNotFound(err error) bool

Types

type Reader

type Reader interface {
	GetDBId(namespace string) (uint64, error)
	GetTableId(did uint64, table string) (uint64, error)
	GetIndexId(tid uint64, index string) (uint64, error)
	GetMatcherId(did uint64, matcher string) (uint64, error)
	GetColumnId(tid uint64, column string) (uint64, error)
}

type ReaderWriter

type ReaderWriter interface {
	Reader
	NewDb(namespace string) (uint64, error)
	NewTable(did uint64, tableName string) (tableId uint64, err error)
	NewIndex(tid uint64, indexName string) (indexId uint64, err error)
	NewMatcher(did uint64, matcher string) (matcherId uint64, err error)
	NewColumn(tid uint64, column string) (columnId uint64, err error)

	CommitAt(commitTs uint64) error
	Rollback()
}

func NewInMemMeta

func NewInMemMeta(index index.Txn[any]) ReaderWriter

Jump to

Keyboard shortcuts

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