mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-08-02 13:12:16 +00:00
Add identifier quote style to Dialect
trait (#1170)
This commit is contained in:
parent
11899fd0cb
commit
929c646bba
4 changed files with 35 additions and 0 deletions
|
@ -21,6 +21,10 @@ use crate::tokenizer::Token;
|
|||
pub struct PostgreSqlDialect {}
|
||||
|
||||
impl Dialect for PostgreSqlDialect {
|
||||
fn identifier_quote_style(&self, _identifier: &str) -> Option<char> {
|
||||
Some('"')
|
||||
}
|
||||
|
||||
fn is_identifier_start(&self, ch: char) -> bool {
|
||||
// See https://www.postgresql.org/docs/11/sql-syntax-lexical.html#SQL-SYNTAX-IDENTIFIERS
|
||||
// We don't yet support identifiers beginning with "letters with
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue