Skip to content

docs(reference): document string-literal alias support (follow-up to #22)#23

Merged
yigalrozenberg merged 1 commit into
masterfrom
docs/cr-022-string-literal-alias
Jul 9, 2026
Merged

docs(reference): document string-literal alias support (follow-up to #22)#23
yigalrozenberg merged 1 commit into
masterfrom
docs/cr-022-string-literal-alias

Conversation

@yigalrozenberg

Copy link
Copy Markdown
Collaborator

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 already
merged and shipped in v0.10.11; this PR is docs-only.

What's here

  • docs/reference.md — adds a String-Literal Aliases subsection under
    the QuoteStyle reference documenting that AS 'x' is accepted for every
    dialect (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.
  • The three transpile examples are the exact outputs asserted by the
    test_single_quoted_alias_transpile_to_{postgres,mysql,tsql} tests, so they
    stay accurate.

Note on the CR-022 record

Per this repo's convention, the detailed change-record (CR-022) lives as a
local tmp/ working note (the tmp/ directory is gitignored and none of
the 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.

…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).
@yigalrozenberg
yigalrozenberg merged commit ab381f1 into master Jul 9, 2026
5 checks passed
@yigalrozenberg
yigalrozenberg deleted the docs/cr-022-string-literal-alias branch July 9, 2026 16:44
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