ydb 0.5.2

Crate contains generated low-level grpc code from YDB API protobuf, used as base for ydb crate
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::ClientBuilder;
use once_cell::sync::Lazy;

pub(crate) static CONNECTION_STRING: Lazy<String> = Lazy::new(|| {
    std::env::var("YDB_CONNECTION_STRING")
        .unwrap_or_else(|_| "grpc://localhost:2136/local".to_string())
        .parse()
        .unwrap()
});

pub(crate) fn test_client_builder() -> ClientBuilder {
    CONNECTION_STRING.as_str().parse().unwrap()
}