pub struct SqlLanguage {
pub case_sensitive: bool,
pub quoted_identifiers: bool,
pub backtick_identifiers: bool,
pub bracket_identifiers: bool,
}Expand description
SQL 语言实现
Fields§
§case_sensitive: bool是否区分大小
quoted_identifiers: bool是否允许双引号标识符
backtick_identifiers: bool是否允许反引号标识符
bracket_identifiers: bool是否允许方括号标识符
Implementations§
Trait Implementations§
Source§impl Clone for SqlLanguage
impl Clone for SqlLanguage
Source§fn clone(&self) -> SqlLanguage
fn clone(&self) -> SqlLanguage
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SqlLanguage
impl Debug for SqlLanguage
Source§impl Default for SqlLanguage
impl Default for SqlLanguage
Source§impl Language for SqlLanguage
impl Language for SqlLanguage
Source§type SyntaxKind = SqlSyntaxKind
type SyntaxKind = SqlSyntaxKind
The kind kind type used to represent different kind and node types in the language. Read more
Source§impl<'config> Lexer<SqlLanguage> for SqlLexer<'config>
impl<'config> Lexer<SqlLanguage> for SqlLexer<'config>
Source§fn lex_incremental(
&self,
source: impl Source,
changed: usize,
cache: IncrementalCache<'_, SqlLanguage>,
) -> LexOutput<SqlLanguage>
fn lex_incremental( &self, source: impl Source, changed: usize, cache: IncrementalCache<'_, SqlLanguage>, ) -> LexOutput<SqlLanguage>
Tokenizes source text using an existing cache for incremental parsing. Read more
Source§fn lex(
&self,
source: impl Source,
) -> OakDiagnostics<Vec<Token<<L as Language>::SyntaxKind>>>
fn lex( &self, source: impl Source, ) -> OakDiagnostics<Vec<Token<<L as Language>::SyntaxKind>>>
Tokenizes the given source text into a sequence of tokens. Read more
Source§impl PartialEq for SqlLanguage
impl PartialEq for SqlLanguage
impl Copy for SqlLanguage
impl Eq for SqlLanguage
impl StructuralPartialEq for SqlLanguage
Auto Trait Implementations§
impl Freeze for SqlLanguage
impl RefUnwindSafe for SqlLanguage
impl Send for SqlLanguage
impl Sync for SqlLanguage
impl Unpin for SqlLanguage
impl UnwindSafe for SqlLanguage
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more