rstdev-storage

Crates.iorstdev-storage
lib.rsrstdev-storage
version0.3.6
sourcesrc
created_at2024-03-09 13:32:16.912876
updated_at2024-07-14 15:51:51.398218
descriptionA library to manage external storage database instance and connection
homepage
repositoryhttps://github.com/rstlix0x0/rstdev/rstdev-storage
max_upload_size
id1167818
size37,202
(rstlix0x0)

documentation

https://docs.rs/rstdev-storage

README

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.6", features = ["mysql"]}

Want to install RocksDB engine implementation

[dependencies]
rstdev-storage = {version = "0.3.6", features = ["rocksdb"]}
Commit count: 0

cargo fmt