Skip to main content

execute_seed

Function execute_seed 

Source
pub fn execute_seed(
    connection: &ResolvedConnection,
    statements: &[String],
) -> Result<(), CliError>
Expand description

Runs the statements of a seed in order, in one transaction where the driver supports it.

ยงErrors

Returns CliError if no compiled driver matches the credentials, connecting fails, or a statement fails.