#![cfg(feature = "sqlite")]
use db_logger::{sqlite, Connection};
use std::path::Path;
mod common;
#[test]
#[ignore = "Is expensive"]
fn test_everything() {
let temp = tempfile::tempdir().unwrap();
let test_db = temp.path().join("test.db");
#[tokio::main]
async fn prepare(path: &Path) -> Connection {
let db = sqlite::connect(sqlite::ConnectionOptions {
uri: format!("file:{}?mode=rwc", path.display()),
})
.await
.unwrap();
db.create_schema().await.unwrap();
db
}
let db = prepare(&test_db);
common::do_test_everything("sqlite_test", db);
}