Skip to content

Commit 97122d5

Browse files
committed
Be less specific
1 parent df03aa8 commit 97122d5

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

content/fragments/postgres-clocks.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Here's a sample query showing the `coalesce` in action. `sqlc.narg` defines a pa
1919

2020
``` sql
2121
-- name: QueuePause :execrows
22-
UPDATE /* TEMPLATE: schema */river_queue
22+
UPDATE queue
2323
SET paused_at = CASE
2424
WHEN paused_at IS NULL THEN coalesce(
2525
sqlc.narg('now')::timestamptz,
@@ -52,7 +52,7 @@ Which generates this code:
5252
5353
``` go
5454
const queuePause = `-- name: QueuePause :execrows
55-
UPDATE /* TEMPLATE: schema */river_queue
55+
UPDATE queue
5656
SET
5757
paused_at = CASE WHEN paused_at IS NULL THEN coalesce($1::timestamptz, now()) ELSE paused_at END
5858
WHERE CASE WHEN $2::text = '*' THEN true ELSE name = $2 END
@@ -146,7 +146,7 @@ We put a `TimeGenerator` on a base service archetype that's automatically inject
146146
func (c *Client[TTx]) QueuePauseTx(ctx context.Context, tx TTx, name string, opts *QueuePauseOpts) error {
147147
executorTx := c.driver.UnwrapExecutor(tx)
148148
149-
if err := executorTx.QueuePause(ctx, &riverdriver.QueuePauseParams{
149+
if err := executorTx.QueuePause(ctx, &QueuePauseParams{
150150
Name: name,
151151
Now: c.baseService.Time.NowUTCOrNil(), // <-- accessed here
152152
Schema: c.config.Schema,

0 commit comments

Comments
 (0)