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.
| format | file | impl |
|---|---|---|
| bifröst’s own: per table, a pipeline of steps | .yml / .yaml / .ron | MappingSpec |
PuppyGraph’s schema.json: graph-first, node + edge lists | .json | PuppyGraphMapping |
SQL: one SELECT per step, reserved columns say what a row becomes | .sql | SqlMapping (feature sql) |
Required Methods§
fn compile(&self) -> Result<MappingSpec>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".