#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

12 stable releases

new 4.5.7 Dec 18, 2024
4.5.5 Jul 3, 2024
4.5.4 Mar 28, 2024
4.5.2 Nov 27, 2023
0.1.14 Sep 19, 2022

#121 in #database-driver

Download history 35/week @ 2024-08-26 24/week @ 2024-09-02 19/week @ 2024-09-09 62/week @ 2024-09-16 124/week @ 2024-09-23 202/week @ 2024-09-30 174/week @ 2024-10-07 262/week @ 2024-10-14 203/week @ 2024-10-21 19/week @ 2024-10-28 42/week @ 2024-11-04 51/week @ 2024-11-11 71/week @ 2024-11-18 322/week @ 2024-11-25 268/week @ 2024-12-02 124/week @ 2024-12-09

787 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–37MB
~648K SLoC