Skip to content

Commit 6e0a49e

Browse files
committed
fixes of SQL.md
1 parent fd866bb commit 6e0a49e

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

SQL.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ Data source name parameters:
6868
## Session pooling <a name="session-pool"></a>
6969

7070
Native driver `ydb-go-sdk/v3` implements the internal session pool, which uses with `db.Table().Do()` or `db.Table().DoTx()` methods.
71-
Internal session pool is configured with options like `ydb.WithSessionPoolSizeLimit()` and other.
71+
Internal session pool are configured with options like `ydb.WithSessionPoolSizeLimit()` and other.
7272
Unlike the session pool in the native driver, `database/sql` contains a different implementation of the session pool, which is configured with `*sql.DB.SetMaxOpenConns` and `*sql.DB.SetMaxIdleConns`.
7373
Lifetime of a `YDB` session depends on driver configuration and error occurance, such as `sql.driver.ErrBadConn`.
7474
`YDB` driver for `database/sql` includes the logic to transform the internal `YDB` error codes into `sql.driver.ErrBadConn` and other retryable and non-retryable error types.
@@ -302,7 +302,8 @@ nativeDriver.Table().Do(ctx, func(ctx context.Context, s table.Session) error {
302302
## Logging driver events <a name="logging"></a>
303303

304304
Adding a logging driver events allowed only if connection to `YDB` opens over [connector](##init-connector).
305-
Adding of logging provides with [debug adapters](README.md#debug) and wrotes in [migration notes](MIGRATION_v2_v3.md#logs)
305+
Adding of logging provides with [debug adapters](README.md#debug) and wrotes in [migration notes](MIGRATION_v2_v3.md#logs).
306+
306307
Example of adding `zap` logging:
307308
```go
308309
import (
@@ -327,7 +328,8 @@ db := sql.OpenDB(connector)
327328
## Add metrics about SDK's events <a name="metrics"></a>
328329

329330
Adding of driver events monitoring allowed only if connection to `YDB` opens over [connector](##init-connector).
330-
Monitoring of driver events provides with [debug adapters](README.md#debug) and wrotes in [migration notes](MIGRATION_v2_v3.md#metrics)
331+
Monitoring of driver events provides with [debug adapters](README.md#debug) and wrotes in [migration notes](MIGRATION_v2_v3.md#metrics).
332+
331333
Example of adding `Prometheus` monitoring:
332334
```go
333335
import (
@@ -352,7 +354,8 @@ db := sql.OpenDB(connector)
352354
## Add `Jaeger` traces about driver events <a name="jaeger"></a>
353355

354356
Adding of `Jaeger` traces about driver events allowed only if connection to `YDB` opens over [connector](##init-connector).
355-
`Jaeger` tracing provides with [debug adapters](README.md#debug) and wrotes in [migration notes](MIGRATION_v2_v3.md#jaeger)
357+
`Jaeger` tracing provides with [debug adapters](README.md#debug) and wrotes in [migration notes](MIGRATION_v2_v3.md#jaeger).
358+
356359
Example of adding `Jaeger` tracing:
357360
```go
358361
import (

0 commit comments

Comments
 (0)