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
A view to a mutable array parameter text buffer, which allows for filling the buffer with
values.
BufferDescriptionDeprecated
Describes 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
crate::ColumnarBulkInserter::column_mut
as part of an crate::buffers::AnyColumnSliceMut
.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
A view to a mutable array parameter text buffer, which allows for filling the buffer with
values.
Allows read only access to the valid part of a text column.
Enums
Buffer holding a single column of either a result set or paramater
A borrowed view on the valid rows in a column of a
crate::buffers::ColumnarBuffer
.A mutable slice of an input buffer, with runtime type information. Edit values in this slice in
order to send parameters in bulk to a database.
Describes a column of a
crate::buffers::ColumnarBuffer
.BufferKindDeprecated
This class is used together with
BufferDescription
to specify the layout of buffers bound to
ODBC cursors and statements.Indicates existence and length of a value.
Traits
A buffer for a single column intended to be used together with
ColumnarBuffer
.Can either be extracted as a slice or a
NullableSlice
from an AnySlice
. This allows
the user to avoid matching on all possibile variants of an AnySlice
in case the
buffered type is known at compile time.Type Definitions
AnyColumnBufferDeprecated
AnyColumnSliceMutDeprecated
AnyColumnViewDeprecated
A column buffer for character data. The actual encoding used may depend on your system locale.
Flexible columnar buffer implementation. Bind this to a cursor to fetch values in bulk, or pass
this as a parameter to a statement, to submit many parameters at once.
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.