Skip to main content

model_snapshot_json_from_source

Function model_snapshot_json_from_source 

Source
pub fn model_snapshot_json_from_source<S: MigrationModelSource>() -> Result<String, OrmError>
Expand description

Serializes the current model snapshot for a context as pretty JSON.

Consumer projects can print this from a small binary and pass it to the CLI through migration add --snapshot-bin.