replitdb 0.1.3

A simple Rust client for Replit DB.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Simple Replit Database clients.
//!
//! Provides two clients to interact with Replit DB, [`AsyncClient`] and [`SyncClient`]. The API is modeled after [the NodeJS client].
//!
//! [the NodeJS client]: https://www.npmjs.com/package/@replit/database

mod async_client;
mod sync_client;

pub use async_client::Client as AsyncClient;
pub use sync_client::Client as SyncClient;

const URL_VAR: &str = "REPLIT_DB_URL";

fn get_url_from_env() -> String {
	std::env::var(URL_VAR).unwrap()
}