keytransform

package
v1.1.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2021 License: MIT Imports: 4 Imported by: 6

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 WrapTxnDatastore

func WrapTxnDatastore(child TxnDatastoreExtended, t kt.KeyTransform) *Datastore

WrapTxnDatastore wraps a datastore with a key transform.

func (*Datastore) NewTransaction

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

func (*Datastore) NewTransactionExtended

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

func (*Datastore) QueryExtended

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

type TxnDatastoreExtended

type TxnDatastoreExtended interface {
	ds.TxnDatastore
	dse.DatastoreExtensions
}

TxnDatastoreExtended adds QueryExtensions to TxnDatastore.

Jump to

Keyboard shortcuts

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