Skip to main content

Module export

Module export 

Source
Expand description

Export service for streaming dataset exports.

This module provides the ExportService for memory-efficient export of datasets to various formats (JSONL, JSON, CSV).

§Example

use ceres_core::export::{ExportService, ExportFormat};
use std::io::stdout;

let export_service = ExportService::new(store);
let mut writer = stdout().lock();
let count = export_service
    .export_to_writer(&mut writer, ExportFormat::Jsonl, None, None)
    .await?;
println!("Exported {} datasets", count);

Note: This example uses ignore because it requires a concrete DatasetStore implementation which cannot be easily provided in a doctest.

Structs§

ExportService
Service for exporting datasets in streaming mode.

Enums§

ExportFormat
Supported export formats.