meta

package
v0.0.0-...-6c7ef32 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2019 License: Apache-2.0 Imports: 4 Imported by: 3

Documentation

Index

Constants

View Source
const (
	// SchemaMetaPrefix is the prefix for database meta key prefix.
	SchemaMetaPrefix = "mDB:"
	// TableMetaPrefix is the prefix for table meta key prefix.
	TableMetaPrefix = "mTable:"
)

Variables

This section is empty.

Functions

func AutoIDKey

func AutoIDKey(tableID int64) string

AutoIDKey generates table autoID meta key according to tableID.

func DBMetaKey

func DBMetaKey(databaseID int64) string

DBMetaKey generates database meta key according to databaseID.

func GenGlobalID

func GenGlobalID(store kv.Storage) (ID int64, err error)

GenGlobalID generates the next id in the store scope.

func GenID

func GenID(txn kv.Transaction, key []byte, step int) (int64, error)

GenID adds step to the value for key and returns the sum.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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