我正在尝试让Korma输出它将执行的SQL,这样我就可以调试我遇到的问题,但是文档中关于如何使用as-sql函数的说明非常简短。谁能给我一个例子,如何让Korma输出插入查询的SQL?
发布于 2013-03-20 03:44:29
来自:http://sqlkorma.com/api/0.3.0/korma.core.html
dry-run
(dry-run & body)
Wrap around a set of queries to print to the console all SQL that would
be run and return dummy values instead of executing them.发布于 2014-01-01 23:30:17
如果您想以字符串形式获取SQL查询,也可以使用sql-only
(println
(sql-only
(select users)))https://stackoverflow.com/questions/15507062
复制相似问题