Skip to main content

statements

Function statements 

Source
pub fn statements(
    kind: BackendKind,
    state: &ProjectState,
    operations: &[Operation],
) -> Result<Vec<String>, MigrationError>
Expand description

Render operations against state, applying each to a cloned state so later ops see earlier ones (needed for SQLite rebuilds).

ยงErrors

MigrationError::UnsupportedBackend for anything other than PostgreSQL, SQLite or MySQL, or MigrationError::State when an op cannot be rendered.