go-datastore icon indicating copy to clipboard operation
go-datastore copied to clipboard

Keytransform Only Supports Batched Datastores

Open bonedaddy opened this issue 4 years ago • 1 comments

I'm working on a codebase that currently uses a datastore.Batching type backed by leveldb using a namespace wrap. Unfortunately it appears that the namespace only supports datastore.Batching and can't be used in place of a datastore.TxnDatastore.

Is this intentional?

bonedaddy avatar May 07 '20 05:05 bonedaddy

We should probably be doing what we do in the mount datastore. There, we type assert to datastore.Batching on demand and return ds.ErrBatchUnsupported if batching is unsupported.

Stebalien avatar May 07 '20 10:05 Stebalien