starpod_memory/schema.rs
1use sqlx::SqlitePool;
2
3use starpod_core::StarpodError;
4
5/// Run memory database migrations using sqlx.
6pub async fn run_migrations(pool: &SqlitePool) -> Result<(), StarpodError> {
7 sqlx::migrate!("./migrations")
8 .run(pool)
9 .await
10 .map_err(|e| StarpodError::Database(format!("Memory migration failed: {}", e)))?;
11 Ok(())
12}