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

rbdc-pg

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

22 stable releases

4.5.16 Oct 8, 2024
4.5.12 Aug 28, 2024
4.5.11 Jul 18, 2024
4.5.6 Mar 28, 2024
0.1.20 Nov 23, 2022

#111 in #database-driver

Download history 259/week @ 2024-07-22 629/week @ 2024-07-29 404/week @ 2024-08-05 287/week @ 2024-08-12 332/week @ 2024-08-19 317/week @ 2024-08-26 305/week @ 2024-09-02 373/week @ 2024-09-09 309/week @ 2024-09-16 546/week @ 2024-09-23 506/week @ 2024-09-30 643/week @ 2024-10-07 496/week @ 2024-10-14 444/week @ 2024-10-21 227/week @ 2024-10-28 242/week @ 2024-11-04

1,478 downloads per month
Used in 7 crates (4 directly)

Apache-2.0

415KB
10K 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

~9–26MB
~380K SLoC