github.com/decred/dcrlnd@v0.7.6/kvdb/kvdb_no_postgres.go (about) 1 //go:build !kvdb_postgres 2 // +build !kvdb_postgres 3 4 package kvdb 5 6 import ( 7 "errors" 8 9 "github.com/decred/dcrlnd/kvdb/postgres" 10 ) 11 12 const PostgresBackend = false 13 14 func NewPostgresFixture(dbName string) (postgres.Fixture, error) { 15 return nil, errors.New("postgres backend not available") 16 } 17 18 func StartEmbeddedPostgres() (func() error, error) { 19 return nil, errors.New("postgres backend not available") 20 }