#orm #mysql #postgresql #sqlite

rbdc-mssql

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

23 releases (stable)

4.5.7 Dec 1, 2024
4.5.5 Oct 8, 2024
4.5.4 Mar 25, 2024
4.5.1 Nov 27, 2023
0.1.18 Oct 26, 2022

#275 in #mysql

Download history 190/week @ 2024-09-25 665/week @ 2024-10-02 343/week @ 2024-10-09 461/week @ 2024-10-16 290/week @ 2024-10-23 205/week @ 2024-10-30 205/week @ 2024-11-06 239/week @ 2024-11-13 247/week @ 2024-11-20 580/week @ 2024-11-27 401/week @ 2024-12-04 257/week @ 2024-12-11 172/week @ 2024-12-18 185/week @ 2024-12-25 263/week @ 2025-01-01 436/week @ 2025-01-08

1,085 downloads per month
Used in rbatis

Apache-2.0

125KB
3.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};

Dependencies

~7–21MB
~320K SLoC