You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Apologies if I missed this somewhere, I can't find it. How do you read column with names that conflict with rust reserved keywords (in the current latest version of the driver).
Consider this example where I can't load the type column because I can't use type as a field name in a rust struct.
Currently, the driver completely ignores the field names in the FromRow macro and assumes that the order of the columns is the same as the order of the Rust struct fields. You can give any name to the struct field. This will be changed in the future, though, to increase safety (#463, #462).
Amazing, thank you. It didn't occur to me that the field names might not matter. (Thanks for the tip about rust raw identifiers, I was not aware of that!)
Apologies if I missed this somewhere, I can't find it. How do you read column with names that conflict with rust reserved keywords (in the current latest version of the driver).
Consider this example where I can't load the
type
column because I can't usetype
as a field name in a rust struct.The text was updated successfully, but these errors were encountered: