sqlc_model

package
v2.0.28 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2026 License: AGPL-3.0 Imports: 2 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddURLParams

type AddURLParams struct {
	ID    string
	Value string
	Via   string
	Hops  int64
}

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 Queries

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

func New

func New(db DBTX) *Queries

func (*Queries) AddURL

func (q *Queries) AddURL(ctx context.Context, arg AddURLParams) error

func (*Queries) ClaimThisURL

func (q *Queries) ClaimThisURL(ctx context.Context, id string) error

func (*Queries) DeleteURL

func (q *Queries) DeleteURL(ctx context.Context, id string) error

func (*Queries) DoneURL

func (q *Queries) DoneURL(ctx context.Context, id string) error

func (*Queries) GetFreshURLs

func (q *Queries) GetFreshURLs(ctx context.Context, limit int64) ([]Url, error)

func (*Queries) ResetURL

func (q *Queries) ResetURL(ctx context.Context, id string) error

func (*Queries) WithTx

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

type Url

type Url struct {
	ID        string
	Value     string
	Via       string
	Hops      int64
	Status    string
	Timestamp int64
}

Jump to

Keyboard shortcuts

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