Expose methods required for the stream sync service #147

Closed
lash wants to merge 34 commits from lash/export-to-term into pre-mock-remove
Showing only changes of commit 1d77ad98dc - Show all commits

13
common/storage.go Normal file
View File

@ -0,0 +1,13 @@
package common
import (
"git.defalsify.org/vise.git/db"
)
func StoreToDb(store *UserDataStore, prefix []byte) db.Db {
innerStore := store.Db
if pfx != nil {
innerStore = NewSubPrefixDb(innerStore, pfx)
}
return innerStore
}