honeysql

Discussion of https://github.com/seancorfield/honeysql :slightly_smiling_face:
2019-12-16T10:13:48.000600Z

does anyone have suggestions about how to do an EXPLAIN on prepared statements?

2019-12-16T10:16:21.001900Z

I thought that one way would be to get the first element from the list returned by sql/format and do something like this:

(jdbc/query (conn) "PREPARE f() AS SELECT * FROM table")

Execution error (PSQLException) at org.postgresql.core.v3.QueryExecutorImpl/receiveErrorResponse (QueryExecutorImpl.java:2497).
ERROR: syntax error at or near ")"
  Position: 11

2019-12-16T10:16:44.002900Z

which works fine with psql directly