mirror of
https://github.com/safing/portbase
synced 2025-09-01 10:09:50 +00:00
17 lines
497 B
Go
17 lines
497 B
Go
// Copyright Safing ICS Technologies GmbH. Use of this source code is governed by the AGPL license that can be found in the LICENSE file.
|
|
|
|
package database
|
|
|
|
import (
|
|
"github.com/ipfs/go-datastore"
|
|
|
|
"github.com/Safing/safing-core/database/dbutils"
|
|
)
|
|
|
|
func NewWrapper(key *datastore.Key, data []byte) (*dbutils.Wrapper, error) {
|
|
return dbutils.NewWrapper(key, data)
|
|
}
|
|
|
|
func DumpModel(uncertain interface{}, storageType uint8) ([]byte, error) {
|
|
return dbutils.DumpModel(uncertain, storageType)
|
|
}
|