Skip to main content

write

Function write 

Source
pub async fn write(
    uri: &str,
    rows: impl Stream<Item = Result<NdRecordBatch>>,
    options: &WriteOptions,
) -> Result<Dataset>
Expand description

Write a stream of rows to the table at uri in one commit. Each nd record batch is one row.

WriteMode::Append creates the table when it does not exist. A failed row commits nothing. Fails when the stream has no rows and the table does not exist.