#orm #postgresql #mysql #sqlite #database-driver

rbdc-pg

The Rust SQL Toolkit and ORM Library. An async, pure Rust SQL crate featuring compile-time Dynamic SQL

17 stable releases

4.5.17 Dec 1, 2024
4.5.16 Oct 8, 2024
4.5.15 Sep 29, 2024
4.5.11 Jul 18, 2024
0.1.20 Nov 23, 2022

#121 in #database-driver

Download history 452/week @ 2024-09-21 467/week @ 2024-09-28 734/week @ 2024-10-05 398/week @ 2024-10-12 604/week @ 2024-10-19 204/week @ 2024-10-26 259/week @ 2024-11-02 198/week @ 2024-11-09 213/week @ 2024-11-16 311/week @ 2024-11-23 610/week @ 2024-11-30 393/week @ 2024-12-07 181/week @ 2024-12-14 139/week @ 2024-12-21 162/week @ 2024-12-28 403/week @ 2025-01-04

958 downloads per month
Used in 7 crates (4 directly)

Apache-2.0

425KB
10K SLoC

RBDC

  • an database driver abstract

  • support zero copy serde-ser/de

Database -> bytes ->rbs::Value-> Struct(User Define) Struct(User Define) -> rbs::ValueRef -> ref clone() -> Database

how to define my driver?

should impl trait and load driver

  • impl trait rbdc::db::{Driver, MetaData, Row, Connection, ConnectOptions, Placeholder};

Dependencies

~9–27MB
~386K SLoC