Closed Prometheus77 closed 10 months ago
I went with metadata for this:
(sql/format {:select :*
:from [^:nolock [:table]]})
Works with all the :join
clauses too.
Right now, it's hardcoded to SQL Server's WITH (...)
format. If other dialects need something different -- and people ask for it -- I'll make it more flexible.
As an MS SQL user, I want to be able to add table hints to FROM clauses natively in HoneySQL.
For example, the query:
can be approximated by HoneySQL
which yields
however, this suffers from two issues:
t
):raw
tag rather than supporting it nativelyA more elegant solution would look something like
For reference: