Skip to content

Commit f1fc1d7

Browse files
Update README.md
1 parent f0c97b4 commit f1fc1d7

File tree

1 file changed

+0
-59
lines changed

1 file changed

+0
-59
lines changed

README.md

Lines changed: 0 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ Provides an ADO.NET standard implementation for working with YDB, as well as nat
99
## Features
1010

1111
- **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.
1312

1413
## Versioning
1514

@@ -64,64 +63,6 @@ while (await ydbDataReader.ReadAsync())
6463
}
6564
```
6665

67-
## Usage Native clients
68-
69-
To begin your work with YDB, create an instance of `Ydb.Sdk.Driver` class:
70-
```c#
71-
var config = new DriverConfig(
72-
endpoint: endpoint, // Database endpoint, "grpcs://host:port"
73-
database: database, // Full database path
74-
credentials: credentialsProvider // Credentials provider, see "Credentials" section
75-
);
76-
77-
using var driver = new Driver(
78-
config: config,
79-
loggerFactory: loggerFactory
80-
);
81-
82-
await driver.Initialize(); // Make sure to await driver initialization
83-
```
84-
85-
After you have driver instance, you can use it to create clients for different YDB services.
86-
87-
### Credentials
88-
YDB SDK provides several standard ways for authentication:
89-
1) `Ydb.Sdk.Auth.AnonymousProvider`. Anonymous YDB access, mainly for tests purposes.
90-
2) `Ydb.Sdk.Auth.TokenProvider`. Token authentication for OAuth-like tokens.
91-
3) `Ydb.Sdk.Auth.StaticCredentialsProvider`. Username and password based authentication.
92-
93-
For Yandex.Cloud specific authentication methods, consider using **[ydb-dotnet-yc](https://github.com/ydb-platform/ydb-dotnet-yc)**.
94-
95-
### QueryClient
96-
97-
Example of using a query client to execute a simple query:
98-
99-
```c#
100-
// Create QueryClient using Driver instance.
101-
using var queryClient = new QueryClient(driver);
102-
103-
var row = await queryClient.ReadRow(@"
104-
DECLARE $id AS Uint64;
105-
106-
SELECT
107-
series_id,
108-
title,
109-
release_date
110-
FROM series
111-
WHERE series_id = $id;
112-
",
113-
new Dictionary<string, YdbValue>
114-
{
115-
{ "$id", YdbValue.MakeUint64(id) }
116-
}
117-
);
118-
119-
Console.WriteLine($"> Series, " +
120-
$"series_id: {(ulong?)row["series_id"]}, " +
121-
$"title: {(string?)row["title"]}, " +
122-
$"release_date: {(DateTime?)row["release_date"]}");
123-
```
124-
12566
## Examples
12667

12768
See **[examples folder](https://github.com/ydb-platform/ydb-dotnet-sdk/tree/main/examples)**

0 commit comments

Comments
 (0)