Parsing and looking for q"" should be possible with tree-sitter which also has scala support. Tree sitter makes it easily possible to query a file for q""-strings and from there we should be able to
put it into a validator against our schema
format the query string to support unified query string formatting
Can we feed our scala sources into a tool like
pgsanity
orplpgsql lint
to find some issues without actually executing the queries?Hurdles:
q""
-strings)