Skip to main content

GraphMapping

Trait GraphMapping 

Source
pub trait GraphMapping {
    // Required method
    fn compile(&self) -> Result<MappingSpec>;
}
Expand description

A mapping format: whatever it is written in, it compiles to the one MappingSpec the listener runs — so the changelog path, the cursors and the sinks are the same whichever format a mapping came from.

formatfileimpl
bifröst’s own: per table, a pipeline of steps.yml / .yaml / .ronMappingSpec
PuppyGraph’s schema.json: graph-first, node + edge lists.jsonPuppyGraphMapping
SQL: one SELECT per step, reserved columns say what a row becomes.sqlSqlMapping (feature sql)

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§