#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

18 stable releases

4.5.17 Dec 23, 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

#121 in #database-driver

Download history 866/week @ 2024-09-22 479/week @ 2024-09-29 778/week @ 2024-10-06 419/week @ 2024-10-13 610/week @ 2024-10-20 396/week @ 2024-10-27 361/week @ 2024-11-03 322/week @ 2024-11-10 324/week @ 2024-11-17 513/week @ 2024-11-24 811/week @ 2024-12-01 953/week @ 2024-12-08 477/week @ 2024-12-15 391/week @ 2024-12-22 205/week @ 2024-12-29 603/week @ 2025-01-05

1,799 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
~352K SLoC