Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

basic example query service #13424

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions ydb/docs/ru/core/dev/example-app/go/_includes/run_custom.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,18 @@

Выполните команду по следующему образцу:

<<<<<<< HEAD
``` bash
( export <auth_mode_var>="<auth_mode_value>" && cd ydb-go-sdk/examples && \
go run . -ydb="<endpoint>/<database>" )
=======
```bash
( export <auth_mode_var>="<auth_mode_value>" && cd ydb-go-examples && \
go run ./basic -ydb="<endpoint>?database=<database>" )
>>>>>>> main
```

, где
где

- `<endpoint>` - [эндпоинт](../../../../concepts/connect.md#endpoint).
- `<database>` - [путь базы данных](../../../../concepts/connect.md#database).
Expand All @@ -20,5 +26,5 @@ go run ./basic -ydb="<endpoint>?database=<database>" )

```bash
( export YDB_ACCESS_TOKEN_CREDENTIALS="t1.9euelZqOnJuJlc..." && cd ydb-go-examples && \
go run ./basic -ydb="grpcs://ydb.example.com:2135?database=/somepath/somelocation" )
go run ./basic -ydb="grpcs://ydb.example.com:2135/somepath/somelocation" )
```
6 changes: 3 additions & 3 deletions ydb/docs/ru/core/dev/example-app/go/_includes/run_docker.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Для соединения с развернутой локальной базой данных {{ ydb-short-name }} по сценарию [Docker](../../../../quickstart.md) в конфигурации по умолчанию выполните следующую команду:

```bash
( export YDB_ANONYMOUS_CREDENTIALS=1 && cd ydb-go-examples && \
go run ./basic -ydb="grpc://localhost:2136?database=/local" )
``` bash
( export YDB_ANONYMOUS_CREDENTIALS=1 && cd ydb-go-sdk/examples && \
go run ./basic/native/query -ydb="grpc://localhost:2136/local" )
```
Loading
Loading