Module odbc_api::buffers[][src]

Expand description

This module contains buffers intended to be bound to ODBC statement handles.

Structs

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::ColumnarRowSet.

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::ColumnarRowSet::column as part of an crate::buffers::AnyColumnView.

Used to fill a column buffer with an iterator. Returned by super::ColumnarRowSet::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 TextColumn::iter

Fills a text column buffer with elements from an Iterator.

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.

Enums

A borrowed view on the valid rows in a column of a crate::buffers::ColumnarRowSet.

A mutable borrowed view on the valid rows in a column of a crate::buffers::ColumnarRowSet.

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

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.

Type Definitions

A column buffer for character data. The actual encoding used may depend on your system locale.

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.