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

rbdc-mysql

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

17 stable releases

4.5.12 Oct 8, 2024
4.5.8 Aug 5, 2024
4.5.7 Mar 28, 2024
4.5.2 Dec 19, 2023
0.1.18 Nov 23, 2022

#111 in #database-driver

Download history 512/week @ 2024-07-27 488/week @ 2024-08-03 412/week @ 2024-08-10 355/week @ 2024-08-17 366/week @ 2024-08-24 401/week @ 2024-08-31 471/week @ 2024-09-07 342/week @ 2024-09-14 857/week @ 2024-09-21 455/week @ 2024-09-28 806/week @ 2024-10-05 418/week @ 2024-10-12 636/week @ 2024-10-19 368/week @ 2024-10-26 395/week @ 2024-11-02 243/week @ 2024-11-09

1,713 downloads per month
Used in 13 crates (9 directly)

Apache-2.0

290KB
7K 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

~8–22MB
~343K SLoC