3.8.1Class ODBC

Interface to ODBC connections.

Class ODBC( connect, [options] )

connect

String containing connection parameters.

options

Connection and query default options.

The ODBC drivers have a limited ability to determine the underlying database types; for this reason, it's advisable to limit the usage of prepared statements, and rely on query, which performs safer verbatim parameter expansion.

The connect string is directly passed to the ODBC driver for connection, so it must respect ODBC standards and specific extensions of the target database.

Other than the base DBI class options, this class supports the following options: