You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

18 lines
471 B

//go:build !(js && wasm)
package database
import (
"context"
)
func init() {
// Register the Badger driver with the driver registry.
// This is always available on non-wasm builds.
RegisterDriver("badger", "Badger LSM database (default)", badgerFactory)
}
// badgerFactory creates a new Badger database instance.
func badgerFactory(ctx context.Context, cancel context.CancelFunc, cfg *DatabaseConfig) (Database, error) {
return NewWithConfig(ctx, cancel, cfg)
}