Skip to main content
Rust4PM

CompiledOcel

A blueprint compiled to SQL.

Serializable but not deserializable: Self::errors holds CompileError, which is not, so
neither is this. Crosses a bindings boundary outbound only, as a compile binding's return
value.
Used as Input

0

functions accept this type

Used as Output

1

function return this type

Type Definition

118 nested items
CompiledOcel— A blueprint compiled to SQL.
dialect*:SqlDialect— Which SQL engine the emitted statements target.
variant 1:"DuckDb"— DuckDB, the engine the differential tests run against.
variant 2:"Postgres"— PostgreSQL 12+. Emitted from the same fragments as DuckDb, see the type-level note.
errors*:Vec<CompileError>
probes*:Vec<Probe>
shape*:EmissionShape— Which OCEL surface the compiler emits.
variant 1:"PerType"— One event_<T> / object_<T> view per declared type, plus event, object,
variant 2:"Consolidated"— The events/objects/e2o/o2o/object_attribute_changes/event_attr_meta/
views*:Vec<ViewDef>

Example JSON Value

json
{
  "dialect": "DuckDb",
  "errors": [
    {
      "reason": {
        "SynthesizedId": {
          "field": "example"
        }
      }
    }
  ],
  "probes": [
    {
      "kind": "AmbiguousObjectIdentity",
      "sql": "example"
    }
  ],
  "shape": "PerType",
  "views": [
    {
      "body": "example",
      "name": "example"
    }
  ]
}

Functions Returning This Type(1)