paymentsdb: implement InitPayment for sql backend
This commit is contained in:
3 files changed
+133
-1
No files matched your search
@@ -760,6 +760,8 @@ type InsertPaymentParams struct {
|
||||
}
|
||||
|
||||
// Insert a new payment and return its ID.
|
||||
// When creating a payment we don't have a fail reason because we start the
|
||||
// payment process.
|
||||
func (q *Queries) InsertPayment(ctx context.Context, arg InsertPaymentParams) (int64, error) {
|
||||
row := q.db.QueryRowContext(ctx, insertPayment, arg.AmountMsat, arg.CreatedAt, arg.PaymentIdentifier)
|
||||
var id int64
|
||||
|
||||
Reference in new issue
Block a user