Skip to content

add dialect and refactor sql parser#11

Closed
Light2Dark wants to merge 1 commit into
mainfrom
sham/add-dialect-parser
Closed

add dialect and refactor sql parser#11
Light2Dark wants to merge 1 commit into
mainfrom
sham/add-dialect-parser

Conversation

@Light2Dark

Copy link
Copy Markdown
Member

Now you need to create an sql parser / don't create one and use the default.

We pass in the dialect to the parser, so it can lint correctly.

@Light2Dark
Light2Dark requested a review from mscolnick August 4, 2025 09:37
Comment thread demo/index.ts
}),
sqlExtension({
// Parser definition
sqlParser: new SqlParser({ dialect: "PostgresQL" }),

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i don't think we need to separate this from each config.

you can still do:

const sqlParser = new SqlParser({ dialect: "PostgresQL" }),

linterConfig: {sqlParser},
gutterConfig: {sqlParser},

and you still get great composition

@Light2Dark Light2Dark closed this Aug 4, 2025
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.

2 participants