Function good_ormning::sqlite::generate

source ·
pub fn generate(
    output: &Path,
    versions: Vec<(usize, Version)>,
    queries: Vec<Query>
) -> Result<(), Vec<String>>
Expand description

Generate Rust code for migrations and queries.

Arguments

  • output - the path to a single rust source file where the output will be written

Returns

  • Error - a list of validation or generation errors that occurred