[−][src]Function serde_rusqlite::from_rows_with_columns
ⓘImportant traits for DeserRows<'rows, D, S>
pub fn from_rows_with_columns<'rows, D: DeserializeOwned, S: AsRef<str>>(
rows: Rows<'rows>,
columns: &'rows [S]
) -> DeserRows<'rows, D, S>
Returns iterator that owns rusqlite::Rows
and deserializes all records from it into instances of D: serde::Deserialize
.
Also see from_row_with_columns()
for some specific info.
This function covers most of the use cases and is easier to use than the alternative from_rows_ref_with_columns()
.