(ctx context.Context, params *riverdriver.QueueNameListParams)
| 1199 | } |
| 1200 | |
| 1201 | func (e *Executor) QueueNameList(ctx context.Context, params *riverdriver.QueueNameListParams) ([]string, error) { |
| 1202 | exclude := params.Exclude |
| 1203 | if len(exclude) == 0 { |
| 1204 | exclude = []string{""} |
| 1205 | } |
| 1206 | queueNames, err := dbsqlc.New().QueueNameList(schemaTemplateParam(ctx, params.Schema), e.dbtx, &dbsqlc.QueueNameListParams{ |
| 1207 | After: params.After, |
| 1208 | Exclude: exclude, |
| 1209 | Match: params.Match, |
| 1210 | Max: int64(min(params.Max, math.MaxInt32)), |
| 1211 | }) |
| 1212 | if err != nil { |
| 1213 | return nil, interpretError(err) |
| 1214 | } |
| 1215 | return queueNames, nil |
| 1216 | } |
| 1217 | |
| 1218 | func (e *Executor) QueuePause(ctx context.Context, params *riverdriver.QueuePauseParams) error { |
| 1219 | // `execresult` doesn't seem to return the right number of rows affected in |
nothing calls this directly
no test coverage detected