Skip to main content

run

Function run 

Source
pub fn run(
    config: &Config,
    db_name: Option<&str>,
    opts: &CheckOptions,
) -> Result<(), CliError>
Expand description

Run the check command, validating that the resolved configuration is well-formed and printing a human-readable summary.

ยงErrors

Returns a CliError if the requested database cannot be resolved from the config, if schema-file discovery fails, if the credentials block is malformed, or if a warning-as-error condition is encountered (currently only if the filesystem enumeration of the migrations directory fails).