HugSQL doesn't make you put one query in one file. It's pretty reasonable.
If we wind up parsing queries ourselves for any other reason, the sqlparse library has a function that will split a file into sql queries. We could use this.
We might want to also extend module so that it works if it's given a single file. (This isn't super useful with one function per file, so it doesn't work now).
HugSQL doesn't make you put one query in one file. It's pretty reasonable.
If we wind up parsing queries ourselves for any other reason, the
sqlparse
library has a function that will split a file into sql queries. We could use this.We might want to also extend
module
so that it works if it's given a single file. (This isn't super useful with one function per file, so it doesn't work now).