#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

#119 in #database-driver

Download history 257/week @ 2024-08-29 306/week @ 2024-09-05 427/week @ 2024-09-12 400/week @ 2024-09-19 489/week @ 2024-09-26 736/week @ 2024-10-03 406/week @ 2024-10-10 534/week @ 2024-10-17 288/week @ 2024-10-24 249/week @ 2024-10-31 233/week @ 2024-11-07 199/week @ 2024-11-14 293/week @ 2024-11-21 555/week @ 2024-11-28 330/week @ 2024-12-05 279/week @ 2024-12-12

1,476 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–23MB
~376K SLoC