File tree Expand file tree Collapse file tree 3 files changed +147
-189
lines changed
ydb/docs/ru/core/dev/example-app/go Expand file tree Collapse file tree 3 files changed +147
-189
lines changed Original file line number Diff line number Diff line change 5
5
Выполните команду по следующему образцу:
6
6
7
7
``` bash
8
- ( export < auth_mode_var> =" <auth_mode_value>" && cd ydb-go-examples && \
8
+ ( export < auth_mode_var> =" <auth_mode_value>" && cd ydb-go-sdk/ examples && \
9
9
go run ./basic -ydb=" <endpoint>?database=<database>" )
10
10
```
11
11
12
- , где
12
+ где
13
13
14
14
- ` <endpoint> ` - [ эндпоинт] ( ../../../../concepts/connect.md#endpoint ) .
15
15
- ` <database> ` - [ путь базы данных] ( ../../../../concepts/connect.md#database ) .
@@ -19,6 +19,6 @@ go run ./basic -ydb="<endpoint>?database=<database>" )
19
19
Например:
20
20
21
21
``` bash
22
- ( export YDB_ACCESS_TOKEN_CREDENTIALS=" t1.9euelZqOnJuJlc..." && cd ydb-go-examples && \
23
- go run ./basic -ydb=" grpcs://ydb.example.com:2135?database= /somepath/somelocation" )
22
+ ( export YDB_ACCESS_TOKEN_CREDENTIALS=" t1.9euelZqOnJuJlc..." && cd ydb-go-sdk/ examples && \
23
+ go run ./basic -ydb=" grpcs://ydb.example.com:2135/somepath/somelocation" )
24
24
```
Original file line number Diff line number Diff line change 1
1
Для соединения с развернутой локальной базой данных {{ ydb-short-name }} по сценарию [ Docker] ( ../../../../quickstart.md ) в конфигурации по умолчанию выполните следующую команду:
2
2
3
- ``` bash
4
- ( export YDB_ANONYMOUS_CREDENTIALS=1 && cd ydb-go-examples && \
5
- go run ./basic -ydb=" grpc://localhost:2136?database= /local" )
3
+ ``` bash
4
+ ( export YDB_ANONYMOUS_CREDENTIALS=1 && cd ydb-go-sdk/ examples && \
5
+ go run ./basic/native/query -ydb=" grpc://localhost:2136/local" )
6
6
```
You can’t perform that action at this time.
0 commit comments