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