Skip to content

Commit a97b436

Browse files
author
Viktor Pentyukhov
committed
Supported retries in database/sql generation for ydb (Related to #3)
1 parent 96ae6e7 commit a97b436

File tree

12 files changed

+489
-103
lines changed

12 files changed

+489
-103
lines changed

examples/authors/sqlc.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ sql:
5252
package: authors
5353
out: ydb
5454
emit_json_tags: true
55+
ydb_retry_idempotent: true
5556

5657

5758
rules:

examples/authors/ydb/db.go

Lines changed: 47 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/authors/ydb/query.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ WHERE name = $p0;
1313
SELECT * FROM authors
1414
WHERE bio IS NULL;
1515

16-
-- name: Count :one
16+
-- name: CountAuthors :one
1717
SELECT COUNT(*) FROM authors;
1818

19-
-- name: COALESCE :many
19+
-- name: Coalesce :many
2020
SELECT id, name, COALESCE(bio, 'Null value!') FROM authors;
2121

2222
-- name: CreateOrUpdateAuthor :execresult

examples/authors/ydb/query.sql.go

Lines changed: 123 additions & 76 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)