mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-13 12:33:03 +02:00
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.
This commit is contained in:
parent
ab8923fc38
commit
3ee5bb6365
4 changed files with 300 additions and 0 deletions
13
loopdb/test_sqlite.go
Normal file
13
loopdb/test_sqlite.go
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
//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)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue