powergate: github.com/textileio/powergate/txndstransform Index | Files

package txndstransform

import "github.com/textileio/powergate/txndstransform"


Package Files


type Datastore Uses

type Datastore struct {
    // contains filtered or unexported fields

Datastore keeps a KeyTransform function.

func Wrap Uses

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

Wrap wraps a TxDatastore with a namespace prefix.

func (*Datastore) NewTransaction Uses

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

NewTransaction returns a transaction wrapped by the selected namespace prefix.

Package txndstransform imports 4 packages (graph) and is imported by 15 packages. Updated 2020-06-08. Refresh now. Tools for package owners.