Skip to content

Commit 005bd6a

Browse files
committed
Fixed warnings
1 parent eb60140 commit 005bd6a

File tree

5 files changed

+17
-17
lines changed

5 files changed

+17
-17
lines changed

ydb/docs/en/core/reference/languages-and-apis/ado-net/basic-usage.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,15 @@ A connection to {{ ydb-short-name }} is established using `YdbConnection`.
5151

5252
Opening and closing a logical connection to {{ ydb-short-name }} is an expensive and time-consuming process. Therefore, connections to {{ ydb-short-name }} are pooled. Closing or disposing of a connection does not close the underlying logical connection; rather, it returns it to a pool managed by `Ydb.Sdk.Ado`. When a connection is needed again, a pooled connection is returned. This makes opening and closing operations extremely fast. Do not hesitate to open and close connections often if necessary, rather than keeping a connection open unnecessarily for a long period of time.
5353

54-
#### ClearPool
54+
### ClearPool
5555

5656
Closes idle connections immediately. Active connections close when returned.
5757

5858
```c#
5959
YdbConnection.ClearPool(ydbConnection)
6060
```
6161

62-
#### ClearAllPools
62+
### ClearAllPools
6363

6464
Closes all idle connections across all pools. Active connections close on return.
6565

@@ -69,7 +69,7 @@ YdbConnection.ClearAllPools()
6969

7070
## Data Source
7171

72-
Starting with .NET 7.0, the starting point for any database operation is [DbDataSource](https://learn.microsoft.com/en-us/dotnet/api/system.data.common.dbdatasource).
72+
Starting with .NET 7.0, the starting point for any database operation is [DbDataSource](https://learn.microsoft.com/en-us/dotnet/api/system.data.common.dbdatasource).
7373
7474
The simplest way to create a data source is the following:
7575

@@ -140,7 +140,7 @@ ydbCommand.CommandText = """
140140
DECLARE $series_id AS Uint64;
141141
DECLARE $season_id AS Uint64;
142142
DECLARE $limit_size AS Uint64;
143-
143+
144144
SELECT series_id, season_id, episode_id, air_date, title
145145
FROM episodes WHERE series_id = $series_id AND season_id > $season_id
146146
ORDER BY series_id, season_id, episode_id
@@ -171,7 +171,7 @@ ydbCommand.CommandText = """
171171
""";
172172
ydbCommand.Parameters.Add(new YdbParameter("series_id", DbType.UInt64, 1U));
173173
ydbCommand.Parameters.Add(new YdbParameter("season_id", DbType.UInt64, 1U));
174-
ydbCommand.Parameters.Add(new YdbParameter("limit_size", DbType.UInt64, 3U));
174+
ydbCommand.Parameters.Add(new YdbParameter("limit_size", DbType.UInt64, 3U));
175175
```
176176

177177
With ADO.NET, the query will be prepared for you so that the variables match [YQL](../../yql/reference/index.md). The type will be determined according to the [DbType](https://learn.microsoft.com/en-us/dotnet/api/system.data.dbtype) or the .NET type of the value itself.

ydb/docs/en/core/reference/languages-and-apis/ado-net/yandex-cloud.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ This package provides the necessary tools for authenticating with Yandex Cloud s
1515
Supported Yandex.Cloud authentication methods:
1616

1717
- `Ydb.Sdk.Yc.ServiceAccountProvider`. [Service account](https://yandex.cloud/en/docs/iam/concepts/users/service-account) authentication, sample usage:
18-
18+
1919
```c#
2020
var saProvider = new ServiceAccountProvider(
2121
saFilePath: file, // Path to file with service account JSON info
@@ -24,7 +24,7 @@ Supported Yandex.Cloud authentication methods:
2424
```
2525

2626
- `Ydb.Sdk.Yc.MetadataProvider`. [Metadata service](https://yandex.cloud/en/docs/compute/operations/vm-connect/auth-inside-vm) authentication, works inside Yandex Cloud VMs and Cloud Functions. Sample usage:
27-
27+
2828
```c#
2929
var metadataProvider = new MetadataProvider(loggerFactory: loggerFactory);
3030
```

ydb/docs/ru/core/integrations/orm/dapper.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ await connection.ExecuteAsync("""
1717
Id Int32,
1818
Name Text,
1919
Email Text,
20-
PRIMARY KEY (Id)
20+
PRIMARY KEY (Id)
2121
);
2222
""");
2323

@@ -43,7 +43,7 @@ internal class User
4343

4444
За дополнительной информацией обратитесь к официальной [документации](https://www.learndapper.com/).
4545

46-
### Важные аспекты
46+
## Важные аспекты
4747

4848
Для того чтобы Dapper интерпретировал `DateTime` как {{ ydb-short-name }} тип `Datetime`. Выполните следующий код:
4949

ydb/docs/ru/core/reference/languages-and-apis/ado-net/basic-usage.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,15 @@
5151

5252
Открытие и закрытие логического соединения с {{ ydb-short-name }} является дорогостоящим и трудоемким процессом. Поэтому соединения с {{ ydb-short-name }} объединяются в пул. Закрытие или удаление соединения не проводит к закрытию основного логического соединения; скорее, она возвращается в пул, управляемый `Ydb.Sdk.Ado`. Когда соединение снова понадобится, будет возвращено соединение из пула. Это делает операции открытия и закрытия быстрыми. Не стесняйтесь часто открывать и закрывать соединения, если это необходимо, вместо того, чтобы без необходимости поддерживать соединение открытым в течении длительного периода времени.
5353

54-
#### ClearPool
54+
### ClearPool
5555

5656
Немедленно закрывает незанятые соединения. Активные соединения закрываются при возврате.
5757

5858
```c#
5959
YdbConnection.ClearPool(ydbConnection)
6060
```
6161

62-
#### ClearAllPools
62+
### ClearAllPools
6363

6464
Закрывает все незанятые соединения во всех пулах. Активные соединения закрываются при возврате.
6565

@@ -69,7 +69,7 @@ YdbConnection.ClearAllPools()
6969

7070
## Data Source
7171

72-
Начиная с .NET 7.0, отправной точкой для любой операции с базой данных является [DbDataSource](https://learn.microsoft.com/en-us/dotnet/api/system.data.common.dbdatasource).
72+
Начиная с .NET 7.0, отправной точкой для любой операции с базой данных является [DbDataSource](https://learn.microsoft.com/en-us/dotnet/api/system.data.common.dbdatasource).
7373
7474
Самый простой способ создать источник данных заключается в следующем:
7575

@@ -111,7 +111,7 @@ while (await reader.ReadAsync())
111111
112112
1. [ExecuteNonQueryAsync](https://learn.microsoft.com/ru-ru/dotnet/api/system.data.common.dbcommand.executenonqueryasync): выполняет SQL, который не возвращает никаких результатов, обычно это инструкции `INSERT`, `UPDATE` или `DELETE`.
113113
114-
{% note warning %}
114+
{% note warning %}
115115

116116
{{ ydb-short-name }} не возвращает количество затронутых строк.
117117

@@ -140,7 +140,7 @@ ydbCommand.CommandText = """
140140
DECLARE $series_id AS Uint64;
141141
DECLARE $season_id AS Uint64;
142142
DECLARE $limit_size AS Uint64;
143-
143+
144144
SELECT series_id, season_id, episode_id, air_date, title
145145
FROM episodes WHERE series_id = $series_id AND season_id > $season_id
146146
ORDER BY series_id, season_id, episode_id
@@ -171,7 +171,7 @@ ydbCommand.CommandText = """
171171
""";
172172
ydbCommand.Parameters.Add(new YdbParameter("series_id", DbType.UInt64, 1U));
173173
ydbCommand.Parameters.Add(new YdbParameter("season_id", DbType.UInt64, 1U));
174-
ydbCommand.Parameters.Add(new YdbParameter("limit_size", DbType.UInt64, 3U));
174+
ydbCommand.Parameters.Add(new YdbParameter("limit_size", DbType.UInt64, 3U));
175175
```
176176

177177
ADO.NET за вас подготовит запрос, чтобы переменные соответствовали [YQL](../../../yql/reference/index.md). А тип будет определен согласно [DbType](https://learn.microsoft.com/en-us/dotnet/api/system.data.dbtype) или .NET тип самого значения.

ydb/docs/ru/core/reference/languages-and-apis/ado-net/yandex-cloud.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ dotnet add package Ydb.Sdk.Yc.Auth
1515
Поддерживаемые Yandex Cloud методы аутентификации:
1616

1717
- `Ydb.Sdk.Yc.ServiceAccountProvider` — аутентификация через [сервисный аккаунт](https://yandex.cloud/ru/docs/iam/concepts/users/service-accounts). Пример использования:
18-
18+
1919
```c#
2020
var saProvider = new ServiceAccountProvider(
2121
saFilePath: file, // Path to file with service account JSON info
@@ -24,7 +24,7 @@ dotnet add package Ydb.Sdk.Yc.Auth
2424
```
2525

2626
- `Ydb.Sdk.Yc.MetadataProvider` — аутентификация через [сервис метаданных](https://yandex.cloud/ru/docs/compute/operations/vm-connect/auth-inside-vm); используется внутри облачных виртуальных машин Яндекса и облачных функций. Пример использования:
27-
27+
2828
```c#
2929
var metadataProvider = new MetadataProvider(loggerFactory: loggerFactory);
3030
```

0 commit comments

Comments
 (0)