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.