Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
TH quasi-quoter for a even more SQL-like language #3
If anything TH is introduced, I'd like to see it in a separate package.
I've been thinking for awhile about what it would take to compile actual SQL (of various dialects) to a normalising EDSL for awhile (with a code-generator ofc), so I like the spirit of this idea, but would not like a TH dependency.
Why go for SQL-like and not to a full support for (a reasonable subset of) SQL? I could imagine that you can write a quasiquoter that takes plain SQL, but parses it at compile time to verify the types and give you that benefit of an EDSL without having to learn a new language.