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§
Sourcefn placeholders(num: usize, start_num: Option<usize>) -> String
fn placeholders(num: usize, start_num: Option<usize>) -> String
start_num
is for only PostgreSQL, it is ignored in other RDB.
Sourcefn placeholders_for_bulk_insert_values<I, T>(
values: I,
start_num: Option<usize>,
) -> Stringwhere
I: Iterator<Item = T>,
T: Insertable<Database = Self>,
fn placeholders_for_bulk_insert_values<I, T>(
values: I,
start_num: Option<usize>,
) -> Stringwhere
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.