https://github.com/krisajenkins/yesql
YeSQL is pretty cool so maybe Openresty needs one too. Embedding queries into code is pretty bonkers and YeSQL resolves everything by keeping SQL queries in their own files.
I tested it out and since pgmoon just takes strings it was pretty easy to create one.
Someone (@leafo?) should create it into a real thing for pgmoon.