You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
243 B
10 lines
243 B
3 years ago
|
use sqlx::pool::Pool;
|
||
|
use sqlx::sqlite::Sqlite;
|
||
|
|
||
|
#[tokio::main]
|
||
|
async fn main() -> Result<(), sqlx::Error> {
|
||
|
let pool = Pool::<Sqlite>::connect("sqlite::memory:").await?;
|
||
|
sqlx::migrate!("db/migrations").run(&pool).await?;
|
||
|
Ok(())
|
||
|
}
|