Skip to content

buildListFailuresQuery

buildListFailuresQuery(opts): ParameterizedQuery | { empty: true; }

Defined in: packages/core/src/store/sqlite-queries.ts:160

Build the raw failure-row listing. Handles the dynamic combination of since / runIds / project filter / infra-blowup filter the same way every adapter does, so the WHERE assembly doesn’t drift between them.

Returns an empty-args payload with the literal string 'EMPTY' as the SQL when runIds is an empty array — the adapter short-circuits on that and never runs a query.

boolean

string | null

readonly string[]

string

ParameterizedQuery | { empty: true; }