Skip to main content

process_command

Function process_command 

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

Backwards-compatible wrapper around process_command_with_render that returns just the status string. Every existing call site (the public Connection::execute, the SDK FFI shims, the .ask meta-command’s inline runner, the engine’s own tests) keeps working unchanged.

Callers that want the rendered SELECT table (the REPL, future terminal-style consumers) should call process_command_with_render directly and inspect CommandOutput::rendered.