mirror of
https://github.com/eduardolat/pgbackweb.git
synced 2026-02-09 05:38:28 -06:00
8 lines
229 B
SQL
8 lines
229 B
SQL
-- name: WebhooksServicePaginateWebhooksCount :one
|
|
SELECT COUNT(*) FROM webhooks;
|
|
|
|
-- name: WebhooksServicePaginateWebhooks :many
|
|
SELECT * FROM webhooks
|
|
ORDER BY created_at DESC
|
|
LIMIT sqlc.arg('limit') OFFSET sqlc.arg('offset');
|