docs(reference): document string-literal alias support (follow-up to #22)#23
Merged
Merged
Conversation
…follow-up) Add a 'String-Literal Aliases' subsection to the QuoteStyle reference: AS 'x' is accepted for every dialect (lenient input) and normalized to the target dialect's canonical quoted identifier (double-quote / backtick / bracket) with case preserved. Examples are the exact outputs asserted by the test_single_quoted_alias_transpile_to_* tests. Follow-up to PR #22 (v0.10.11).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Documentation follow-up to #22 (string-literal aliases, released in
v0.10.11)Follows up on @gauravs's PR #22, which added support for string-literal aliases
after
AS(SELECT col AS 'Record Id'). The parser + test changes are alreadymerged and shipped in
v0.10.11; this PR is docs-only.What's here
docs/reference.md— adds a String-Literal Aliases subsection underthe
QuoteStylereference documenting thatAS 'x'is accepted for everydialect (lenient on input) and normalized to the target dialect's canonical
quoted identifier —
"x"(double-quote),`x`(backtick), or[x](bracket) — with case preserved and embedded quotes escaped.
test_single_quoted_alias_transpile_to_{postgres,mysql,tsql}tests, so theystay accurate.
Note on the CR-022 record
Per this repo's convention, the detailed change-record (
CR-022) lives as alocal
tmp/working note (thetmp/directory is gitignored and none ofthe CR-003…CR-021 docs are tracked either), so it is intentionally not
included in this PR. Happy to relocate it into a tracked path if you'd prefer
CR records to be version-controlled going forward.
Scope
Docs only — no code or behavior changes. The feature itself is already released.