问题描述
如何使用Scala quill库执行如下所示的查询?
REFRESH MATERIALIZED VIEW CONCURRENTLY transaction_view
解决方法
基本上,可以通过将其写在引号中来存档
val q = quote { query[MyTable] }
val myQuery = quote { infix"REFRESH MATERIALIZED VIEW CONCURRENTLY {$q}".as[Query[MyTable]] }
感谢@deusaquilus