2
0
mirror of https://github.com/lightninglabs/loop synced 2024-11-09 19:10:47 +00:00
loop/loopdb/test_postgres.go
sputn1ck 3ee5bb6365
loopdb: add postgres store
This commit adds a postgres store to the loopdb package.
Ths postgres migrator uses a replacer filesystem to replace the
sqlite types to postgres types in the migration.
2023-06-20 18:59:30 +02:00

14 lines
252 B
Go

//go:build test_db_postgres
// +build test_db_postgres
package loopdb
import (
"testing"
)
// NewTestDB is a helper function that creates a Postgres database for testing.
func NewTestDB(t *testing.T) *PostgresStore {
return NewTestPostgresDB(t)
}