Skip to content

Commit 12e9c0c

Browse files
authored
Merge pull request #298 from ceth-x86/master
Added installation info to README
2 parents ba7c3d6 + 1bc679d commit 12e9c0c

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

README.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,15 @@
1212
[![Telegram](https://img.shields.io/badge/chat-on%20Telegram-2ba2d9.svg)](https://t.me/YDBPlatform)
1313
[![WebSite](https://img.shields.io/badge/website-ydb.tech-blue.svg)](https://ydb.tech)
1414

15-
Supports `table`, `discovery`, `coordination`, `ratelimiter`, `scheme` and `scripting` clients for `YDB`.
15+
Supports `table`, `discovery`, `coordination`, `ratelimiter`, `scheme` and `scripting` clients for `YDB`.
1616
`YDB` is an open-source Distributed SQL Database that combines high availability and scalability with strict consistency and ACID transactions.
1717

18+
## Installation
19+
20+
```sh
21+
go get -u github.com/ydb-platform/ydb-go-sdk/v3
22+
```
23+
1824
## Example Usage <a name="example"></a>
1925

2026
* connect to YDB
@@ -36,11 +42,11 @@ queryErr := db.Table().Do(ctx, func(ctx context.Context, s table.Session) (err e
3642
}
3743
defer res.Close()
3844
if err = res.NextResultSetErr(ctx); err != nil {
39-
return err
45+
return err
4046
}
4147
for res.NextRow() {
42-
var id int32
43-
var myStr string
48+
var id int32
49+
var myStr string
4450
err = res.ScanNamed(named.Required("id", &id),named.OptionalWithDefault("myStr", &myStr))
4551
if err != nil {
4652
log.Fatal(err)
@@ -94,4 +100,3 @@ Next packages provide debug tooling:
94100
| `YDB_LOG_NO_COLOR` | `bool` | `false` | set any non empty value to disable colouring logs with internal driver logger |
95101
| `GRPC_GO_LOG_VERBOSITY_LEVEL` | `integer` | | set to `99` to see grpc logs |
96102
| `GRPC_GO_LOG_SEVERITY_LEVEL` | `string` | | set to `info` to see grpc logs |
97-

0 commit comments

Comments
 (0)