pub struct OdbcParameterCollection { /* private fields */ }Expand description
Owned 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 OdbcParameterCollection
impl OdbcParameterCollection
Sourcepub fn from_values(values: &[OdbcArgumentValue]) -> Self
pub fn from_values(values: &[OdbcArgumentValue]) -> Self
Converts raw SQLx 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 OdbcParameterCollection
impl Debug for OdbcParameterCollection
Source§impl Default for OdbcParameterCollection
impl Default for OdbcParameterCollection
Source§fn default() -> OdbcParameterCollection
fn default() -> OdbcParameterCollection
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for OdbcParameterCollection
impl !RefUnwindSafe for OdbcParameterCollection
impl Send for OdbcParameterCollection
impl !Sync for OdbcParameterCollection
impl Unpin for OdbcParameterCollection
impl UnsafeUnpin for OdbcParameterCollection
impl !UnwindSafe for OdbcParameterCollection
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