#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

#110 in #database-driver

Download history 386/week @ 2024-07-18 498/week @ 2024-07-25 473/week @ 2024-08-01 432/week @ 2024-08-08 357/week @ 2024-08-15 376/week @ 2024-08-22 325/week @ 2024-08-29 489/week @ 2024-09-05 396/week @ 2024-09-12 805/week @ 2024-09-19 487/week @ 2024-09-26 803/week @ 2024-10-03 417/week @ 2024-10-10 603/week @ 2024-10-17 384/week @ 2024-10-24 372/week @ 2024-10-31

1,896 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
~340K SLoC