We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 695b51c commit 85e3056Copy full SHA for 85e3056
src/row.rs
@@ -62,6 +62,10 @@ const _: () = {
62
pub trait FromRow: Sized {
63
/// Try decoding a [row](Row) into `Self`.
64
fn from_row(row: Row) -> Result<Self, Error>;
65
+
66
+ /// A version of [from_row](FromRow::from_row) which uses the columns positions instead of names.
67
+ /// This is a work-around until [mariaDB](https://github.com/rorm-orm/rorm/issues/33) is fixed.
68
+ fn from_row_using_position(row: Row) -> Result<Self, Error>;
69
}
70
71
macro_rules! impl_from_row {
@@ -79,6 +83,10 @@ macro_rules! impl_from_row {
79
83
)+
80
84
))
81
85
86
87
+ fn from_row_using_position(row: Row) -> Result<Self, Error> {
88
+ Self::from_row(row)
89
+ }
82
90
91
};
92
0 commit comments