#orm #postgresql #mysql #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.5 Oct 8, 2024
4.5.4 Mar 25, 2024
4.5.3 Feb 1, 2024
4.5.1 Nov 27, 2023
0.1.18 Oct 26, 2022

#260 in #mysql

Download history 213/week @ 2024-07-21 267/week @ 2024-07-28 174/week @ 2024-08-04 201/week @ 2024-08-11 224/week @ 2024-08-18 177/week @ 2024-08-25 281/week @ 2024-09-01 264/week @ 2024-09-08 184/week @ 2024-09-15 221/week @ 2024-09-22 236/week @ 2024-09-29 718/week @ 2024-10-06 312/week @ 2024-10-13 497/week @ 2024-10-20 207/week @ 2024-10-27 197/week @ 2024-11-03

1,243 downloads per month
Used in rbatis

Apache-2.0

120KB
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
~318K SLoC