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

Encapsulate the occi::Statement class. More...

#include <oracle.h>

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

Public Member Functions

 SQL (Nexus &, const char *=0)
 Construct by creating the occi::Statement. More...
 
 SQL (const SQL &)=delete
 
const SQLoperator= (const SQL &)=delete
 
 ~SQL (void)
 Destroy by freeing the occi::Statement.
 
oracle::occi::Statement & operator() (void)
 
unsigned Modify (const char *=0)
 Execute a SQL DDL/DML statement (no result set returned). More...
 

Protected Attributes

oracle::occi::Statement * m_stmt
 Wrapped OCCI object.
 
Nexusm_nexus
 Creator of this object.
 

Friends

class Nexus
 
class Results
 

Detailed Description

Encapsulate the occi::Statement class.

An instance is used to send SQL statements to the oracle server. Use the call operator on an instance to access the underlying occi object.

Note
Do not share an instance between threads.

Constructor & Destructor Documentation

◆ SQL()

Oracle::SQL::SQL ( Nexus nexus,
const char *  sql = 0 
)
explicit

Construct by creating the occi::Statement.

Parameters
nexus- Owned by this Nexus object.
sql- Optional SQL statement to assign.

Member Function Documentation

◆ Modify()

unsigned Oracle::SQL::Modify ( const char *  sql = 0)

Execute a SQL DDL/DML statement (no result set returned).

Parameters
sql- SQL to execute (optional; it may be preloaded).
Returns
The row count.

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