mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-29 23:21:12 +02:00
sqldb+invoices: move SQL invoice store impl to invoices package
This commit is contained in:
@@ -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 {
|
||||
|
@@ -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 {
|
||||
|
1666
invoices/sql_store.go
Normal file
1666
invoices/sql_store.go
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user