no-mistakes-postgres-engine 0.109.129

PostgreSQL embedded SQL extraction, schema catalog, and replay-safety analysis for no-mistakes
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use super::SchemaCatalog;
use anyhow::Context;

impl SchemaCatalog {
    #[doc(hidden)]
    pub fn from_json(json: &str) -> anyhow::Result<Self> {
        let value = serde_json::from_str(json).context("schema catalog JSON is not valid")?;
        Self::from_snapshot(
            "schema.json",
            super::load::parse_snapshot("schema.json", value)?,
        )
    }
}