txndswrap

package
v0.1.14 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2022 License: MIT Imports: 6 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 {
	ds.Datastore
	kt.KeyTransform
	// contains filtered or unexported fields
}

Datastore keeps a KeyTransform function.

func Wrap

func Wrap(child 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.

func (*Datastore) NewTransactionExtended

func (d *Datastore) NewTransactionExtended(readOnly bool) (dse.TxnExt, error)

NewTransactionExtended returns an extended transaction wrapped by the selected namespace prefix.

func (*Datastore) QueryExtended

func (d *Datastore) QueryExtended(q dse.QueryExt) (dsq.Results, error)

QueryExtended queries the selected namespace prefix with extensions.

type TxnDatastore

type TxnDatastore interface {
	ds.TxnDatastore
	dse.DatastoreExtensions
}

TxnDatastore adds QueryExtensions to TxnDatastore.

Jump to

Keyboard shortcuts

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