package scoped

import "github.com/ipfs/go-datastore/scoped"

Index

Functions

func WithFeatures

func WithFeatures(dstore ds.Datastore, features []ds.Feature) ds.Datastore

WithFeatures returns a wrapped datastore that implements the intersection of the given datastore's features with the provided features.

func Wrap

func Wrap(source ds.Datastore, target ds.Datastore) ds.Datastore

Wrap returns a datastore based on the source, whose concrete type is scoped down to only the features supported by the target.

Source Files

doc.go impls.gen.go scoped.go

Version
v0.8.2 (latest)
Published
Mar 4, 2025
Platform
linux/amd64
Imports
1 packages
Last checked
1 month ago

Tools for package owners.