Crate rstdev_storage
source ·Expand description
§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 implementations:
- MySQL
- Postgres
INFO
For all SQL storage implementations, it will using sqlx library
§Installation
[dependencies]
rstdev-storage = {version = "0.1.0"}
§Features
mysql, will only install and load basesqlxlibrary withruntime-tokioandmysqlenabledpostgresql, will only install and load baessqlxlibrary withruntime-tokioandposgresenabled
Example:
[dependencies]
rstdev-storage = {version = "0.1.0", features = ["mysql"]}
Modules§
sqlmodule provide basic implementation ofStoragethat build on top ofsqlxlibrary