mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-12-10 21:03:04 +01:00
channeldb/test: test with postgres
This commit is contained in:
15
kvdb/kvdb_postgres.go
Normal file
15
kvdb/kvdb_postgres.go
Normal file
@@ -0,0 +1,15 @@
|
||||
// +build kvdb_postgres
|
||||
|
||||
package kvdb
|
||||
|
||||
import "github.com/lightningnetwork/lnd/kvdb/postgres"
|
||||
|
||||
const PostgresBackend = true
|
||||
|
||||
func NewPostgresFixture(dbName string) (postgres.Fixture, error) {
|
||||
return postgres.NewFixture(dbName)
|
||||
}
|
||||
|
||||
func StartEmbeddedPostgres() (func() error, error) {
|
||||
return postgres.StartEmbeddedPostgres()
|
||||
}
|
||||
Reference in New Issue
Block a user