Files
zeekay 1606fb39c9 fix: update dependencies and add badgerdb compat wrapper
- Upgrade metric v1.4.10 → v1.5.0 (API alignment)
- Upgrade cache v1.2.0 → v1.2.1
- Upgrade concurrent v0.0.2 → v0.0.3
- Add badgerdb/ backwards compatibility wrapper for zapdb
2026-02-08 14:29:13 -08:00

22 lines
715 B
Go

// Copyright (C) 2020-2025, Lux Industries Inc. All rights reserved.
// See the file LICENSE for licensing terms.
// Package badgerdb provides backwards compatibility for code importing
// github.com/luxfi/database/badgerdb. The implementation has moved to
// github.com/luxfi/database/zapdb.
package badgerdb
import (
"github.com/luxfi/database"
"github.com/luxfi/database/zapdb"
"github.com/luxfi/metric"
)
const Name = zapdb.Name
// New creates a new badgerdb-backed database.
// This is a compatibility wrapper around zapdb.New.
func New(file string, configBytes []byte, namespace string, metrics metric.Registerer) (database.Database, error) {
return zapdb.New(file, configBytes, namespace, metrics)
}