oralib  0.0.2
Public Member Functions | Protected Attributes | Friends | List of all members
Oracle::Results Class Reference

Encapsulate the occi::ResultSet class. More...

#include <oracle.h>

Collaboration diagram for Oracle::Results:
Collaboration graph
[legend]

Public Member Functions

 Results (SQL &, const char *=0)
 Construct by creating occi::ResultSet from query. More...
 
 Results (const Results &)=delete
 
const Resultsoperator= (const Results &)=delete
 
 ~Results (void)
 Destroy by freeing the occi::ResultSet.
 
oracle::occi::ResultSet & operator() (void)
 

Protected Attributes

oracle::occi::ResultSet * m_rs
 Wrapped OCCI object.
 
SQLm_sql
 Creator of this object.
 

Friends

class SQL
 

Detailed Description

Encapsulate the occi::ResultSet class.

An instance represents the results of a SQL 'SELECT' statement, Use the call operator on an instance to access the underlying occi object.

Note
Do not share an instance between threads.

Constructor & Destructor Documentation

◆ Results()

Oracle::Results::Results ( SQL sql,
const char *  stmt = 0 
)
explicit

Construct by creating occi::ResultSet from query.

Parameters
sql- Statement objects.
stmt- SQL statement to load over any existing one (optional).
Note
When you associate a Results object with a statement, you must not reuse the statement before the Results object has been destroyed.

The documentation for this class was generated from the following files: