Skip to main content

process_command_with_render

Function process_command_with_render 

Source
pub fn process_command_with_render(
    query: &str,
    db: &mut Database,
) -> Result<CommandOutput>
Expand description

Performs initial parsing of SQL Statement using sqlparser-rs.

Returns a CommandOutput carrying both the status string and (for SELECT statements) the pre-rendered prettytable output. Never writes to stdout. The REPL is responsible for printing whatever it wants from the returned struct.