Skip to content

Rename modules to avoid aliasing #71

@giacomocavalieri

Description

@giacomocavalieri

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions