pub trait SqlInterceptor: Send + Sync {
// Required method
fn intercept(
&self,
context: &SqlContext,
sql: &str,
) -> Result<Option<String>, ExtensionError>;
}Required Methods§
Sourcefn intercept(
&self,
context: &SqlContext,
sql: &str,
) -> Result<Option<String>, ExtensionError>
fn intercept( &self, context: &SqlContext, sql: &str, ) -> Result<Option<String>, ExtensionError>
Returns replacement SQL, or None to keep the current SQL text.
Bind values are intentionally not exposed to interceptors.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".