mirror of
https://github.com/luxfi/database.git
synced 2026-10-30 15:01:18 +00:00
- 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
22 lines
715 B
Go
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)
|
|
}
|