(ctx context.Context, params *riverdriver.JobListParams)
| 656 | } |
| 657 | |
| 658 | func (e *Executor) JobList(ctx context.Context, params *riverdriver.JobListParams) ([]*rivertype.JobRow, error) { |
| 659 | ctx = sqlctemplate.WithReplacements(ctx, map[string]sqlctemplate.Replacement{ |
| 660 | "order_by_clause": {Value: params.OrderByClause}, |
| 661 | "where_clause": {Value: params.WhereClause}, |
| 662 | }, params.NamedArgs) |
| 663 | |
| 664 | jobs, err := dbsqlc.New().JobList(schemaTemplateParam(ctx, params.Schema), e.dbtx, int64(params.Max)) |
| 665 | if err != nil { |
| 666 | return nil, interpretError(err) |
| 667 | } |
| 668 | return sliceutil.MapError(jobs, jobRowFromInternal) |
| 669 | } |
| 670 | |
| 671 | func (e *Executor) JobRescueMany(ctx context.Context, params *riverdriver.JobRescueManyParams) (*struct{}, error) { |
| 672 | if err := dbutil.WithTx(ctx, e, func(ctx context.Context, execTx riverdriver.ExecutorTx) error { |
nothing calls this directly
no test coverage detected