sqlc

package
v0.0.0-...-61e96d1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 6, 2025 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DBTX

type DBTX interface {
	ExecContext(context.Context, string, ...interface{}) (sql.Result, error)
	PrepareContext(context.Context, string) (*sql.Stmt, error)
	QueryContext(context.Context, string, ...interface{}) (*sql.Rows, error)
	QueryRowContext(context.Context, string, ...interface{}) *sql.Row
}

type GetWatchByNameAndUrlParams

type GetWatchByNameAndUrlParams struct {
	Name string
	Url  string
}

type InsertWatchParams

type InsertWatchParams struct {
	Name        string
	Url         string
	LastContent []byte
}

type Queries

type Queries struct {
	// contains filtered or unexported fields
}

func New

func New(db DBTX) *Queries

func (*Queries) DeleteWatch

func (q *Queries) DeleteWatch(ctx context.Context, id int64) error

func (*Queries) GetAllWatches

func (q *Queries) GetAllWatches(ctx context.Context) ([]Watch, error)

func (*Queries) GetWatchByNameAndUrl

func (q *Queries) GetWatchByNameAndUrl(ctx context.Context, arg GetWatchByNameAndUrlParams) (Watch, error)

func (*Queries) InsertWatch

func (q *Queries) InsertWatch(ctx context.Context, arg InsertWatchParams) (Watch, error)

func (*Queries) UpdateWatch

func (q *Queries) UpdateWatch(ctx context.Context, arg UpdateWatchParams) (Watch, error)

func (*Queries) WithTx

func (q *Queries) WithTx(tx *sql.Tx) *Queries

type UpdateWatchParams

type UpdateWatchParams struct {
	LastContent []byte
	ID          int64
}

type Watch

type Watch struct {
	ID          int64
	Name        string
	Url         string
	LastFetch   time.Time
	LastContent []byte
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL