Function arrow_odbc::insert_into_table
source · pub fn insert_into_table(
connection: &Connection<'_>,
batches: &mut impl RecordBatchReader,
table_name: &str,
batch_size: usize
) -> Result<(), WriterError>
Expand description
Fastest and most convinient way to stream the contents of arrow record batches into a database
table. For usecase there you want to insert repeatedly into the same table from different
streams it is more efficient to create an instance of self::OdbcWriter
and reuse it.
Note:
If table or column names are derived from user input, be sure to sanatize the input in order to prevent SQL injection attacks.