Skip to main content

write_jsonl

Function write_jsonl 

Source
pub fn write_jsonl(path: &Path, records: &[SyncRecord]) -> SyncResult<()>
Expand description

Write multiple sync records to a JSONL file atomically.

This is more efficient than calling append_jsonl repeatedly when exporting multiple records, as it writes all records in one operation.

ยงErrors

Returns an error if the file cannot be written.