#sqlx #db #ydb

ydb-unofficial

Unofficial Ydb client library written on rust

15 releases (5 breaking)

0.6.5 Feb 25, 2024
0.6.3 Jan 2, 2024
0.6.2 Sep 10, 2023
0.4.1 Jul 26, 2023

#1990 in Database interfaces

Download history 6/week @ 2023-12-28 1/week @ 2024-01-04 237/week @ 2024-02-22 44/week @ 2024-02-29 8/week @ 2024-03-07 3/week @ 2024-03-14 36/week @ 2024-03-28 19/week @ 2024-04-04

55 downloads per month

Apache-2.0

110KB
2K SLoC

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

Goals:

  • 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) (feature pool)
  • Token authentication
  • Service account key authentication (feature auth-sa)
  • Metadata authentication
  • Query helpers (a lot of)
  • sqlx integration - partially done (feature sqlx):
    • Connection string
    • connection
    • binding parameters
    • preparing statements
    • transaction manager
    • DML (data) operations
    • DDL (scheme) operations
    • primitive types (bool, i8, i32, i64, u8, u32, u64, f32, f64, Vec<u8>, String)
    • date types (Date, Datetime, Timestamp, Interval)
    • Decimal type
    • connection pool balancing for discovery
    • compile-time checked queries
    • migrations
    • multiple transaction modes
    • log statements
  • operation parameters

Dependencies

~6–21MB
~303K SLoC