How can I get esqueleto to generate an SQL string for me?
In the time since this question was posted, esqueleto has gone through a number of major revisions. As of version 2.1.2, and several earlier versions, the QueryType a parameter that necessitated your unsafeCoerce has been removed from toRawSql; that major wart is no longer necessary. As currently implemented, a Connection is required. I believe that, … Read more