Hi! is it possible to use the WITH _storage_parameter=value`_ ` options in the create table/view ddl operations using HoneySQL?
I don't know if it's part of the SQL standard or PSQL specific.
https://www.postgresql.org/docs/current/sql-creatematerializedview.html
@bingen.galartza This should do the trick:
user> (sql/format {:create-materialized-view [:product [[:with [:= :storage-parameter "value"]]]]
:select [:*]
:from [:table]
:where [:= :column "value"]
:with-data false})
["CREATE MATERIALIZED VIEW product WITH(storage_parameter = 'value') AS SELECT * FROM table WHERE column = ? WITH NO DATA"
"value"]Great! Thanks a lot