pub trait ScriptInterceptor {
type Error: ErrorExt;
// Provided method
fn pre_execute(
&self,
_name: &str,
_query_ctx: QueryContextRef,
) -> Result<(), Self::Error> { ... }
}
Expand description
ScriptInterceptor can track life cycle of a script request and customize or abort its execution at given point.
Required Associated Types§
Provided Methods§
sourcefn pre_execute(
&self,
_name: &str,
_query_ctx: QueryContextRef,
) -> Result<(), Self::Error>
fn pre_execute( &self, _name: &str, _query_ctx: QueryContextRef, ) -> Result<(), Self::Error>
Called before script request is actually executed.