For a long time I've been looking to solve the repetitive schema pattern issues in SQL. This week I created a DSL that allows parametric polymorphism for SQL, and I wrote a compiler for it.
Source code and playground here: https://github.com/BarishNamazov/gsql/
Background blog here: https://barish.me/blog/parametric-polymorphism-for-sql/
Feedback is super appreciated!