Skip to main content

artifact_to_compiled_object

Function artifact_to_compiled_object 

Source
fn artifact_to_compiled_object(
    artifact: &CompiledObjectArtifact,
) -> Result<Option<CachedTypedObject>, ()>
Expand description

Reconstruct a CachedTypedObject by re-parsing the cached SQL fragments.

Returns Ok(None) for Skipped entries. Returns Err(()) if any fragment fails to parse — the caller should treat this as a cache miss and recompile the object from source.