pub fn refuse_to_open_db(path: &Path) -> ForgeResult<()>Expand description
Refuses to open a database that is not a verified Forge DB.
Checks (all must pass):
- File must be a valid SQLite database (magic bytes check).
PRAGMA user_versionmust be within valid range.- Table
forge_metamust exist. forge_metarowkey = 'schema_hash'must exist.forge_meta.valueforschema_hashmust equal the compiled-inFORGE_SCHEMA_HASH.