#database #orm #mysql #postgres #sqlite

rbdc-mysql

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

4 releases (1 stable)

new 4.3.1 Mar 21, 2023
4.2.2 Mar 21, 2023
0.1.20 Feb 7, 2023
0.1.19 Dec 30, 2022
0.1.15 Aug 23, 2022

#9 in #tokio-async-std

Download history 87/week @ 2022-12-02 83/week @ 2022-12-09 111/week @ 2022-12-16 82/week @ 2022-12-23 77/week @ 2022-12-30 73/week @ 2023-01-06 61/week @ 2023-01-13 91/week @ 2023-01-20 96/week @ 2023-01-27 149/week @ 2023-02-03 165/week @ 2023-02-10 257/week @ 2023-02-17 178/week @ 2023-02-24 105/week @ 2023-03-03 202/week @ 2023-03-10 321/week @ 2023-03-17

842 downloads per month
Used in 5 crates (3 directly)

Apache-2.0

340KB
8K 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 Driver
  • impl trait Connection
  • impl trait Statement
  • impl trait ResultSet
  • impl trait MetaData
  • impl trait ConnectOptions

Dependencies

~15–22MB
~501K SLoC