mirror of
https://github.com/eduardolat/pgbackweb.git
synced 2026-05-13 06:58:27 -05:00
9 lines
322 B
SQL
9 lines
322 B
SQL
-- name: WebhooksServicePaginateWebhookExecutionsCount :one
|
|
SELECT COUNT(*) FROM webhook_results
|
|
WHERE webhook_id = @webhook_id;
|
|
|
|
-- name: WebhooksServicePaginateWebhookExecutions :many
|
|
SELECT * FROM webhook_results
|
|
WHERE webhook_id = @webhook_id
|
|
ORDER BY created_at DESC
|
|
LIMIT sqlc.arg('limit') OFFSET sqlc.arg('offset'); |