Fork me on GitHub
#honeysql
<
2022-03-23
>
orestis05:03:07

So this week I'm playing around post-processing a honeysql query (removing terms from select, specifically). So far I rely on some invariants that are only true in our codebase: clauses and columns are always keywords and lowercase, so you can just use an equality check. But I realized two things: 1. Clauses can also be symbols (eg :select and 'select) 2. Same with column names 3. Column names can also be mixed case and depending on the quoting strategy may normalize to the same column name. 4. Perhaps I'm also missing something else altogether :) So I want to ask, is there any thought for some protocol that given a honey sql map, can ask questions and do manipulations?

seancorfield18:03:43

Nope. It is "just" Clojure data.