vespertide-core 0.1.58

Data models for tables, columns, constraints, indexes, and migration actions
Documentation
#[derive(Debug, Clone)]
pub struct MigrationOptions {
    pub version_table: String,
}

#[derive(thiserror::Error, Debug)]
pub enum MigrationError {
    #[error("migration execution is not yet implemented")]
    NotImplemented,
    #[error("database error: {0}")]
    DatabaseError(String),
    #[error(
        "migration id mismatch for version {version}: expected '{expected}', found '{found}' in database"
    )]
    IdMismatch {
        version: u32,
        expected: String,
        found: String,
    },
}