Skip to content

Add select.as(_:) for aliasing existing queries - #341

Open
stephencelis wants to merge 1 commit into
mainfrom
better-aliasing
Open

Add select.as(_:) for aliasing existing queries#341
stephencelis wants to merge 1 commit into
mainfrom
better-aliasing

Conversation

@stephencelis

Copy link
Copy Markdown
Member

Table aliasing is currently done statically, with Table.as, but this prevents existing queries from being aliased, including the newly-landed jsonEach() table-valued function. This PR expands QueryFragment with a new identifier case to track aliasing in the builder itself.

Table aliasing is currently done statically, with `Table.as`, but this
prevents existing queries from being aliased, including the newly-landed
`jsonEach()` table-valued function. This PR expands `QueryFragment` with
a new `identifier` case to track aliasing in the builder itself.
@stephencelis
stephencelis requested a review from mbrandonw August 3, 2026 19:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant