Right now all .gleam files created by squirrel are called sql.gleam. This is not the best since once will most likely have to alias those in order to use functions coming from multiple modules. It would be better if squirrel called those <name>_sql.gleam where name is the name of the parent folder of the sql folder the queries are taken from. For example if I have src/user/sql/*.sql I'd like the generated file to be src/user/user_sql.gleam, if the sql directory is already at the top level (src/sql) then we'd have to stick to just sql.gleam.
This would also require updating the documentation describing where squirrel puts the generated code!
Right now all
.gleamfiles created by squirrel are calledsql.gleam. This is not the best since once will most likely have to alias those in order to use functions coming from multiple modules. It would be better if squirrel called those<name>_sql.gleamwhere name is the name of the parent folder of the sql folder the queries are taken from. For example if I havesrc/user/sql/*.sqlI'd like the generated file to besrc/user/user_sql.gleam, if thesqldirectory is already at the top level (src/sql) then we'd have to stick to justsql.gleam.This would also require updating the documentation describing where squirrel puts the generated code!