oversync-transforms
Declarative transform step library for the oversync data sync engine.
Part of oversync.
What this crate provides
TransformSteptrait -- interface for a single operation on a record's JSON data, returning keep/dropStepChain-- ordered chain of steps applied sequentially; implementsTransformHookfor use in the sync pipeline- Built-in steps --
Rename,Set,Filter(withEq/Ne/Containsoperators), and more parse_steps-- parse a declarative JSON step definition into aStepChain- Optional WASM support -- enable the
wasmfeature for wasmtime-based transform steps
Usage
use ;
let chain = new;
let mut data = json!;
let keep = chain.apply_one?;
assert!;
assert_eq!;
Features
wasm-- enables wasmtime-based WASM transform steps
License
Apache-2.0