Skip to main content

format_as_json

Function format_as_json 

Source
pub fn format_as_json(diff: &SchemaDiff) -> String
Expand description

Format a SchemaDiff as a structured JSON string. Hand- rolled emitter so this module stays free of serde_json — reddb’s existing crate::serde_json module provides the tiny JSON writer the rest of the codebase uses, but here we just produce text directly because the schema is small and stable.