You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+19-3Lines changed: 19 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,8 @@
19
19
5.[Usage](#Usage)
20
20
6.[Credentials](#Credentials)
21
21
7.[Environment variables](#Environ)
22
-
8.[Examples](#examples)
22
+
8.[Ecosystem of debug tools](#Debug)
23
+
9.[Examples](#Examples)
23
24
24
25
## Overview <aname="Overview"></a>
25
26
@@ -57,7 +58,6 @@ go get -u github.com/ydb-platform/ydb-go-sdk/v3
57
58
The straightforward example of querying data may look similar to this:
58
59
59
60
```go
60
-
// Determine timeout for connect or do nothing
61
61
ctx:= context.Background()
62
62
63
63
// connect package helps to connect to database, returns connection object which
@@ -148,6 +148,8 @@ reduce boilerplate overhead for such cases `ydb-go-sdk` provides generic retry l
148
148
## Credentials <aname="Credentials"></a>
149
149
150
150
There are different variants to get `ydb.Credentials` object to get authorized.
151
+
Spatial cases of credentials for `yandex-cloud` provides with package [ydb-go-yc](https://github.com/ydb-platform/ydb-go-yc)
152
+
Package [ydb-go-sdk-auth-environ](https://github.com/ydb-platform/ydb-go-sdk-auth-environ) provide different credentials depending on the environment variables.
151
153
Usage examples can be found [here](https://github.com/ydb-platform/ydb-go-examples/tree/master/cmd/auth).
152
154
153
155
## Environment variables <aname="Environ"></a>
@@ -157,7 +159,21 @@ Name | Type | Default | Description
157
159
`YDB_SSL_ROOT_CERTIFICATES_FILE` | `string` | | path to certificates file
[ydb-go-sdk-metrics](https://github.com/ydb-platform/ydb-go-sdk-metrics) | metrics | common metrics of ydb-go-sdk. Package declare interfaces such as `Registry`, `GaugeVec` and `Gauge` and use it for create `trace.Driver` and `trace.Table` traces |
173
+
[ydb-go-sdk-prometheus](https://github.com/ydb-platform/ydb-go-sdk-prometheus) | metrics | metrics of ydb-go-sdk. Package use [ydb-go-sdk-metrics](https://github.com/ydb-platform/ydb-go-sdk-metrics) package and prometheus types for create `trace.Driver` and `trace.Table` traces | [trace.Driver](https://github.com/ydb-platform/ydb-go-sdk-prometheus/blob/master/internal/cmd/bench/main.go#L87)[trace.Table](https://github.com/ydb-platform/ydb-go-sdk-prometheus/blob/master/internal/cmd/bench/main.go#L91)
174
+
ydb-go-sdk-opentracing | tracing | WIP |
175
+
176
+
## Examples <aname="Examples"></a>
161
177
162
178
More examples are listed in [examples](https://github.com/ydb-platform/ydb-go-examples) repository.
0 commit comments