Replies: 2 comments 3 replies
-
@alamb , do you agree with that ? I don't think that's a good idea. There is as many SQL dialects as there are SQL databases, and we cannot expect to support all of them in this crate. I think the ability to create custom dialects outside of this crate is important. And in particular, the ability to create a dialect that inherits all the properties of another dialect, and just changes one small thing. Hardcoding supported dialects with And generally, I think accidentally accepting to create an AST for a syntax that is not valid in the current dialect is a much less serious problem than refusing to create an AST for a valid syntax. Users of this crate can always add custom rules to discard an AST that has been produced, but they cannot create an AST themselves if this crate returns an error. For this reason, my opinion is that we should remove |
Beta Was this translation helpful? Give feedback.
-
Currently, seems we doesn't have a rule whether to have the dialect guard or not. I saw some syntaxes(like create table options: CHARSET/COLLATE) are introduced without the dialect, but they are not valid syntax for many dialects. From my intuitive sense, we should add a dialect guard by default unless we know it's valid syntax for all dialects. Is that correct? please help to correct me if I'm wrong.
Beta Was this translation helpful? Give feedback.
All reactions