#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

new 4.5.16 Dec 13, 2024
4.5.12 Oct 8, 2024
4.5.7 Mar 28, 2024
4.5.2 Dec 19, 2023
0.1.18 Nov 23, 2022

#117 in #database-driver

Download history 392/week @ 2024-08-23 372/week @ 2024-08-30 470/week @ 2024-09-06 352/week @ 2024-09-13 854/week @ 2024-09-20 455/week @ 2024-09-27 802/week @ 2024-10-04 416/week @ 2024-10-11 647/week @ 2024-10-18 354/week @ 2024-10-25 415/week @ 2024-11-01 307/week @ 2024-11-08 329/week @ 2024-11-15 458/week @ 2024-11-22 834/week @ 2024-11-29 324/week @ 2024-12-06

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

Apache-2.0

295KB
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
~344K SLoC