Skip to main content

PrimaryKeyProber

Trait PrimaryKeyProber 

Source
trait PrimaryKeyProber {
    // Required methods
    async fn estimate_range_rows(
        &mut self,
        start: &str,
        end: Option<&str>,
    ) -> Result<u64, MySqlError>;
    async fn prefix_of_first_key_in_range(
        &mut self,
        start: &str,
        end: Option<&str>,
        len: usize,
    ) -> Result<Option<String>, MySqlError>;
    async fn prefix_of_first_row_not_matching_prefix(
        &mut self,
        cur: &str,
        end: Option<&str>,
        len: usize,
    ) -> Result<Option<String>, MySqlError>;
}
Expand description

Probing operations of KeyProber, as a trait so tests can substitute an in-memory implementation. See KeyProber’s methods for each operation’s contract.

Required Methods§

Source

async fn estimate_range_rows( &mut self, start: &str, end: Option<&str>, ) -> Result<u64, MySqlError>

Source

async fn prefix_of_first_key_in_range( &mut self, start: &str, end: Option<&str>, len: usize, ) -> Result<Option<String>, MySqlError>

Source

async fn prefix_of_first_row_not_matching_prefix( &mut self, cur: &str, end: Option<&str>, len: usize, ) -> Result<Option<String>, MySqlError>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<'a, 't> PrimaryKeyProber for KeyProber<'a, 't>