starpod-vault 0.3.1

Encrypted credential storage for Starpod - AES-256-GCM
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use sqlx::SqlitePool;

use starpod_core::StarpodError;

/// Run vault database migrations using sqlx.
pub async fn run_migrations(pool: &SqlitePool) -> Result<(), StarpodError> {
    sqlx::migrate!("./migrations")
        .run(pool)
        .await
        .map_err(|e| StarpodError::Database(format!("Vault migration failed: {}", e)))?;
    Ok(())
}