kvdb/postgres: separate general sql code from postgres

In this commit, changes are made to the `kvdb/postgres` package so that
all all the non-postgres-specific code is generalised to be applicable
for all sql code. A follow up commit will move all the general sql code
into its own package.
This commit is contained in:
Elle Mouton committed 2023-01-23 09:05:11 +02:00
1 parent 3dfaa88bb4
commit 30ba8cbae9
6 files changed
+201 -74

No files matched your search

+1 -1
View File
@@ -41,7 +41,7 @@ func TestPanic(t *testing.T) {
f, err := NewFixture("")
require.NoError(t, err)
err = f.Db.(*db).Update(func(tx walletdb.ReadWriteTx) error {
err = f.Db.Update(func(tx walletdb.ReadWriteTx) error {
bucket, err := tx.CreateTopLevelBucket([]byte("test"))
require.NoError(t, err)