dblist

package
v0.23.0 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2025 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JobList

func JobList(ctx context.Context, exec riverdriver.Executor, params *JobListParams, sqlFragmentColumnIn func(column string, values any) (string, any, error)) ([]*rivertype.JobRow, error)

Types

type JobListOrderBy

type JobListOrderBy struct {
	Expr  string
	Order SortOrder
}

type JobListParams

type JobListParams struct {
	IDs        []int64
	Kinds      []string
	LimitCount int32
	OrderBy    []JobListOrderBy
	Priorities []int16
	Queues     []string
	Schema     string
	States     []rivertype.JobState
	Where      []WherePredicate
}

type SortOrder

type SortOrder int
const (
	SortOrderUnspecified SortOrder = iota
	SortOrderAsc
	SortOrderDesc
)

type WherePredicate added in v0.23.0

type WherePredicate struct {
	NamedArgs map[string]any
	SQL       string
}

Jump to

Keyboard shortcuts

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