2023-05-30 07:37:48 -07:00
|
|
|
// Code generated by sqlc. DO NOT EDIT.
|
|
|
|
// versions:
|
2023-09-22 12:30:15 -07:00
|
|
|
// sqlc v1.25.0
|
2023-05-30 07:37:48 -07:00
|
|
|
|
|
|
|
package sqlc
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
2023-11-22 17:23:23 +01:00
|
|
|
"database/sql"
|
2023-05-30 07:37:48 -07:00
|
|
|
)
|
|
|
|
|
|
|
|
type Querier interface {
|
2023-11-22 17:23:23 +01:00
|
|
|
DeleteCanceledInvoices(ctx context.Context) (sql.Result, error)
|
|
|
|
DeleteInvoice(ctx context.Context, arg DeleteInvoiceParams) (sql.Result, error)
|
|
|
|
FetchAMPSubInvoiceHTLCs(ctx context.Context, arg FetchAMPSubInvoiceHTLCsParams) ([]FetchAMPSubInvoiceHTLCsRow, error)
|
|
|
|
FetchAMPSubInvoices(ctx context.Context, arg FetchAMPSubInvoicesParams) ([]AmpSubInvoice, error)
|
|
|
|
FetchSettledAMPSubInvoices(ctx context.Context, arg FetchSettledAMPSubInvoicesParams) ([]FetchSettledAMPSubInvoicesRow, error)
|
2023-05-30 07:37:48 -07:00
|
|
|
FilterInvoices(ctx context.Context, arg FilterInvoicesParams) ([]Invoice, error)
|
2023-11-22 17:23:23 +01:00
|
|
|
GetAMPInvoiceID(ctx context.Context, setID []byte) (int64, error)
|
2023-05-30 07:37:48 -07:00
|
|
|
// This method may return more than one invoice if filter using multiple fields
|
|
|
|
// from different invoices. It is the caller's responsibility to ensure that
|
|
|
|
// we bubble up an error in those cases.
|
|
|
|
GetInvoice(ctx context.Context, arg GetInvoiceParams) ([]Invoice, error)
|
2023-11-22 17:23:23 +01:00
|
|
|
GetInvoiceFeatures(ctx context.Context, invoiceID int64) ([]InvoiceFeature, error)
|
|
|
|
GetInvoiceHTLCCustomRecords(ctx context.Context, invoiceID int64) ([]GetInvoiceHTLCCustomRecordsRow, error)
|
|
|
|
GetInvoiceHTLCs(ctx context.Context, invoiceID int64) ([]InvoiceHtlc, error)
|
|
|
|
InsertAMPSubInvoiceHTLC(ctx context.Context, arg InsertAMPSubInvoiceHTLCParams) error
|
|
|
|
InsertInvoice(ctx context.Context, arg InsertInvoiceParams) (int64, error)
|
2023-05-30 07:37:48 -07:00
|
|
|
InsertInvoiceFeature(ctx context.Context, arg InsertInvoiceFeatureParams) error
|
2023-11-22 17:23:23 +01:00
|
|
|
InsertInvoiceHTLC(ctx context.Context, arg InsertInvoiceHTLCParams) (int64, error)
|
2023-05-30 07:37:48 -07:00
|
|
|
InsertInvoiceHTLCCustomRecord(ctx context.Context, arg InsertInvoiceHTLCCustomRecordParams) error
|
2023-11-22 17:23:23 +01:00
|
|
|
NextInvoiceSettleIndex(ctx context.Context) (int64, error)
|
|
|
|
OnAMPSubInvoiceCanceled(ctx context.Context, arg OnAMPSubInvoiceCanceledParams) error
|
|
|
|
OnAMPSubInvoiceCreated(ctx context.Context, arg OnAMPSubInvoiceCreatedParams) error
|
|
|
|
OnAMPSubInvoiceSettled(ctx context.Context, arg OnAMPSubInvoiceSettledParams) error
|
|
|
|
OnInvoiceCanceled(ctx context.Context, arg OnInvoiceCanceledParams) error
|
|
|
|
OnInvoiceCreated(ctx context.Context, arg OnInvoiceCreatedParams) error
|
|
|
|
OnInvoiceSettled(ctx context.Context, arg OnInvoiceSettledParams) error
|
|
|
|
UpdateAMPSubInvoiceHTLCPreimage(ctx context.Context, arg UpdateAMPSubInvoiceHTLCPreimageParams) (sql.Result, error)
|
|
|
|
UpdateAMPSubInvoiceState(ctx context.Context, arg UpdateAMPSubInvoiceStateParams) error
|
|
|
|
UpdateInvoiceAmountPaid(ctx context.Context, arg UpdateInvoiceAmountPaidParams) (sql.Result, error)
|
2023-05-30 07:37:48 -07:00
|
|
|
UpdateInvoiceHTLC(ctx context.Context, arg UpdateInvoiceHTLCParams) error
|
|
|
|
UpdateInvoiceHTLCs(ctx context.Context, arg UpdateInvoiceHTLCsParams) error
|
2023-11-22 17:23:23 +01:00
|
|
|
UpdateInvoiceState(ctx context.Context, arg UpdateInvoiceStateParams) (sql.Result, error)
|
|
|
|
UpsertAMPSubInvoice(ctx context.Context, arg UpsertAMPSubInvoiceParams) (sql.Result, error)
|
2023-05-30 07:37:48 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
var _ Querier = (*Queries)(nil)
|