-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for two forms of PostgreSQL WITH
syntax; loop
and materialize
#180
Conversation
loop :: Table Expr a => Query a -> (a -> Query a) -> Query a | ||
loop base recurse = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tantiziling close to being mfix
!
e8edb0b
to
a006999
Compare
1ae4217
to
5a5bb49
Compare
1b2908a
to
b789ccb
Compare
c76943c
to
e72b2d5
Compare
I’d like to use loop for walking trees, is this going to be merged? 🤔 |
b0d015a
to
bc17bd7
Compare
WITH
syntax; loop
and materialize
1f61962
to
ccf09d7
Compare
@chrisdone Yes, I've revived this and it should be merged in the next few days. |
Oh, great, thanks! |
src/Rel8/Query/Materialize.hs
Outdated
-- used more than once. We reserve the right to change the implementation of | ||
-- 'materialize' to use the newer @WITH foo AS MATERIALIZED bar@ syntax | ||
-- introduced in PostgreSQL 12 in the future. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we add:
-- used more than once. We reserve the right to change the implementation of | |
-- 'materialize' to use the newer @WITH foo AS MATERIALIZED bar@ syntax | |
-- introduced in PostgreSQL 12 in the future. | |
-- used more than once. We reserve the right to change the implementation of | |
-- 'materialize' to use the newer @WITH foo AS MATERIALIZED bar@ syntax | |
-- introduced in PostgreSQL 12 in the future. Currently Rel8 does not use | |
-- @AS MATERIALIZED@ to support earlier PostgreSQL versions. |
I'd like to make it absolutely clear that we don't use that syntax.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
No description provided.