#database #orm #mysql #postgres #sqlite

rbdc-sqlite

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

1 unstable release

Uses new Rust 2021

0.1.14 Sep 19, 2022
0.1.13 Aug 18, 2022

#14 in #tokio-async-std

Download history 57/week @ 2022-08-07 60/week @ 2022-08-14 30/week @ 2022-08-21 5/week @ 2022-08-28 9/week @ 2022-09-04 44/week @ 2022-09-11 38/week @ 2022-09-18 15/week @ 2022-09-25 33/week @ 2022-10-02 34/week @ 2022-10-09 61/week @ 2022-10-16 176/week @ 2022-10-23 37/week @ 2022-10-30 58/week @ 2022-11-06 72/week @ 2022-11-13 52/week @ 2022-11-20

233 downloads per month
Used in 2 crates (via caisin)

Apache-2.0

260KB
7K 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

lib.rs:

SQLite database driver.

Dependencies

~39MB
~815K SLoC