mirror of
https://github.com/lightninglabs/loop
synced 2024-11-08 01:10:29 +00:00
3ee5bb6365
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.
14 lines
253 B
Go
14 lines
253 B
Go
//go:build !test_db_postgres
|
|
// +build !test_db_postgres
|
|
|
|
package loopdb
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
// NewTestDB is a helper function that creates an SQLite database for testing.
|
|
func NewTestDB(t *testing.T) *SqliteSwapStore {
|
|
return NewTestSqliteDB(t)
|
|
}
|