Skip to content

Latest commit

 

History

History
119 lines (69 loc) · 2.7 KB

database.rst

File metadata and controls

119 lines (69 loc) · 2.7 KB

Database

Site:http://diesel.rs/
Repo:https://github.com/diesel-rs/diesel

Diesel 是 Rust 的一個 ORM Framework, 提供方便的 derive 可以幫 struct 產生需要的 SQL Query。

  • schema
    • 用於在編譯時期檢查 SQL query 是否有問題
    • 可以自己用 table! 定義
    • 可以讓 Diesel 連到資料庫後用 print-schemainfer_schema! 自動產生使用 table! 的程式碼
Repo:https://github.com/sfackler/r2d2

r2d2 是 Rust 的一個資料庫連線 Pool 的 Library, 藉此可以避免在每次操作時重複建立連線。

Repo:https://github.com/spacejam/sled

相關專案:

  • MeiliDB
    • A full-text search database using sled
Site:https://tikv.org/
Repo:https://github.com/tikv/tikv

TiKV 本來是 PingCAP 公司內的專案, 設計上參考了 Google Spanner 和 HBase, 但是加入更多管理和相依套件考量。

TiKV 於 2019 年 5 月加入 CNCF (Cloud Native Computing Foundation), 成為 CNCF 旗下扶持的專案。

Repo:https://github.com/indradb/indradb
Repo:https://github.com/graphql-rust/juniper

其他語言實做: