keytransform

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2023 License: MIT Imports: 5 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 WrapTxnDatastore

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

WrapTxnDatastore wraps a datastore with a key transform.

func (*Datastore) NewTransaction

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

func (*Datastore) NewTransactionExtended

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

func (*Datastore) QueryExtended

func (d *Datastore) QueryExtended(ctx context.Context, 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