#storage #postgresql #connection #sqlx #mysql #abstraction #external

rstdev-storage

A library to manage external storage database instance and connection

2 unstable releases

0.3.0 May 13, 2024
0.1.0 Mar 9, 2024

#23 in #external

Download history 107/week @ 2024-03-05 23/week @ 2024-03-12 36/week @ 2024-03-19 1/week @ 2024-03-26 7/week @ 2024-04-02 80/week @ 2024-05-07 50/week @ 2024-05-14 8/week @ 2024-05-21 3/week @ 2024-05-28

141 downloads per month

Apache-2.0

32KB
640 lines

rstdev-storage

A rstdev-storage is a library that provide a base abstraction for any external storages including for it's implementations.

The main purpose of this library is to provide a base layer of abstraction that designed to be working side-by-side with the object that implement Repository Pattern.

Current supported storage engines:

  • MySQL
  • Postgres
  • RocksDB

INFO

For all SQL storage implementations, it will using sqlx library

Installation

[dependencies]
rstdev-storage = {version = "0.3.0"}

Features

  • mysql, will only install and load base sqlx library with runtime-tokio and mysql enabled
  • postgresql, will only install and load base sqlx library with runtime-tokio and posgres enabled
  • rocksdb, will only install and load engine implementation of rust-rocksdb

Example:

Want to install MySQL (or PostgreSQL) engine implementation

[dependencies]
rstdev-storage = {version = "0.3.0", features = ["mysql"]}

Want to install RocksDB engine implementation

[dependencies]
rstdev-storage = {version = "0.3.0", features = ["rocksdb"]}

Dependencies

~14–34MB
~512K SLoC