[][src]Module odbc_api::handles

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.

Description

Wraps a valid description handle.

Environment

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

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.

Nullable

Indication of whether a column is nullable or not.

Traits

AsHandle

Provides access to the raw underlying ODBC handle.

Functions

buf_ptr

Returns a pointer suitable to be passed as an output buffer to ODBC functions. Most notably it will return NULL for empty buffers.