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
  • sqlx integration

Re-exports

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
  • poolpool
    Implementation of pool of YdbConnection. Uses method list_endpoints of DiscoveryServiceClient to create pool on multiple endpoints

Traits

Type Definitions

  • Ascii encoded value to use in grpc metadata