Expand description
This module contains buffers intended to be bound to ODBC statement handles.
Structs
A buffer intended to be bound to a column of a cursor. Elements of the buffer will contain a variable amount of bytes up to a maximum length. Since elements of this type have variable length an additional indicator buffer is also maintained, whether the column is nullable or not. Therefore this buffer type is used for variable sized binary data whether it is nullable or not.
Iterator over a binary column. See crate::buffers::AnyColumnView
Fills a binary column buffer with elements from an Iterator. See
crate::buffers::AnyColumnViewMut
Used to describe a column of a crate::buffers::ColumnarBuffer
.
A columnar buffer intended to be bound with crate::Cursor::bind_buffer in order to obtain results from a cursor.
Iterates over the elements of a column buffer. Returned by
crate::buffers::ColumnarBuffer::column
as part of an crate::buffers::AnyColumnView
.
Used to fill a column buffer with an iterator. Returned by super::ColumnarBuffer::column_mut
as part of an crate::buffers::AnyColumnViewMut
.
A buffer intended to be bound to a column of a cursor. Elements of the buffer will contain a variable amount of characters up to a maximum string length. Since most SQL types have a string representation this buffer can be bound to a column of almost any type, ODBC driver and driver manager should take care of the conversion. Since elements of this type have variable length an indicator buffer needs to be bound, whether the column is nullable or not, and therefore does not matter for this buffer.
Iterator over a text column. See TextColumnView::iter
Allows read only access to the valid part of a text column.
Fills a text column buffer with elements from an Iterator.
Enums
A borrowed view on the valid rows in a column of a crate::buffers::ColumnarBuffer
.
A mutable borrowed view on the valid rows in a column of a ColumnarBuffer
.
This class is used together with crate::buffers::BufferDescription
to specify the layout of
buffers bound to ODBC cursors and statements.
Indicates existence and length of a value.
Traits
A buffer able to be used together with ColumnarBuffer
.
Projections for ColumnBuffers, allowing for reading writing data while bound as a rowset or parameter buffer without invalidating invariants of the type.
Can either be extracted as a slice or a NullableSlice
from an AnyColumnView
. This allows
the user to avoid matching on all possibile variants of an AnyColumnView
in case the
buffered type is known at compile time.
Functions
Convinience function allocating a ColumnarBuffer
fitting the buffer descriptions.
Allows you to pass the buffer descriptions together with a one based column index referring the column, the buffer is supposed to bind to. This allows you also to ignore columns in a result set, by not binding them at all. There is no restriction on the order of column indices passed, but the function will panic, if the indices are not unique.
Type Definitions
A column buffer for character data. The actual encoding used may depend on your system locale.
This row set binds a string buffer to each column, which is large enough to hold the maximum length string representation for each element in the row set at once.
This buffer uses wide characters which implies UTF-16 encoding. UTF-8 encoding is preferable for
most applications, but contrary to its sibling crate::buffers::CharColumn
this buffer types
implied encoding does not depend on the system locale.