pub trait PreparedStatement: Send + 'static {
// Required method
fn parameter_count(&self) -> u64;
}Available on crate feature
i-implement-a-third-party-backend-and-opt-into-breaking-changes only.Expand description
A trait marking a backend specific prepared statement type
Required Methods§
Sourcefn parameter_count(&self) -> u64
fn parameter_count(&self) -> u64
Number of parameters for this prepared statement
This is used for consistency checks in the prepared statement cache to not accidentally reuse an existing prepared statement with the wrong number of bind parameters
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".