CL_SqliteConnection Class Reference
[clanSqlite System]

Sqlite database connection. More...

#include <sqlite_connection.h>

Inheritance diagram for CL_SqliteConnection:
Inheritance graph
[legend]

List of all members.

Public Member Functions

Construction

 CL_SqliteConnection (const CL_String &db_filename)
 Constructs a SqliteConnection.
 ~CL_SqliteConnection ()
Operations

CL_DBCommand create_command (const CL_StringRef &text, CL_DBCommand::Type type=CL_DBCommand::sql_statement)
 Create database command.
template<class Arg1 >
CL_DBCommand create_command (const CL_StringRef &format, Arg1 arg1, CL_DBCommand::Type type=CL_DBCommand::sql_statement)
 Create database command with 1 input argument.
template<class Arg1 , class Arg2 >
CL_DBCommand create_command (const CL_StringRef &format, Arg1 arg1, Arg2 arg2, CL_DBCommand::Type type=CL_DBCommand::sql_statement)
 Create database command with 2 input arguments.
template<class Arg1 , class Arg2 , class Arg3 >
CL_DBCommand create_command (const CL_StringRef &format, Arg1 arg1, Arg2 arg2, Arg3 arg3, CL_DBCommand::Type type=CL_DBCommand::sql_statement)
 Create database command with 3 input arguments.
template<class Arg1 , class Arg2 , class Arg3 , class Arg4 >
CL_DBCommand create_command (const CL_StringRef &format, Arg1 arg1, Arg2 arg2, Arg3 arg3, Arg4 arg4, CL_DBCommand::Type type=CL_DBCommand::sql_statement)
 Create database command with 4 input arguments.
template<class Arg1 , class Arg2 , class Arg3 , class Arg4 , class Arg5 >
CL_DBCommand create_command (const CL_StringRef &format, Arg1 arg1, Arg2 arg2, Arg3 arg3, Arg4 arg4, Arg5 arg5, CL_DBCommand::Type type=CL_DBCommand::sql_statement)
 Create database command with 5 input arguments.
template<class Arg1 , class Arg2 , class Arg3 , class Arg4 , class Arg5 , class Arg6 >
CL_DBCommand create_command (const CL_StringRef &format, Arg1 arg1, Arg2 arg2, Arg3 arg3, Arg4 arg4, Arg5 arg5, Arg6 arg6, CL_DBCommand::Type type=CL_DBCommand::sql_statement)
 Create database command with 6 input arguments.
template<class Arg1 , class Arg2 , class Arg3 , class Arg4 , class Arg5 , class Arg6 , class Arg7 >
CL_DBCommand create_command (const CL_StringRef &format, Arg1 arg1, Arg2 arg2, Arg3 arg3, Arg4 arg4, Arg5 arg5, Arg6 arg6, Arg7 arg7, CL_DBCommand::Type type=CL_DBCommand::sql_statement)
 Create database command with 7 input arguments.
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

Sqlite database connection.


Constructor & Destructor Documentation

CL_SqliteConnection::CL_SqliteConnection ( const CL_String db_filename  ) 

Constructs a SqliteConnection.

Parameters:
db_filename = String
CL_SqliteConnection::~CL_SqliteConnection (  ) 

Member Function Documentation

CL_DBTransaction CL_DBConnection::begin_transaction ( CL_DBTransaction::Type  type = CL_DBTransaction::deferred  )  [inherited]

Begin a transaction.

CL_DBCommand CL_DBConnection::create_command ( const CL_StringRef text,
CL_DBCommand::Type  type = CL_DBCommand::sql_statement 
) [inherited]

Create database command.

template<class Arg1 >
CL_DBCommand CL_DBConnection::create_command ( const CL_StringRef format,
Arg1  arg1,
CL_DBCommand::Type  type = CL_DBCommand::sql_statement 
) [inline, inherited]

Create database command with 1 input argument.

template<class Arg1 , class Arg2 , class Arg3 , class Arg4 , class Arg5 , class Arg6 , class Arg7 >
CL_DBCommand CL_DBConnection::create_command ( const CL_StringRef format,
Arg1  arg1,
Arg2  arg2,
Arg3  arg3,
Arg4  arg4,
Arg5  arg5,
Arg6  arg6,
Arg7  arg7,
CL_DBCommand::Type  type = CL_DBCommand::sql_statement 
) [inline, inherited]

Create database command with 7 input arguments.

template<class Arg1 , class Arg2 , class Arg3 >
CL_DBCommand CL_DBConnection::create_command ( const CL_StringRef format,
Arg1  arg1,
Arg2  arg2,
Arg3  arg3,
CL_DBCommand::Type  type = CL_DBCommand::sql_statement 
) [inline, inherited]

Create database command with 3 input arguments.

template<class Arg1 , class Arg2 , class Arg3 , class Arg4 >
CL_DBCommand CL_DBConnection::create_command ( const CL_StringRef format,
Arg1  arg1,
Arg2  arg2,
Arg3  arg3,
Arg4  arg4,
CL_DBCommand::Type  type = CL_DBCommand::sql_statement 
) [inline, inherited]

Create database command with 4 input arguments.

template<class Arg1 , class Arg2 >
CL_DBCommand CL_DBConnection::create_command ( const CL_StringRef format,
Arg1  arg1,
Arg2  arg2,
CL_DBCommand::Type  type = CL_DBCommand::sql_statement 
) [inline, inherited]

Create database command with 2 input arguments.

template<class Arg1 , class Arg2 , class Arg3 , class Arg4 , class Arg5 , class Arg6 >
CL_DBCommand CL_DBConnection::create_command ( const CL_StringRef format,
Arg1  arg1,
Arg2  arg2,
Arg3  arg3,
Arg4  arg4,
Arg5  arg5,
Arg6  arg6,
CL_DBCommand::Type  type = CL_DBCommand::sql_statement 
) [inline, inherited]

Create database command with 6 input arguments.

template<class Arg1 , class Arg2 , class Arg3 , class Arg4 , class Arg5 >
CL_DBCommand CL_DBConnection::create_command ( const CL_StringRef format,
Arg1  arg1,
Arg2  arg2,
Arg3  arg3,
Arg4  arg4,
Arg5  arg5,
CL_DBCommand::Type  type = CL_DBCommand::sql_statement 
) [inline, inherited]

Create database command with 5 input arguments.

void CL_DBConnection::execute_non_query ( CL_DBCommand command  )  [inherited]

Execute database command.

CL_DBReader CL_DBConnection::execute_reader ( CL_DBCommand command  )  [inherited]

Begin execution of database command.

int CL_DBConnection::execute_scalar_int ( CL_DBCommand command  )  [inherited]

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

CL_String CL_DBConnection::execute_scalar_string ( CL_DBCommand command  )  [inherited]

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


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