txndstransform

package
v1.2.5 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Datastore

type Datastore struct {
	kt.KeyTransform
	ds.Datastore
	// contains filtered or unexported fields
}

Datastore keeps a KeyTransform function.

func Wrap

func Wrap(child ds.TxnDatastore, prefix string) *Datastore

Wrap wraps a TxDatastore with a namespace prefix.

func (*Datastore) NewTransaction

func (d *Datastore) NewTransaction(readOnly bool) (ds.Txn, error)

NewTransaction returns a transaction wrapped by the selected namespace prefix.

Jump to

Keyboard shortcuts

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