Trait PlaceHolders

Source
pub trait PlaceHolders: Database {
    // Provided methods
    fn placeholders(num: usize, start_num: Option<usize>) -> String { ... }
    fn placeholders_for_bulk_insert_values<I, T>(
        values: I,
        start_num: Option<usize>,
    ) -> String
       where I: Iterator<Item = T>,
             T: Insertable<Database = Self> { ... }
}

Provided Methods§

Source

fn placeholders(num: usize, start_num: Option<usize>) -> String

start_num is for only PostgreSQL, it is ignored in other RDB.

Source

fn placeholders_for_bulk_insert_values<I, T>( values: I, start_num: Option<usize>, ) -> String
where I: Iterator<Item = T>, T: Insertable<Database = Self>,

start_num is for only PostgreSQL, it is ignored in other RDB.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§