Skip to main content

ParserExtension

Trait ParserExtension 

Source
pub trait ParserExtension:
    Send
    + Sync
    + Debug {
    // Provided methods
    fn name(&self) -> &'static str { ... }
    fn transform(&self, _query_text: &str) -> Option<DBResult<String>> { ... }
}
Expand description

Rewrite the raw query text before parsing.

Return None to decline (builtin parsing proceeds).

Provided Methods§

Source

fn name(&self) -> &'static str

Source

fn transform(&self, _query_text: &str) -> Option<DBResult<String>>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§