rowt/src/lib.rs
2023-06-28 14:06:28 +02:00

22 lines
443 B
Rust

pub mod model;
#[cfg(feature = "rowing-tera")]
pub mod tera;
#[cfg(test)]
#[macro_export]
macro_rules! testdb {
() => {{
let pool = SqlitePool::connect(":memory:").await.unwrap();
sqlx::query_file!("./migration.sql")
.execute(&pool)
.await
.unwrap();
sqlx::query_file!("./seeds.sql")
.execute(&pool)
.await
.unwrap();
pool
}};
}