Create a Query and insert into sql`` template
TLDR: How do I take a query (such as
PgSelectBase
) and put it inside an sql
template?
I want to use the query builder to create a query that I will then put into a (Postgres) TEMPORARY TABLE
to allow me to query it twice and not have to save on performance.
I have got the following:
This currently results in: error: cannot insert multiple commands into a prepared statement
What I think I need is to have the statement prepared fully so it can be inserted but I can not figure out how to 😦0 Replies