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 dae12ac498 - Show all commits

View File

@ -2,12 +2,14 @@ package common
import (
"git.defalsify.org/vise.git/db"
"git.grassecon.net/urdt/ussd/internal/storage"
)
func StoreToDb(store *UserDataStore, prefix []byte) db.Db {
innerStore := store.Db
if pfx != nil {
innerStore = NewSubPrefixDb(innerStore, pfx)
}
return innerStore
func StoreToDb(store *UserDataStore) db.Db {
return store.Db
}
func StoreToPrefixDb(store *UserDataStore, pfx []byte) storage.PrefixDb {
return storage.NewSubPrefixDb(store.Db, pfx)
}