Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Reformat SQL queries for ease of reading (#1237)
The database queries in the @query annotations were in a range of different styles which made them difficult to read, and difficult to write new ones in a consistent style. Fix this. Write a new tool, `sqlfmt`. This processes the DAO files looking for `@Query(...)` annotations. It extracts the SQL from those annotations and calls `sqlfluff` (https://github.com/sqlfluff/sqlfluff, which must be installed separately) to lint and fix formatting issues in the SQL. The file is re-written with the newly formatted SQL queries.
- Loading branch information