Crate ydb_unofficial
source ·Expand description
Unofficial Ydb Client library
There is an alternative of ydb
Targets:
- more usability
- more freedom to use wrappers or raw objects from grpc bindings
- ability to create your own implementation of common traits, like
Credentials - easy to use pool objects
Features:
- YQL Query for data (like DML)
- YQL Query for sheme (like DDL)
- Connect over grpcs (with tls)
- Connect over grpc (without tls) - not worked, unknown cause
-
Connection pool (with
deadpool) - Token authentication
- Service account key authentication
- Metadata authentication
- Query helpers (a lot of)
- Connection string
-
sqlxintegration
Re-exports
pub use client::YdbConnection;pub use client::YdbTransaction;
Modules
- Staff to implement authentication to Ydb. You can make your own auth by implement
Credentials - Common Ydb client, that wraps GRPC(s) transport with needed headers
- Some error types that may appear when interacting with Ydb
- A lot of autogenerated (with
tonic) grpc-types from ydb .proto files - pool
poolImplementation of pool ofYdbConnection. Uses methodlist_endpointsofDiscoveryServiceClientto create pool on multiple endpoints
Traits
- The trait to invoke payload result from response. See examples in
crate::client
Type Definitions
- Ascii encoded value to use in grpc metadata