tntdb::oracle Namespace Reference

This namespace contains the implementation of the Oracle driver for tntdb. More...

Namespaces

namespace  error

Classes

class  Blob
class  Connection
class  ConnectionManager
class  Cursor
class  Datetime
class  Error
class  InvalidHandle
class  StillExecuting
class  ErrorContinue
class  MultiRow
class  MultiValue
class  Number
class  Result
class  Row
class  SingleRow
class  SingleValue
class  Statement
class  Value

Detailed Description

This namespace contains the implementation of the Oracle driver for tntdb.

Note that the oracle driver is not compiled by default when tntdb is built. It must be enabled using the configure switch –with-oracle.

The driver makes it possible to access a Oracle database using tntdb.

To get a connection to a Oracle database, the dburl to the tntdb::connect function must start with "oracle:". The remaining string specifies the connection parameters to the oracle database.

The attributes user and passwd are extracted and the rest is passed to the OCIServerAttach function of OCI.

A typical connection with a Oracle driver looks like that:

tntdb::Connection conn = tntdb::connect("oracle:XE;user=hr;passwd=hr");