honeysql/test/honey
Rob Hanlon 204f6fa72a
Support materialization control in WITH
Adds an optional third value to `with` vectors, which can be the
following:

* `:materialized` -> SQL is `WITH cte AS MATERIALIZED (...)`
* `:not-materialized` -> SQL is `WITH cte AS NOT MATERIALIZED (...)`
* omitted or anything else -> SQL is `WITH cte AS (...)`

Note that materialization control is not available on WITH RECURSIVE
CTEs, so `format-with` was modified to take a third argument that
returns the `AS ...` separator, which is constantly `"AS"` for WITH
RECURSIVE, and obeys the aforementioned rules for non-recursive CTEs.

Resolves #392.
2022-08-16 16:01:52 -07:00
..
sql Add PostgreSQL JSON / regex operators fixes #398 2022-04-23 15:40:47 -07:00
bigquery_test.cljc Fix #382 by adding :case-expr syntax 2022-01-29 17:19:17 -08:00
cache_test.clj verify cache entries based on varying parameter names 2022-01-08 12:22:53 -08:00
sql_test.cljc Support materialization control in WITH 2022-08-16 16:01:52 -07:00