Struct MySqlRow
pub struct MySqlRow {
pub(crate) row: Row,
pub(crate) format: MySqlValueFormat,
pub(crate) columns: Arc<Vec<MySqlColumn>>,
pub(crate) column_names: Arc<HashMap<UStr, usize>>,
}Expand description
Implementation of Row for MySQL.
Fields§
§row: Row§format: MySqlValueFormat§columns: Arc<Vec<MySqlColumn>>§column_names: Arc<HashMap<UStr, usize>>Trait Implementations§
§impl ColumnIndex<MySqlRow> for &str
impl ColumnIndex<MySqlRow> for &str
§fn index(&self, row: &MySqlRow) -> Result<usize, Error>
fn index(&self, row: &MySqlRow) -> Result<usize, Error>
Returns a valid positional index into the row or statement,
ColumnIndexOutOfBounds, or,
ColumnNotFound.§impl ColumnIndex<MySqlRow> for usize
impl ColumnIndex<MySqlRow> for usize
§fn index(&self, row: &MySqlRow) -> Result<usize, Error>
fn index(&self, row: &MySqlRow) -> Result<usize, Error>
Returns a valid positional index into the row or statement,
ColumnIndexOutOfBounds, or,
ColumnNotFound.§impl From<MySqlRow> for QueryResult
impl From<MySqlRow> for QueryResult
§fn from(row: MySqlRow) -> QueryResult
fn from(row: MySqlRow) -> QueryResult
Converts to this type from the input type.
§impl GetMySqlValue for MySqlRow
impl GetMySqlValue for MySqlRow
fn get_string(&self, idx: usize) -> String
fn get_string_opt(&self, idx: usize) -> Option<String>
§impl Row for MySqlRow
impl Row for MySqlRow
type Database = MySql
§fn columns(&self) -> &[MySqlColumn]
fn columns(&self) -> &[MySqlColumn]
Gets all columns in this statement.
§fn try_get_raw<I>(&self, index: I) -> Result<MySqlValueRef<'_>, Error>where
I: ColumnIndex<MySqlRow>,
fn try_get_raw<I>(&self, index: I) -> Result<MySqlValueRef<'_>, Error>where
I: ColumnIndex<MySqlRow>,
Index into the database row and decode a single value. Read more
§fn column<I>(&self, index: I) -> &<Self::Database as Database>::Columnwhere
I: ColumnIndex<Self>,
fn column<I>(&self, index: I) -> &<Self::Database as Database>::Columnwhere
I: ColumnIndex<Self>,
Gets the column information at
index. Read more§fn try_column<I>(
&self,
index: I,
) -> Result<&<Self::Database as Database>::Column, Error>where
I: ColumnIndex<Self>,
fn try_column<I>(
&self,
index: I,
) -> Result<&<Self::Database as Database>::Column, Error>where
I: ColumnIndex<Self>,
Gets the column information at
index or a ColumnIndexOutOfBounds error if out of bounds.§fn get<'r, T, I>(&'r self, index: I) -> T
fn get<'r, T, I>(&'r self, index: I) -> T
Index into the database row and decode a single value. Read more
§fn get_unchecked<'r, T, I>(&'r self, index: I) -> T
fn get_unchecked<'r, T, I>(&'r self, index: I) -> T
Index into the database row and decode a single value. Read more
§fn try_get<'r, T, I>(&'r self, index: I) -> Result<T, Error>
fn try_get<'r, T, I>(&'r self, index: I) -> Result<T, Error>
Index into the database row and decode a single value. Read more
§fn try_get_unchecked<'r, T, I>(&'r self, index: I) -> Result<T, Error>
fn try_get_unchecked<'r, T, I>(&'r self, index: I) -> Result<T, Error>
Index into the database row and decode a single value. Read more
Auto Trait Implementations§
impl !Freeze for MySqlRow
impl RefUnwindSafe for MySqlRow
impl Send for MySqlRow
impl Sync for MySqlRow
impl Unpin for MySqlRow
impl UnwindSafe for MySqlRow
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more