mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-10-11 05:25:03 +02:00
channeldb/test: test with postgres
This commit is contained in:
19
kvdb/kvdb_no_postgres.go
Normal file
19
kvdb/kvdb_no_postgres.go
Normal file
@@ -0,0 +1,19 @@
|
||||
// +build !kvdb_postgres
|
||||
|
||||
package kvdb
|
||||
|
||||
import (
|
||||
"errors"
|
||||
|
||||
"github.com/lightningnetwork/lnd/kvdb/postgres"
|
||||
)
|
||||
|
||||
const PostgresBackend = false
|
||||
|
||||
func NewPostgresFixture(dbName string) (postgres.Fixture, error) {
|
||||
return nil, errors.New("postgres backend not available")
|
||||
}
|
||||
|
||||
func StartEmbeddedPostgres() (func() error, error) {
|
||||
return nil, errors.New("postgres backend not available")
|
||||
}
|
Reference in New Issue
Block a user