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

rbdc-sqlite

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

10 stable releases

4.5.5 Jul 3, 2024
4.5.4 Mar 28, 2024
4.5.2 Nov 27, 2023
4.3.12 Jul 14, 2023
0.1.14 Sep 19, 2022

#113 in #database-driver

Download history 147/week @ 2024-07-14 33/week @ 2024-07-21 390/week @ 2024-07-28 170/week @ 2024-08-04 118/week @ 2024-08-11 79/week @ 2024-08-18 34/week @ 2024-08-25 25/week @ 2024-09-01 20/week @ 2024-09-08 62/week @ 2024-09-15 119/week @ 2024-09-22 105/week @ 2024-09-29 273/week @ 2024-10-06 147/week @ 2024-10-13 318/week @ 2024-10-20 20/week @ 2024-10-27

765 downloads per month
Used in 6 crates (3 directly)

Apache-2.0

230KB
5.5K 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};

lib.rs:

SQLite database driver.

Dependencies

~24–37MB
~658K SLoC