pub struct MssqlParameterCollection { /* private fields */ }Expand description
Owned MSSQL ODBC parameter storage ready to bind with odbc-api.
odbc-api implements ParameterCollectionRef for &[Box<dyn InputParameter>], so executor
code can pass collection.as_slice() to Connection::execute or Preallocated::execute.
Implementations§
Source§impl MssqlParameterCollection
impl MssqlParameterCollection
Sourcepub fn from_values(values: &[MssqlArgumentValue]) -> MssqlParameterCollection
pub fn from_values(values: &[MssqlArgumentValue]) -> MssqlParameterCollection
Converts raw SQLx MSSQL ODBC argument values into owned odbc-api input parameters.
Sourcepub fn as_slice(&self) -> &[Box<dyn InputParameter>]
pub fn as_slice(&self) -> &[Box<dyn InputParameter>]
Returns the parameter slice accepted by odbc-api execution methods.
Trait Implementations§
Source§impl Debug for MssqlParameterCollection
impl Debug for MssqlParameterCollection
Source§impl Default for MssqlParameterCollection
impl Default for MssqlParameterCollection
Source§fn default() -> MssqlParameterCollection
fn default() -> MssqlParameterCollection
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for MssqlParameterCollection
impl !Sync for MssqlParameterCollection
impl !UnwindSafe for MssqlParameterCollection
impl Freeze for MssqlParameterCollection
impl Send for MssqlParameterCollection
impl Unpin for MssqlParameterCollection
impl UnsafeUnpin for MssqlParameterCollection
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> 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