#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

22 stable releases

4.5.16 Oct 8, 2024
4.5.12 Aug 28, 2024
4.5.11 Jul 18, 2024
4.5.6 Mar 28, 2024
0.1.20 Nov 23, 2022

#111 in #database-driver

Download history 537/week @ 2024-07-18 518/week @ 2024-07-25 417/week @ 2024-08-01 354/week @ 2024-08-08 288/week @ 2024-08-15 375/week @ 2024-08-22 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 225/week @ 2024-10-31

1,566 downloads per month
Used in 7 crates (4 directly)

Apache-2.0

415KB
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
~373K SLoC