sort

package
v0.0.0-...-d9b39ff Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2026 License: MIT Imports: 4 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 ListItemsAndSortDefAllParams

type ListItemsAndSortDefAllParams struct {
	SortBy   sql.NullString
	OrderDir sql.NullString
}

type ListItemsAndSortDefFieldParams

type ListItemsAndSortDefFieldParams struct {
	SortBy   sql.NullString
	OrderDir sql.NullString
}

type ListItemsAndSortParams

type ListItemsAndSortParams struct {
	SortBy   sql.NullString
	OrderDir sql.NullString
}

type Queries

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

func New

func New(db DBTX) *Queries

func (*Queries) ListItemsAndSort

func (q *Queries) ListItemsAndSort(ctx context.Context, arg ListItemsAndSortParams) ([]SortItem, error)

func (*Queries) ListItemsAndSortDefAll

func (q *Queries) ListItemsAndSortDefAll(ctx context.Context, arg ListItemsAndSortDefAllParams) ([]SortItem, error)

func (*Queries) ListItemsAndSortDefField

func (q *Queries) ListItemsAndSortDefField(ctx context.Context, arg ListItemsAndSortDefFieldParams) ([]SortItem, error)

func (*Queries) ListItemsAndSortSingle

func (q *Queries) ListItemsAndSortSingle(ctx context.Context, sortBy sql.NullString) ([]SortItem, error)

func (*Queries) WithTx

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

type SortItem

type SortItem struct {
	ID      int64
	Name    string
	Created sql.NullTime
}

Jump to

Keyboard shortcuts

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