2025-09-24 10:53:42 +02:00
|
|
|
// Code generated by sqlc. DO NOT EDIT.
|
|
|
|
|
// versions:
|
|
|
|
|
// sqlc v1.25.0
|
|
|
|
|
|
|
|
|
|
package sqlc
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"context"
|
2026-06-22 10:10:00 +02:00
|
|
|
"time"
|
2025-09-24 10:53:42 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
type Querier interface {
|
|
|
|
|
GetChannelByChanPoint(ctx context.Context, channelPoint string) (Channel, error)
|
|
|
|
|
GetChannelByShortChanID(ctx context.Context, shortChannelID int64) (Channel, error)
|
|
|
|
|
GetChannelEvents(ctx context.Context, arg GetChannelEventsParams) ([]ChannelEvent, error)
|
2026-05-06 07:05:20 +02:00
|
|
|
GetChannels(ctx context.Context) ([]GetChannelsRow, error)
|
2026-05-06 07:04:27 +02:00
|
|
|
GetLatestChannelEventBefore(ctx context.Context, arg GetLatestChannelEventBeforeParams) (ChannelEvent, error)
|
2025-09-24 10:53:42 +02:00
|
|
|
GetPeerByPubKey(ctx context.Context, pubkey string) (Peer, error)
|
|
|
|
|
InsertChannel(ctx context.Context, arg InsertChannelParams) (int64, error)
|
|
|
|
|
InsertChannelEvent(ctx context.Context, arg InsertChannelEventParams) error
|
|
|
|
|
InsertPeer(ctx context.Context, pubkey string) (int64, error)
|
2026-06-22 10:10:00 +02:00
|
|
|
// PruneChannelEventsByAge enforces the retention window on the channel_events
|
|
|
|
|
// table, returning the number of rows deleted. It deletes any row whose
|
|
|
|
|
// timestamp predates the given cutoff.
|
|
|
|
|
PruneChannelEventsByAge(ctx context.Context, timestamp time.Time) (int64, error)
|
|
|
|
|
// PruneChannelEventsBySize enforces the size ceiling on the channel_events
|
|
|
|
|
// table, returning the number of rows deleted. It keeps the newest rows by
|
|
|
|
|
// deleting everything with a smaller (earlier-inserted) id than the id found at
|
|
|
|
|
// the given offset from the newest row, so an offset of (max-events - 1) keeps
|
|
|
|
|
// exactly max-events rows.
|
|
|
|
|
PruneChannelEventsBySize(ctx context.Context, offset int32) (int64, error)
|
2025-09-24 10:53:42 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var _ Querier = (*Queries)(nil)
|