Skip to main content

write_snapshot_bytes

Function write_snapshot_bytes 

Source
pub fn write_snapshot_bytes(bytes: &[u8]) -> Result<Vec<u8>, PostgresGraphError>
Expand description

Writes validated snapshot bytes suitable for BYTEA/LO persistence.

§Errors

Returns PostgresGraphError::Snapshot when validation fails.

§Performance

This function is O(b).