pub struct MssqlRow { /* private fields */ }Expand description
Minimal MSSQL row container used by the SQLx-core skeleton.
Implementations§
Source§impl MssqlRow
impl MssqlRow
Sourcepub fn new(columns: Vec<MssqlColumn>, values: Vec<MssqlValue>) -> MssqlRow
pub fn new(columns: Vec<MssqlColumn>, values: Vec<MssqlValue>) -> MssqlRow
Creates a row from column metadata and values.
Trait Implementations§
Source§impl ColumnIndex<MssqlRow> for &str
impl ColumnIndex<MssqlRow> for &str
Source§fn index(&self, row: &MssqlRow) -> Result<usize, Error>
fn index(&self, row: &MssqlRow) -> Result<usize, Error>
Returns a valid positional index into the row or statement,
ColumnIndexOutOfBounds, or,
ColumnNotFound.Source§impl Row for MssqlRow
impl Row for MssqlRow
type Database = Mssql
Source§fn columns(&self) -> &[MssqlColumn]
fn columns(&self) -> &[MssqlColumn]
Gets all columns in this statement.
Source§fn try_get_raw<I>(
&self,
index: I,
) -> Result<<<MssqlRow as Row>::Database as Database>::ValueRef<'_>, Error>where
I: ColumnIndex<MssqlRow>,
fn try_get_raw<I>(
&self,
index: I,
) -> Result<<<MssqlRow as Row>::Database as Database>::ValueRef<'_>, Error>where
I: ColumnIndex<MssqlRow>,
Index into the database row and decode a single value. Read more
Source§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 moreSource§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.Source§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
Source§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
Source§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
Auto Trait Implementations§
impl Freeze for MssqlRow
impl RefUnwindSafe for MssqlRow
impl Send for MssqlRow
impl Sync for MssqlRow
impl Unpin for MssqlRow
impl UnsafeUnpin for MssqlRow
impl UnwindSafe for MssqlRow
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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