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
Provides an ADO.NET standard implementation for working with YDB, as well as native clients for lightweight interaction with YDB.
5
5
6
6
## Prerequisites
7
-
.NET 6 or .NET 7
7
+
.NET 6 or above
8
+
9
+
## Features
10
+
11
+
-**ADO.NET**: Full support for standard ADO.NET interfaces including DbConnection, DbCommand, DbDataReader, and more. This allows you to use familiar methods and patterns for database operations while leveraging the power and flexibility of YDB.
12
+
-**QueryClient**: A lightweight, high-performance native client for direct interaction with YDB tables.
8
13
9
14
## Versioning
10
15
@@ -18,7 +23,48 @@ Major version zero (`0.y.z`) is considered prerelease and **do not guarantee any
18
23
dotnet add package Ydb.Sdk
19
24
```
20
25
21
-
## Usage
26
+
## Usage ADO.NET
27
+
28
+
Example of using ADO.NET to execute a SQL query against YDB:
To begin your work with YDB, create an instance of `Ydb.Sdk.Driver` class:
24
70
```c#
@@ -36,6 +82,8 @@ using var driver = new Driver(
36
82
awaitdriver.Initialize(); // Make sure to await driver initialization
37
83
```
38
84
85
+
After you have driver instance, you can use it to create clients for different YDB services.
86
+
39
87
### Credentials
40
88
YDB SDK provides several standard ways for authentication:
41
89
1)`Ydb.Sdk.Auth.AnonymousProvider`. Anonymous YDB access, mainly for tests purposes.
@@ -44,17 +92,15 @@ YDB SDK provides several standard ways for authentication:
44
92
45
93
For Yandex.Cloud specific authentication methods, consider using **[ydb-dotnet-yc](https://github.com/ydb-platform/ydb-dotnet-yc)**.
46
94
47
-
### TableClient
48
-
After you have driver instance, you can use it to create clients for different YDB services. The straightforward example of querying data may look similar to the following example:
95
+
### QueryClient
96
+
97
+
Example of using a query client to execute a simple query:
49
98
50
99
```c#
51
-
// Create Ydb.Sdk.Table.TableClient using Driver instance.
0 commit comments