MCPcopy Index your code
hub / github.com/riverqueue/river / JobCountByState

Method JobCountByState

riverdriver/riversqlite/river_sqlite_driver.go:352–358  ·  view source on GitHub ↗
(ctx context.Context, params *riverdriver.JobCountByStateParams)

Source from the content-addressed store, hash-verified

350}
351
352func (e *Executor) JobCountByState(ctx context.Context, params *riverdriver.JobCountByStateParams) (int, error) {
353 numJobs, err := dbsqlc.New().JobCountByState(schemaTemplateParam(ctx, params.Schema), e.dbtx, string(params.State))
354 if err != nil {
355 return 0, err
356 }
357 return int(numJobs), nil
358}
359
360func (e *Executor) JobDelete(ctx context.Context, params *riverdriver.JobDeleteParams) (*rivertype.JobRow, error) {
361 // Unlike Postgres, this must be carried out in two operations because

Callers

nothing calls this directly

Implementers 3

Executorriverdriver/riverpgxv5/river_pgx_v5_dr
Executorriverdriver/riverdatabasesql/river_dat
Executorriverdriver/riversqlite/river_sqlite_d

Calls 3

NewFunction · 0.92
schemaTemplateParamFunction · 0.70
JobCountByStateMethod · 0.65

Tested by

no test coverage detected