Skip to main content

read_queries_input

Function read_queries_input 

Source
pub fn read_queries_input(path: &str) -> AppResult<String>
Expand description

Reads SQL queries from a file or stdin.

Supports reading from a file path or from standard input when the path is “-”.

§Arguments

  • path - File path or “-” for stdin

§Returns

The file contents as a string, or an error if reading fails.

§Errors

Returns an error if the file cannot be read or stdin fails.