dblist

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2026 License: MPL-2.0 Imports: 7 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

func JobMakeDriverParams

func JobMakeDriverParams(ctx context.Context, params *JobListParams, sqlFragmentBuilder sqlFragmentBuilder) (*riverdriver.JobListParams, error)

JobMakeDriverParams converts client-level parameters for job and delete to driver-level parameters for use with an executor, which generally goes by converting typed fields for IDs, kinds, queues, etc. to lower-level SQL.

This was originally implemented for listing jobs, but since the logic is so similar, it also performs the same function for JobDeleteMany. This works because `riverdriver.JobDeleteManyParams` has `JobListParams` as its underlying type and therefore pointer-level converts to it.

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
	TagsAll    []string
	TagsAny    []string
	Where      []WherePredicate
}

type SortOrder

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

type WherePredicate

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