Skip to content

Parse dialect & version - #347

Merged
aljazerzen merged 1 commit into
mainfrom
a
Apr 12, 2022
Merged

aljazerzen merged 1 commit into
mainfrom
a

Conversation

@aljazerzen

Copy link
Copy Markdown
Member

No description provided.

@aljazerzen
aljazerzen requested a review from max-sixty April 11, 2022 11:18

@max-sixty max-sixty left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Very nicely implemented! I can't even find something to improve on...

Comment thread prql/src/ast.rs

impl Dialect {
pub fn use_top(&self) -> bool {
matches!(self, Dialect::MsSql)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Possibly in the future we want to have each Dialect be a Struct that we implement a Trait for — for the moment this is excellent.

@max-sixty

Copy link
Copy Markdown
Member

I will do the docs for this...

@aljazerzen
aljazerzen merged commit c0c2f07 into main Apr 12, 2022
@aljazerzen
aljazerzen deleted the a branch April 12, 2022 06:34
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