Files
travel-app/node_modules/bullmq/dist/esm/postgres/commands/read_events.sql
2026-08-09 21:56:00 +00:00

7 lines
201 B
SQL

-- A page of events newer than a cursor, oldest first.
-- Params: $1 queue, $2 cursor (exclusive), $3 limit.
SELECT id, event, data FROM event
WHERE queue = $1 AND id > $2
ORDER BY id ASC
LIMIT $3;