Skip to content

Commit 832fac4

Browse files
committed
SQL.md
1 parent b5574a1 commit 832fac4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

SQL.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,10 @@ res, err = db.ExecContext(ydb.WithQueryMode(ctx, ydb.SchemeQueryMode),
197197
Default `YDB`'s transaction control mode is a `SerializableReadWrite`.
198198
Default transaction control mode can be changed outside of interactive transactions by updating the context object:
199199
```go
200-
ctx := ydb.WithTxControl(ctx, table.OnlineReadOnlyTxControl())
200+
rows, err := db.QueryContext(ydb.WithTxControl(ctx,
201+
table.OnlineReadOnlyTxControl()),
202+
"SELECT series_id, title, release_date FROM `/full/path/of/table/series`;"
203+
)
201204
```
202205

203206
## Retry helpers for `YDB` `database/sql` driver <a name="retry"></a>

0 commit comments

Comments
 (0)