AmpersandTarski / Ampersand

Build database applications faster than anyone else, and keep your data pollution free as a bonus.
http://ampersandtarski.github.io/
GNU General Public License v3.0
40 stars 8 forks source link

Check whether a given deployment implements a given schema #1405

Open stefjoosten opened 1 year ago

stefjoosten commented 1 year ago

As a software engineer, I want to know whether a system running in production is an implementation of a given schema, so I can generate services (interfaces or rules) in that system without migration. This is related to issue #1403. This issue depends on issue AmpersandTarski/Prototype#111 for accessing the schema.

stefjoosten commented 1 year ago

Analysis

Informally speaking, a system $\mathscr{S}$ with schema $\mathscr{Z}'$ implements a schema $\mathscr{Z}$ if all elements of $\mathscr{Z}$ are in $\mathscr{Z}'$. As a consequence, every interface that is compatible with $\mathscr{Z}'$ can communicate with $\mathscr{S}$ without runtime errors.