Back to godoc.org
github.com/pingcap/tidb/store

package store

v1.1.0 (3a4e733)
Latest Go to latest
Published: today | License: Apache-2.0 | Module: github.com/pingcap/tidb

Index

func New

func New(path string) (kv.Storage, error)

New creates a kv Storage with path.

The path must be a URL format 'engine://path?params' like the one for session.Open() but with the dbname cut off. Examples:

goleveldb://relative/path
boltdb:///absolute/path

The engine should be registered before creating storage.

func Register

func Register(name string, driver kv.Driver) error

Register registers a kv storage with unique name and its associated Driver.

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
f or F : Jump to identifier