CL_DBConnection Class Reference
[clanDatabase System]

Database connection. More...

#include <db_connection.h>

Inheritance diagram for CL_DBConnection:

CL_SqliteConnection List of all members.

Public Member Functions

Construction
 CL_DBConnection ()
 Constructs a database connection.
 CL_DBConnection (CL_DBConnectionProvider *provider)
 Constructs a DBConnection.
 ~CL_DBConnection ()
Operations
CL_DBCommand create_command (const CL_StringRef &text, CL_DBCommand::Type type=CL_DBCommand::sql_statement)
 Create database command.
CL_DBTransaction begin_transaction (CL_DBTransaction::Type type=CL_DBTransaction::deferred)
 Begin a transaction.
CL_DBReader execute_reader (CL_DBCommand &command)
 Begin execution of database command.
CL_String execute_scalar_string (CL_DBCommand &command)
 Execute database command and returns the first column of the first row.
int execute_scalar_int (CL_DBCommand &command)
 Execute database command and returns the first column of the first row.
void execute_non_query (CL_DBCommand &command)
 Execute database command.

Detailed Description

Database connection.


Constructor & Destructor Documentation

CL_DBConnection::CL_DBConnection  ) 
 

Constructs a database connection.

CL_DBConnection::CL_DBConnection CL_DBConnectionProvider provider  ) 
 

Constructs a DBConnection.

Parameters:
provider = DBConnection Provider

CL_DBConnection::~CL_DBConnection  ) 
 


Member Function Documentation

CL_DBTransaction CL_DBConnection::begin_transaction CL_DBTransaction::Type  type = CL_DBTransaction::deferred  ) 
 

Begin a transaction.

CL_DBCommand CL_DBConnection::create_command const CL_StringRef text,
CL_DBCommand::Type  type = CL_DBCommand::sql_statement
 

Create database command.

void CL_DBConnection::execute_non_query CL_DBCommand command  ) 
 

Execute database command.

CL_DBReader CL_DBConnection::execute_reader CL_DBCommand command  ) 
 

Begin execution of database command.

int CL_DBConnection::execute_scalar_int CL_DBCommand command  ) 
 

Execute database command and returns the first column of the first row.

CL_String CL_DBConnection::execute_scalar_string CL_DBCommand command  ) 
 

Execute database command and returns the first column of the first row.


The documentation for this class was generated from the following file:
Generated on Thu Dec 3 02:39:35 2009 for ClanLib by  doxygen 1.4.6