Skip to main content

resolve_statement

Function resolve_statement 

Source
pub fn resolve_statement(
    inline: Option<&str>,
    file: Option<&Path>,
    stdin: bool,
    input: &mut dyn Read,
) -> Result<Option<String>, CliError>
Expand description

The statement a query or asof was given: inline as it came, or the text of --file or of standard input. A file or pipe ends in a newline the editor or echo put there, which is not part of the statement, so trailing whitespace is dropped.