Files
hatchet/internal/repository/prisma/dbsqlc/tenants.sql
T
abelanger5 092f54c64f refactor: separate api and engine repositories, change ticker logic (#281)
* refactor: separate api and engine repositories, change ticker logic

* fix: nil error blocks

* fix: run migration on load test

* fix: generate db package in load test

* fix: test.yml

* fix: add pnpm to load test

* fix: don't lock CTEs with columns that don't get updated

* fix: update heartbeat for worker every 4 seconds, not 5

* chore: remove dead code

* chore: update python sdk

* chore: add back telemetry attributes
2024-03-21 14:10:34 -04:00

13 lines
179 B
SQL

-- name: ListTenants :many
SELECT
*
FROM
"Tenant" as tenants;
-- name: GetTenantByID :one
SELECT
*
FROM
"Tenant" as tenants
WHERE
"id" = sqlc.arg('id')::uuid;