How to translate the WITH keyword in postgres when SELECT does not have FROM?
I'm trying to translate the following postgres function into pure Kysley:
I'm able to translate the main select body:
But I'm not sure how to translate the WITH part:
4 Replies
So far I have:
I think the problem is that the
SELECT
in question doesn't have a FROM
in the WITH
It seems query
needs to be at the end of the join and can't be part of SELECT FROM
Not sure how to do that
Got it to all work, it feels like a huge hack though:
Hey 👋🏻
I've answered in github issue /w a playground link
Thanks Igal. I've responded. It's close but not the solution unfortunately
Linking the github issue thread so it can be traced: https://github.com/kysely-org/kysely/issues/517
GitHub
[Feature] SELECT without FROM · Issue #517 · kysely-org/kysely
I'd like support for the following use-case: WITH query AS ( SELECT pgml.embed(model, needle) AS embedding ) I've read from discord that this case isn't supported. Could you create a .s...