refactor: split database into multiple files, more error handling, cleaner code

This commit is contained in:
timokoesters 2020-05-03 17:25:31 +02:00
parent 4b191a9311
commit 8f67c01efd
No known key found for this signature in database
GPG key ID: 24DA7517711A2BA4
17 changed files with 1573 additions and 1630 deletions

View file

@ -1,8 +1,6 @@
use super::*;
use rocket::{http::Status, local::Client};
use ruma_client_api::error::ErrorKind;
use rocket::local::Client;
use serde_json::{json, Value};
use std::time::Duration;
fn setup_client() -> Client {
Database::try_remove("localhost");