You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As I mentioned in Slack, I use HoneySQL to generate a JSONpath expression for Postgres. JSONpath has got its own atmosphere, for example, it has the ? operator to filter the left part with a subquery:
or similar. The naming is completely up to you, I don't have any preferences. A dynamic var is also fine (just in case it's easier to tweak this behaviour with a dynamic var).
As I mentioned in Slack, I use HoneySQL to generate a JSONpath expression for Postgres. JSONpath has got its own atmosphere, for example, it has the
?
operator to filter the left part with a subquery:The thing is, whenever one uses the
:?
operator in HoneySQL, it produces a double??
sign to comply with JDBC quoting rules.At the moment, I've figured out with a crutch like this:
which produces
I believe it would be nice to have an extra flag for the
format
function to bypass quoting the question mark. For example:or similar. The naming is completely up to you, I don't have any preferences. A dynamic var is also fine (just in case it's easier to tweak this behaviour with a dynamic var).
Links:
The text was updated successfully, but these errors were encountered: