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:
sputn1ck 2023-05-30 09:26:09 +02:00
parent ab8923fc38
commit 3ee5bb6365
No known key found for this signature in database
GPG key ID: 671103D881A5F0E4
4 changed files with 300 additions and 0 deletions

13
loopdb/test_sqlite.go Normal file
View 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)
}