[−][src]Function sql_support::repeat::repeat_sql_values
pub fn repeat_sql_values(count: usize) -> impl Display
Returns a value that formats as count
instances of (?)
separated by commas.
Example
assert_eq!(format!("{}", repeat_sql_values(0)), ""); assert_eq!(format!("{}", repeat_sql_values(1)), "(?)"); assert_eq!(format!("{}", repeat_sql_values(2)), "(?),(?)"); assert_eq!(format!("{}", repeat_sql_values(3)), "(?),(?),(?)");