-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
[WIP] WITH RECURSIVE support #2218
Conversation
Thanks for the PR! Btw. there is currently also couple of bugs in the original
I would be super happy if those could be fixed too with this PR 👍 About this PR I like the API, but with brief look implementation did seem pretty much copy-paste. Could there be more codesharing between normal And could those dialect, that doesn't support Generally I think this looks good and is very welcome feature! |
Hmm, I'm not sure I'm the best candidate to roll CTE updates into this. I don't use them for anything, and I'm not familiar with support for them or their issues (within Knex or any RDBMS). A cursory reading of the Postgres docs suggests to me that implementation to support them would be complicated:
I want to limit the scope of this to allowing recursive selects in RDBMSs that support them, so I'll research that. And, you're right that this PR is totally a copy-paste job at the moment :) One thing that this PR doesn't support yet is the use of recursive functions like
because it wraps the CTE alias e.g. |
I'll be fixing the bugs I mentioned #2218 (comment), so only some refactoring and documentation would be needed for this. |
3031ebe
to
da3ce4b
Compare
@elhigu Any update on the status of this? Dealing with some graph heavy db design and it'd be pretty nice to have. Let me know if I can lend a hand. |
@timhuff if you can take over finishing this it would be great 👍 |
@timhuff Any chance you could still finish this? |
@kibertoad Unfortunately my schedule doesn't currently permit me to work on this. Perhaps here in a few weeks but for the moment I'm booked solid. |
I'll refactor and document this. |
Superseded by #2889 |
New feature and fix for #1755
I'm testing this out and haven't settled on the API yet, so I'm opening this for feedback.