Skip to main content

visit_insert_rows_with

Function visit_insert_rows_with 

Source
pub fn visit_insert_rows_with<F>(
    stmt: &[u8],
    schema: &TableSchema,
    dialect: SqlDialect,
    extraction: RowExtraction,
    f: F,
) -> Result<()>
where F: FnMut(ParsedRow) -> Result<RowFlow>,
Expand description

Stream the rows of an INSERT statement to a visitor, one at a time, without building a statement-sized Vec. f returns a RowFlow to stop early. Only the fields required by extraction are allocated per row.