This was a project for a client so that code is proprietary. I wrote the compiler in OCaml and generate Erlang code that targets my DynamoDB wrapper [1].<p>The benefit is automatically enforcing referential integrity, documenting the "schema" and eliminating a boatload of boilerplate.<p>Is there commercial potential here?<p>I already have triggers and could add "REST endpoints" with SQL code and callouts to external functions written in the code that the compiler targets.<p>Would this be something you would pay for, e.g. if I generated nodejs or some other code?<p>[1] <a href="https://github.com/wagerlabs/ddb" rel="nofollow">https://github.com/wagerlabs/ddb</a>