replit_db 0.1.2

A rust package for supporting Replit database. (Unofficial)
Documentation

replit_db

An unofficial database adapater for Replit Database for Rust!

Installation

cargo add replit_db

Supports

  • Synchronous
  • Asynchronous
  • Type Safety (:skull emoji:)

Example

use replit_db::{self, Synchronous};

fn main() {
    let config = replit_db::Config::new();
    let db = replit_db::Database::new(config);
    let res = db.set("testings".to_string(), "testers".to_string());
    match res {
        Ok(()) => println!("Successful!"),
        Err(e) => println!("{}",e.to_string())
    }
   println!(db.get("testings")).unwrap();
}

All documentations will be in the comment and intellisense. (I hosted my own documentation since docs.rs is slow) Also for asynchronous version please use replit_db::Asynchronous trait.