Skip to main content

schema_code

Function schema_code 

Source
pub fn schema_code(
    snapshot: &Snapshot,
    options: &SchemaCodeOptions<'_>,
) -> Result<SchemaCode, CliError>
Expand description

Generates the Rust schema for snapshot with the dialect’s codegen.

§Errors

Returns CliError::Other if the MySQL codegen refuses a snapshot it cannot write without losing information.