pub fn to_params<T, DF>(
value: &T,
metadata: &mut dyn Iterator<Item = DF>
) -> Result<Vec<DF::DBV>, SerializationError>where
T: Sized + Serialize,
DF: DbvFactory,
Expand description
Provided method that translates the input into a Vec of database values.
Database drivers use this method in their implementation (e.g. behind a
PreparedStatement::add_batch()
).
Errors
SerializationError
if the value cannot be translated into a database value of
the required type.