mirror of
https://github.com/safing/portmaster
synced 2025-09-05 03:59:11 +00:00
Switch core databases to bbolt
This commit is contained in:
parent
c2c19abd48
commit
0af3ab2305
1 changed files with 4 additions and 4 deletions
|
@ -7,7 +7,7 @@ import (
|
||||||
|
|
||||||
// module dependencies
|
// module dependencies
|
||||||
_ "github.com/Safing/portbase/database/dbmodule"
|
_ "github.com/Safing/portbase/database/dbmodule"
|
||||||
_ "github.com/Safing/portbase/database/storage/badger"
|
_ "github.com/Safing/portbase/database/storage/bbolt"
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
|
@ -20,7 +20,7 @@ func start() error {
|
||||||
_, err := database.Register(&database.Database{
|
_, err := database.Register(&database.Database{
|
||||||
Name: "core",
|
Name: "core",
|
||||||
Description: "Holds core data, such as settings and profiles",
|
Description: "Holds core data, such as settings and profiles",
|
||||||
StorageType: "badger",
|
StorageType: "bbolt",
|
||||||
PrimaryAPI: "",
|
PrimaryAPI: "",
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -30,7 +30,7 @@ func start() error {
|
||||||
_, err = database.Register(&database.Database{
|
_, err = database.Register(&database.Database{
|
||||||
Name: "cache",
|
Name: "cache",
|
||||||
Description: "Cached data, such as Intelligence and DNS Records",
|
Description: "Cached data, such as Intelligence and DNS Records",
|
||||||
StorageType: "badger",
|
StorageType: "bbolt",
|
||||||
PrimaryAPI: "",
|
PrimaryAPI: "",
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -40,7 +40,7 @@ func start() error {
|
||||||
// _, err = database.Register(&database.Database{
|
// _, err = database.Register(&database.Database{
|
||||||
// Name: "history",
|
// Name: "history",
|
||||||
// Description: "Historic event data",
|
// Description: "Historic event data",
|
||||||
// StorageType: "badger",
|
// StorageType: "bbolt",
|
||||||
// PrimaryAPI: "",
|
// PrimaryAPI: "",
|
||||||
// })
|
// })
|
||||||
// if err != nil {
|
// if err != nil {
|
||||||
|
|
Loading…
Add table
Reference in a new issue