You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Clear all the kv pairs in the given store and keep the store
Drop the store, which truncates the store and also deletes it in the environment
lmdb-rs has two separate functions for this, txn.clear_db and txn.drop_db, respectively. The latter is marked as unsafe, because the underlying store will be unsafe to use after the call. Rkv can't enforce that, and it's all up to the consumers.
@mykmelez For kvstore, shall we focus on the common case "clear" for now?
The text was updated successfully, but these errors were encountered:
LMDB provides
mdb_drop
with two flavors:lmdb-rs has two separate functions for this,
txn.clear_db
andtxn.drop_db
, respectively. The latter is marked as unsafe, because the underlying store will be unsafe to use after the call. Rkv can't enforce that, and it's all up to the consumers.@mykmelez For kvstore, shall we focus on the common case "clear" for now?
The text was updated successfully, but these errors were encountered: