feat: add SQLite and PostgreSQL event queue adapters with migrations
This commit is contained in:
@@ -3,6 +3,7 @@ use sqlx::SqlitePool;
|
||||
|
||||
pub(crate) async fn run(pool: &SqlitePool) -> Result<(), DomainError> {
|
||||
sqlx::migrate!("./migrations")
|
||||
.set_ignore_missing(true)
|
||||
.run(pool)
|
||||
.await
|
||||
.map_err(|e| DomainError::InfrastructureError(e.to_string()))
|
||||
|
||||
Reference in New Issue
Block a user