How roenbaeck/anchor works
Anchor Modeler is a browser-based tool for authoring database models that represent temporal data in sixth normal form. The repository combines client-side model and layout modules with SQL templates for several database platforms, indicating a path from model authoring to database-specific SQL output. The README also describes optional Cloud model loading and saving. The supplied excerpts do not expose the UI entry point or generation orchestration, so those connections are shown as unverified; SQL template relationships are grouped by capability rather than presented as a call sequence.
Main entry points: Helpers.js SQL helpers and naming · sisula.js Model data · PostgreSQL PostgreSQL templates · BigQuery BigQuery templates
Components 19
Model authoring
- Anchor Modeler
- Model data
modules/sisula.js - DOM interface
modules/DomFacade.js - XML model
modules/XmlTree.js
Model services
- Graph layout
modules/LayoutEngine.js - Model resolution
modules/Resolver.js - Inheritance
modules/Inheritance.js - Type conversion
modules/DataTypeConverter.js - Defaults
modules/Defaults.js - Model simulation
modules/Sisulator.js
SQL generation
- SQL helpers and naming
SQL/Helpers.js - PostgreSQL templates
SQL/PostgreSQL - BigQuery templates
SQL/BigQuery - Oracle templates
SQL/Oracle - Vertica templates
SQL/Vertica - Snowflake templates
SQL/Snowflake - SQL Server support
SQL/SQLServer
External services
- Optional Cloud
Other components
- Modeler user
Connections 10
- Modeler user → Anchor Modeler: authors models
- Anchor Modeler → Model data: edits model
- Anchor Modeler → Optional Cloud: loads or saves
- Anchor Modeler → SQL helpers and naming: generates SQL
- SQL helpers and naming → PostgreSQL templates: supports dialect
- SQL helpers and naming → BigQuery templates: supports dialect
- SQL helpers and naming → Oracle templates: supports dialect
- SQL helpers and naming → Vertica templates: supports dialect
- SQL helpers and naming → Snowflake templates: supports dialect
- SQL helpers and naming → SQL Server support: supports dialect