Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database struct {
// contains filtered or unexported fields
}
func NewCustom ¶
func NewCustom(file string, namespace string, customize func(options *opt.Options)) (*Database, error)
NewCustom returns a wrapped LevelDB object. The namespace is the prefix that the datastore. The customize function allows the caller to modify the leveldb options.
func NewFromExistLevelDB ¶
NewFromExistLevelDB returns a wrapped LevelDB object.
func WrapWithNamespace ¶
WrapWithNamespace returns a wrapped LevelDB object. The namespace is the prefix that the datastore.
func (*Database) Close ¶
Close flushes any pending data to disk and closes all io accesses to the underlying key-value store.
Click to show internal directories.
Click to hide internal directories.