pub struct QueryAnalyzer;Expand description
The analyzer. Cheap to construct; carries no state.
Implementations§
Source§impl QueryAnalyzer
impl QueryAnalyzer
pub fn new() -> Self
Sourcepub fn prepare(
&self,
query: &str,
dialect: Dialect,
allow_rewrites: bool,
) -> Result<String, DactylError>
pub fn prepare( &self, query: &str, dialect: Dialect, allow_rewrites: bool, ) -> Result<String, DactylError>
Analyze and prepare SQL for one concrete adapter dialect.
Inline directives are validated against the connection’s selected
dialect. Unsupported constructs are rejected by default. When
allow_rewrites is true, only the small set of loss-bounded rewrites
below is applied; constructs with no safe translation still fail.
Trait Implementations§
Source§impl Clone for QueryAnalyzer
impl Clone for QueryAnalyzer
Source§fn clone(&self) -> QueryAnalyzer
fn clone(&self) -> QueryAnalyzer
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for QueryAnalyzer
Source§impl Debug for QueryAnalyzer
impl Debug for QueryAnalyzer
Source§impl Default for QueryAnalyzer
impl Default for QueryAnalyzer
Source§fn default() -> QueryAnalyzer
fn default() -> QueryAnalyzer
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for QueryAnalyzer
impl RefUnwindSafe for QueryAnalyzer
impl Send for QueryAnalyzer
impl Sync for QueryAnalyzer
impl Unpin for QueryAnalyzer
impl UnsafeUnpin for QueryAnalyzer
impl UnwindSafe for QueryAnalyzer
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