Slither.Examples.DataEtl.SchemaStore (Slither v0.1.0)

Copy Markdown View Source

Hot-reloadable schema store for data validation.

Holds versioned validation schemas and transformation rules in ETS tables with read concurrency enabled. Supports live schema updates via Slither.Store.Server.put/4 to demonstrate hot-reload without process restart.

Ships with two schema versions:

  • v1 -- baseline schema with name, age (0..150), and email
  • v2 -- stricter rules: name min-length 2, age 18..120, email pattern validation, and an optional role field

Run the ETL pipeline demo with Slither.Examples.DataEtl.EtlPipe.run_demo/0.

Summary

Functions

Return the v1 validation schema map.

Return the v2 validation schema map.

Return the default transformation rules map.

Functions

schema_v1()

@spec schema_v1() :: map()

Return the v1 validation schema map.

schema_v2()

@spec schema_v2() :: map()

Return the v2 validation schema map.

transform_rules()

@spec transform_rules() :: map()

Return the default transformation rules map.