#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

#114 in #database-driver

Download history 268/week @ 2024-07-25 222/week @ 2024-08-01 157/week @ 2024-08-08 104/week @ 2024-08-15 39/week @ 2024-08-22 32/week @ 2024-08-29 17/week @ 2024-09-05 52/week @ 2024-09-12 100/week @ 2024-09-19 95/week @ 2024-09-26 288/week @ 2024-10-03 159/week @ 2024-10-10 234/week @ 2024-10-17 124/week @ 2024-10-24 25/week @ 2024-10-31 60/week @ 2024-11-07

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

Apache-2.0

230KB
6K 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–38MB
~650K SLoC