Skip to content

Derive: pass dialect method signatures through macro tokens - #2725

Open
ashi009 wants to merge 2 commits into
apache:mainfrom
ashi009:xs/derive-dialect-trait-tokens
Open

ashi009 wants to merge 2 commits into
apache:mainfrom
ashi009:xs/derive-dialect-trait-tokens

Conversation

@ashi009

@ashi009 ashi009 commented Oct 26, 2026 •

Copy link
Copy Markdown

derive_dialect! reads sqlparser's source tree during expansion and embeds
its own build directory in the proc-macro binary. Expansion fails when
only compiled dependencies are available.

  • Capture Dialect signatures in sqlparser and pass them as macro tokens.
  • Remove the filesystem search and embedded manifest directory.
  • Cover direct and re-exported macro calls in the existing Rust tests.

Direct sqlparser_derive::derive_dialect! callers must enable sqlparser's
derive-dialect feature (or visitor). Both crates need coordinated
releases: the new derive macro requires sqlparser's new helper.

Fixes #2724

Dialects: none

Prepared with Codex.

Capture the Dialect method signatures while compiling sqlparser so
expansion needs no source files or embedded build directory. Preserve
invocation-site parameter names for expression overrides.

Exercise all public entry points after removing the dependency sources.
Direct macro callers now need sqlparser with derive-dialect or visitor.

Fixes apache#2724
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.

sqlparser_derive embeds its build-time manifest directory in the proc-macro binary

1 participant