pub trait ScriptExecutor: Sealed {
// Required method
fn execute_script<'a>(
&'a self,
sql: &'a str,
) -> impl Future<Output = Result<u64, Error>> + Send + 'a;
}Expand description
Runs multi-statement SQL scripts via the simple query protocol.
This is the unchecked, parameterless path (for migrations, SET scripts and
statements the extended protocol cannot express, such as VACUUM). Use
query! / query_as! for anything parameterized or typed.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".