Module odbc_api::handles[][src]

Provides basic abstraction over valid (i.e. allocated ODBC handles).

Two decisions are already baked into this module:

  • Treat warnings by logging them with log.
  • Use the Unicode (wide) variants of the ODBC API.

Structs

ColumnDescription

Describes the type and attributes of a column.

Connection

The connection handle references storage of all information about the connection to the data source, including status, transaction state, and error information.

Environment

An Environment is a global context, in which to access data.

ParameterDescription

Description of a parameter associated with a parameter marker in a prepared statement. Returned by crate::Prepared::describe_param.

Record

ODBC Diagnostic Record

Statement

Wraps a valid (i.e. successfully allocated) ODBC statement handle.

Enums

DataType

Enumeration over valid SQL Data Types supported by ODBC

Error

Error type used to indicate a low level ODBC call returned with SQL_ERROR.

Nullability

Indication of whether a column is nullable or not.

Traits

AsHandle

Provides access to the raw underlying ODBC handle.

CData

Provides description of C type layout and pointers to it. Used to bind and buffers to ODBC statements.

CDataMut

A type which can be bound mutably to ODBC.

HasDataType

Can be bound to a single placeholder in an SQL statement.