2024-11-03 00:33:52 +01:00
|
|
|
package common
|
|
|
|
|
|
|
|
import (
|
|
|
|
"git.defalsify.org/vise.git/db"
|
2024-11-03 00:41:08 +01:00
|
|
|
|
|
|
|
"git.grassecon.net/urdt/ussd/internal/storage"
|
2024-11-03 00:33:52 +01:00
|
|
|
)
|
|
|
|
|
2024-11-03 00:41:08 +01:00
|
|
|
func StoreToDb(store *UserDataStore) db.Db {
|
|
|
|
return store.Db
|
|
|
|
}
|
|
|
|
|
|
|
|
func StoreToPrefixDb(store *UserDataStore, pfx []byte) storage.PrefixDb {
|
|
|
|
return storage.NewSubPrefixDb(store.Db, pfx)
|
2024-11-03 00:33:52 +01:00
|
|
|
}
|