Skip to content

Instantly share code, notes, and snippets.

@davidlwg
davidlwg / chunk.rs
Created December 11, 2025 19:33
Sending CSV as a single byte stream
#[async_trait]
impl Meetkunde for MeetkundeClient {
async fn send_report(&mut self, table_name: &str, df: &DataFrame) -> Result<()> {
let total_rows = df.height();
if total_rows == 0 {
return Ok(());
}
// 1. Convert the WHOLE DataFrame to a CSV string in memory