pub fn execute_with_formatter_factory<'a, W: Write>(
db: &Database,
cmd: SqlCommand,
batch_mode: &BatchMode,
ui_mode: UiMode,
writer: &mut W,
make_formatter: &mut dyn FnMut() -> Box<dyn Formatter>,
admin_launcher: Option<Box<dyn FnMut() -> Result<()> + 'a>>,
limit: Option<usize>,
quiet: bool,
) -> Result<()>Expand description
Execute a SQL command using formatters supplied by make_formatter.
One formatter is created per result block (a multi-statement input emits one block per statement). No JSON statement-array wrapping is applied; this entry point is intended for callers that capture results with a custom formatter (e.g. the admin TUI).