sqldb+invoices: move SQL invoice store impl to invoices package

This commit is contained in:
Andras Banki-Horvath committed 2024-04-09 20:46:11 +02:00
1 parent 6d316ef56f
commit 7f5c8219ef
4 files changed
+169 -165

No files matched your search

+2 -2
View File
@@ -136,14 +136,14 @@ func TestInvoiceRegistry(t *testing.T) {
}
executor := sqldb.NewTransactionExecutor(
db, func(tx *sql.Tx) sqldb.InvoiceQueries {
db, func(tx *sql.Tx) invpkg.SQLInvoiceQueries {
return db.WithTx(tx)
},
)
testClock := clock.NewTestClock(testNow)
return sqldb.NewInvoiceStore(executor, testClock), testClock
return invpkg.NewSQLStore(executor, testClock), testClock
}
for _, test := range testList {
+2 -2
View File
@@ -240,14 +240,14 @@ func TestInvoices(t *testing.T) {
}
executor := sqldb.NewTransactionExecutor(
db, func(tx *sql.Tx) sqldb.InvoiceQueries {
db, func(tx *sql.Tx) invpkg.SQLInvoiceQueries {
return db.WithTx(tx)
},
)
testClock := clock.NewTestClock(testNow)
return sqldb.NewInvoiceStore(executor, testClock)
return invpkg.NewSQLStore(executor, testClock)
}
for _, test := range testList {
File diff suppressed because it is too large. Load diff