pub type VarBinaryArray<const LENGTH: usize> = VarBinary<[u8; LENGTH]>;
Expand description
A stack allocated VARBINARY type.
Due to its memory layout this type can be bound either as a single parameter, or as a column of a row-by-row output, but not be used in columnar parameter arrays or output buffers.
Aliased Type§
struct VarBinaryArray<const LENGTH: usize> { /* private fields */ }
Trait Implementations§
Source§impl<const LENGTH: usize> FetchRowMember for VarBinaryArray<LENGTH>
impl<const LENGTH: usize> FetchRowMember for VarBinaryArray<LENGTH>
Source§fn indicator(&self) -> Option<Indicator>
fn indicator(&self) -> Option<Indicator>
Indicator for variable sized or nullable types,
None
for fixed sized types.Source§fn find_truncation(&self, buffer_index: usize) -> Option<TruncationInfo>
fn find_truncation(&self, buffer_index: usize) -> Option<TruncationInfo>
Some
if the indicator indicates truncation. Always None
for fixed sized types.Source§unsafe fn bind_to_col(
&mut self,
col_index: u16,
cursor: &mut StatementRef<'_>,
) -> Result<(), Error>
unsafe fn bind_to_col( &mut self, col_index: u16, cursor: &mut StatementRef<'_>, ) -> Result<(), Error>
Bind row element to column. Only called for the first row in a row wise buffer. Read more