clanDatabase System

Classes

class  clan::DBCommand
 Database command. More...
 
class  clan::DBCommandProvider
 Database command provider. More...
 
class  clan::DBConnection
 Database connection. More...
 
class  clan::DBConnectionProvider
 Database connection provider. More...
 
class  clan::DBReader
 Database reader. More...
 
class  clan::DBReaderProvider
 Database reader provider. More...
 
class  clan::DBTransaction
 Database transaction. More...
 
class  clan::DBTransactionProvider
 Database transaction provider. More...
 

Functions

 clan::DBConnection::DBArg::DBArg (DBConnection &db, const std::string &format, DBCommand::Type type)
 
DBCommand clan::DBConnection::DBArg::get_result () const
 
DBArg & clan::DBConnection::DBArg::set_arg (const std::string &arg)
 
DBArg & clan::DBConnection::DBArg::set_arg (const char *arg)
 
DBArg & clan::DBConnection::DBArg::set_arg (bool arg)
 
DBArg & clan::DBConnection::DBArg::set_arg (int arg)
 
DBArg & clan::DBConnection::DBArg::set_arg (double arg)
 
DBArg & clan::DBConnection::DBArg::set_arg (const DateTime &arg)
 
DBArg & clan::DBConnection::DBArg::set_arg (const DataBuffer &arg)
 

Construction

enum  clan::DBCommand::Type { clan::DBCommand::stored_procedure, clan::DBCommand::sql_statement }
 
 clan::DBCommand::DBCommand ()
 Constructs a database command. More...
 
 clan::DBCommand::DBCommand (const std::shared_ptr< DBCommand_Impl > &impl)
 Constructs a DBCommand. More...
 
 clan::DBCommand::~DBCommand ()
 

Attributes

int clan::DBCommand::get_input_parameter_column (const std::string &name) const
 Returns the index for a given input parameter name. More...
 
int clan::DBCommand::get_output_last_insert_rowid () const
 Returns the output parameter containing the row id of the last inserted row. More...
 
DBCommandProvider * clan::DBCommand::get_provider ()
 Returns the provider interface for this command. More...
 

Operations

void clan::DBCommand::set_input_parameter_string (int index, const std::string &value)
 Sets the specified input parameter index from a string value. More...
 
void clan::DBCommand::set_input_parameter_bool (int index, bool value)
 Sets the specified input parameter index from a boolean value. More...
 
void clan::DBCommand::set_input_parameter_int (int index, int value)
 Sets the specified input parameter index from an integer value. More...
 
void clan::DBCommand::set_input_parameter_double (int index, double value)
 Sets the specified input parameter index from a double value. More...
 
void clan::DBCommand::set_input_parameter_datetime (int index, const DateTime &value)
 Sets the specified input parameter index from a DateTime value. More...
 
void clan::DBCommand::set_input_parameter_binary (int index, const DataBuffer &value)
 Sets the specified input parameter index from a DataBuffer value. More...
 
template<class ValueType >
void clan::DBCommand::set_input_parameter (int index, ValueType value)
 Sets the specified input parameter index from a value. More...
 
template<class ValueType >
void clan::DBCommand::set_input_parameter (const std::string &name, ValueType value)
 Sets the specified input parameter name from a value. More...
 

Construction

virtual clan::DBCommandProvider::~DBCommandProvider ()
 

Attributes

virtual int clan::DBCommandProvider::get_input_parameter_column (const std::string &name) const =0
 Returns the index for a given input parameter name. More...
 
virtual int clan::DBCommandProvider::get_output_last_insert_rowid () const =0
 Returns the output parameter containing the row id of the last inserted row. More...
 

Operations

virtual void clan::DBCommandProvider::set_input_parameter_string (int index, const std::string &value)=0
 Sets the specified input parameter index from a string value. More...
 
virtual void clan::DBCommandProvider::set_input_parameter_bool (int index, bool value)=0
 Sets the specified input parameter index from a boolean value. More...
 
virtual void clan::DBCommandProvider::set_input_parameter_int (int index, int value)=0
 Sets the specified input parameter index from an integer value. More...
 
virtual void clan::DBCommandProvider::set_input_parameter_double (int index, double value)=0
 Sets the specified input parameter index from a double value. More...
 
virtual void clan::DBCommandProvider::set_input_parameter_datetime (int index, const DateTime &value)=0
 Sets the specified input parameter index from a DateTime value. More...
 
virtual void clan::DBCommandProvider::set_input_parameter_binary (int index, const DataBuffer &value)=0
 Sets the specified input parameter index from a DataBuffer value. More...
 

Construction

 clan::DBConnection::DBConnection ()
 Constructs a database connection. More...
 
 clan::DBConnection::DBConnection (DBConnectionProvider *provider)
 Constructs a DBConnection. More...
 
 clan::DBConnection::~DBConnection ()
 

Operations

DBCommand clan::DBConnection::create_command (const std::string &text, DBCommand::Type type=DBCommand::sql_statement)
 Create database command. More...
 
template<class Arg1 >
DBCommand clan::DBConnection::create_command (const std::string &format, Arg1 arg1, DBCommand::Type type=DBCommand::sql_statement)
 Create database command with 1 input argument. More...
 
template<class Arg1 , class Arg2 >
DBCommand clan::DBConnection::create_command (const std::string &format, Arg1 arg1, Arg2 arg2, DBCommand::Type type=DBCommand::sql_statement)
 Create database command with 2 input arguments. More...
 
template<class Arg1 , class Arg2 , class Arg3 >
DBCommand clan::DBConnection::create_command (const std::string &format, Arg1 arg1, Arg2 arg2, Arg3 arg3, DBCommand::Type type=DBCommand::sql_statement)
 Create database command with 3 input arguments. More...
 
template<class Arg1 , class Arg2 , class Arg3 , class Arg4 >
DBCommand clan::DBConnection::create_command (const std::string &format, Arg1 arg1, Arg2 arg2, Arg3 arg3, Arg4 arg4, DBCommand::Type type=DBCommand::sql_statement)
 Create database command with 4 input arguments. More...
 
template<class Arg1 , class Arg2 , class Arg3 , class Arg4 , class Arg5 >
DBCommand clan::DBConnection::create_command (const std::string &format, Arg1 arg1, Arg2 arg2, Arg3 arg3, Arg4 arg4, Arg5 arg5, DBCommand::Type type=DBCommand::sql_statement)
 Create database command with 5 input arguments. More...
 
template<class Arg1 , class Arg2 , class Arg3 , class Arg4 , class Arg5 , class Arg6 >
DBCommand clan::DBConnection::create_command (const std::string &format, Arg1 arg1, Arg2 arg2, Arg3 arg3, Arg4 arg4, Arg5 arg5, Arg6 arg6, DBCommand::Type type=DBCommand::sql_statement)
 Create database command with 6 input arguments. More...
 
template<class Arg1 , class Arg2 , class Arg3 , class Arg4 , class Arg5 , class Arg6 , class Arg7 >
DBCommand clan::DBConnection::create_command (const std::string &format, Arg1 arg1, Arg2 arg2, Arg3 arg3, Arg4 arg4, Arg5 arg5, Arg6 arg6, Arg7 arg7, DBCommand::Type type=DBCommand::sql_statement)
 Create database command with 7 input arguments. More...
 
DBTransaction clan::DBConnection::begin_transaction (DBTransaction::Type type=DBTransaction::deferred)
 Begin a transaction. More...
 
DBReader clan::DBConnection::execute_reader (DBCommand &command)
 Begin execution of database command. More...
 
std::string clan::DBConnection::execute_scalar_string (DBCommand &command)
 Execute database command and returns the first column of the first row. More...
 
int clan::DBConnection::execute_scalar_int (DBCommand &command)
 Execute database command and returns the first column of the first row. More...
 
void clan::DBConnection::execute_non_query (DBCommand &command)
 Execute database command. More...
 

Construction

virtual clan::DBConnectionProvider::~DBConnectionProvider ()
 

Operations

virtual DBCommandProvider * clan::DBConnectionProvider::create_command (const std::string &text, DBCommand::Type type)=0
 Create database command. More...
 
virtual DBTransactionProvider * clan::DBConnectionProvider::begin_transaction (DBTransaction::Type type)=0
 Begin a transaction. More...
 
virtual DBReaderProvider * clan::DBConnectionProvider::execute_reader (DBCommandProvider *command)=0
 Begin execution of database command. More...
 
virtual std::string clan::DBConnectionProvider::execute_scalar_string (DBCommandProvider *command)=0
 Execute database command and returns the first column of the first row. More...
 
virtual int clan::DBConnectionProvider::execute_scalar_int (DBCommandProvider *command)=0
 Execute database command and returns the first column of the first row. More...
 
virtual void clan::DBConnectionProvider::execute_non_query (DBCommandProvider *command)=0
 Execute database command. More...
 

Construction

 clan::DBReader::DBReader ()
 Constructs a database reader. More...
 
 clan::DBReader::DBReader (const std::shared_ptr< DBReader_Impl > &impl)
 Constructs a DBReader. More...
 
 clan::DBReader::~DBReader ()
 

Attributes

int clan::DBReader::get_column_count () const
 Returns the number of columns in the result set. More...
 
std::string clan::DBReader::get_column_name (int index) const
 Returns the name of the specified column index. More...
 
int clan::DBReader::get_name_index (const std::string &name) const
 Returns the index of the specified column name. More...
 
DBValue clan::DBReader::get_column_value (int index) const
 Retrieves the value of the specified column. More...
 
DBValue clan::DBReader::get_column_value (const std::string &name) const
 Retrieves the value of the specified column name. More...
 
std::string clan::DBReader::get_column_string (int index) const
 Retrieves the value of the specified column as a string. More...
 
bool clan::DBReader::get_column_bool (int index) const
 Retrieves the value of the specified column as a boolean. More...
 
char clan::DBReader::get_column_char (int index) const
 Retrieves the value of the specified column as a boolean. More...
 
unsigned char clan::DBReader::get_column_uchar (int index) const
 Retrieves the value of the specified column as a boolean. More...
 
int clan::DBReader::get_column_int (int index) const
 Retrieves the value of the specified column as an integer. More...
 
unsigned int clan::DBReader::get_column_uint (int index) const
 Retrieves the value of the specified column as an integer. More...
 
double clan::DBReader::get_column_double (int index) const
 Retrieves the value of the specified column as a double. More...
 
DateTime clan::DBReader::get_column_datetime (int index) const
 Retrieves the value of the specified column as a DateTime. More...
 
DataBuffer clan::DBReader::get_column_binary (int index) const
 Retrieves the value of the specified column as a DataBuffer. More...
 
std::string clan::DBReader::get_column_string (const std::string &column_name) const
 Retrieves the value of the specified column as a string. More...
 
bool clan::DBReader::get_column_bool (const std::string &column_name) const
 Retrieves the value of the specified column as a boolean. More...
 
char clan::DBReader::get_column_char (const std::string &column_name) const
 Retrieves the value of the specified column as a boolean. More...
 
unsigned char clan::DBReader::get_column_uchar (const std::string &column_name) const
 Retrieves the value of the specified column as a boolean. More...
 
int clan::DBReader::get_column_int (const std::string &column_name) const
 Retrieves the value of the specified column as an integer. More...
 
unsigned int clan::DBReader::get_column_uint (const std::string &column_name) const
 Retrieves the value of the specified column as an integer. More...
 
double clan::DBReader::get_column_double (const std::string &column_name) const
 Retrieves the value of the specified column as a double. More...
 
DateTime clan::DBReader::get_column_datetime (const std::string &column_name) const
 Retrieves the value of the specified column as a DateTime. More...
 
DataBuffer clan::DBReader::get_column_binary (const std::string &column_name) const
 Retrieves the value of the specified column as a DataBuffer. More...
 
DBReaderProvider * clan::DBReader::get_provider ()
 Returns the provider interface for this reader. More...
 

Operations

bool clan::DBReader::retrieve_row ()
 Retrieves a row from the command execution result. More...
 
void clan::DBReader::close ()
 Closes the database reader. More...
 

Construction

virtual clan::DBReaderProvider::~DBReaderProvider ()
 

Attributes

virtual int clan::DBReaderProvider::get_column_count () const =0
 Returns the number of columns in the result set. More...
 
virtual std::string clan::DBReaderProvider::get_column_name (int index) const =0
 Returns the name of the specified column index. More...
 
virtual int clan::DBReaderProvider::get_name_index (const std::string &name) const =0
 Returns the index of the specified column name. More...
 
virtual std::string clan::DBReaderProvider::get_column_string (int index) const =0
 Retrieves the value of the specified column as a string. More...
 
virtual bool clan::DBReaderProvider::get_column_bool (int index) const =0
 Retrieves the value of the specified column as a boolean. More...
 
virtual char clan::DBReaderProvider::get_column_char (int index) const =0
 Retrieves the value of the specified column as a char. More...
 
virtual unsigned char clan::DBReaderProvider::get_column_uchar (int index) const =0
 Retrieves the value of the specified column as an unsigned char. More...
 
virtual int clan::DBReaderProvider::get_column_int (int index) const =0
 Retrieves the value of the specified column as an integer. More...
 
virtual unsigned int clan::DBReaderProvider::get_column_uint (int index) const =0
 Retrieves the value of the specified column as an unsigned integer. More...
 
virtual double clan::DBReaderProvider::get_column_double (int index) const =0
 Retrieves the value of the specified column as a double. More...
 
virtual DateTime clan::DBReaderProvider::get_column_datetime (int index) const =0
 Retrieves the value of the specified column as a DateTime. More...
 
virtual DataBuffer clan::DBReaderProvider::get_column_binary (int index) const =0
 Retrieves the value of the specified column as a DataBuffer. More...
 

Operations

virtual bool clan::DBReaderProvider::retrieve_row ()=0
 Retrieves a row from the command execution result. More...
 
virtual void clan::DBReaderProvider::close ()=0
 Closes the database reader. More...
 

Construction

enum  clan::DBTransaction::Type { clan::DBTransaction::deferred, clan::DBTransaction::immediate, clan::DBTransaction::exclusive, clan::DBTransaction::default_transaction }
 
 clan::DBTransaction::DBTransaction ()
 Constructs a database transaction. More...
 
 clan::DBTransaction::DBTransaction (const std::shared_ptr< DBTransaction_Impl > &impl)
 Constructs a DBTransaction. More...
 
 clan::DBTransaction::~DBTransaction ()
 

Attributes

DBTransactionProvider * clan::DBTransaction::get_provider ()
 Returns the provider interface for this transaction. More...
 

Operations

void clan::DBTransaction::commit ()
 Commits the transaction. More...
 
void clan::DBTransaction::rollback ()
 Rolls the transaction back. More...
 

Construction

virtual clan::DBTransactionProvider::~DBTransactionProvider ()
 

Operations

virtual void clan::DBTransactionProvider::commit ()=0
 Commits the transaction. More...
 
virtual void clan::DBTransactionProvider::rollback ()=0
 Rolls the transaction back. More...
 

Detailed Description

Enumeration Type Documentation

Enumerator
deferred 
immediate 
exclusive 
default_transaction 
Enumerator
stored_procedure 
sql_statement 

Function Documentation

clan::DBConnection::DBArg::DBArg ( DBConnection db,
const std::string &  format,
DBCommand::Type  type 
)
inline
clan::DBCommand::DBCommand ( )

Constructs a database command.

clan::DBCommand::DBCommand ( const std::shared_ptr< DBCommand_Impl > &  impl)

Constructs a DBCommand.

Parameters
impl= Shared Ptr
clan::DBConnection::DBConnection ( )

Constructs a database connection.

clan::DBConnection::DBConnection ( DBConnectionProvider provider)

Constructs a DBConnection.

Parameters
provider= DBConnection Provider
clan::DBReader::DBReader ( )

Constructs a database reader.

clan::DBReader::DBReader ( const std::shared_ptr< DBReader_Impl > &  impl)

Constructs a DBReader.

Parameters
impl= Shared Ptr
clan::DBTransaction::DBTransaction ( )

Constructs a database transaction.

clan::DBTransaction::DBTransaction ( const std::shared_ptr< DBTransaction_Impl > &  impl)

Constructs a DBTransaction.

Parameters
impl= Shared Ptr
clan::DBCommand::~DBCommand ( )
virtual clan::DBCommandProvider::~DBCommandProvider ( )
inlinevirtual
clan::DBConnection::~DBConnection ( )
virtual clan::DBConnectionProvider::~DBConnectionProvider ( )
inlinevirtual
clan::DBReader::~DBReader ( )
virtual clan::DBReaderProvider::~DBReaderProvider ( )
inlinevirtual
clan::DBTransaction::~DBTransaction ( )
virtual clan::DBTransactionProvider::~DBTransactionProvider ( )
inlinevirtual
virtual DBTransactionProvider* clan::DBConnectionProvider::begin_transaction ( DBTransaction::Type  type)
pure virtual

Begin a transaction.

DBTransaction clan::DBConnection::begin_transaction ( DBTransaction::Type  type = DBTransaction::deferred)

Begin a transaction.

virtual void clan::DBReaderProvider::close ( )
pure virtual

Closes the database reader.

void clan::DBReader::close ( )

Closes the database reader.

virtual void clan::DBTransactionProvider::commit ( )
pure virtual

Commits the transaction.

void clan::DBTransaction::commit ( )

Commits the transaction.

virtual DBCommandProvider* clan::DBConnectionProvider::create_command ( const std::string &  text,
DBCommand::Type  type 
)
pure virtual

Create database command.

DBCommand clan::DBConnection::create_command ( const std::string &  text,
DBCommand::Type  type = DBCommand::sql_statement 
)

Create database command.

template<class Arg1 >
DBCommand clan::DBConnection::create_command ( const std::string &  format,
Arg1  arg1,
DBCommand::Type  type = DBCommand::sql_statement 
)
inline

Create database command with 1 input argument.

template<class Arg1 , class Arg2 >
DBCommand clan::DBConnection::create_command ( const std::string &  format,
Arg1  arg1,
Arg2  arg2,
DBCommand::Type  type = DBCommand::sql_statement 
)
inline

Create database command with 2 input arguments.

template<class Arg1 , class Arg2 , class Arg3 >
DBCommand clan::DBConnection::create_command ( const std::string &  format,
Arg1  arg1,
Arg2  arg2,
Arg3  arg3,
DBCommand::Type  type = DBCommand::sql_statement 
)
inline

Create database command with 3 input arguments.

template<class Arg1 , class Arg2 , class Arg3 , class Arg4 >
DBCommand clan::DBConnection::create_command ( const std::string &  format,
Arg1  arg1,
Arg2  arg2,
Arg3  arg3,
Arg4  arg4,
DBCommand::Type  type = DBCommand::sql_statement 
)
inline

Create database command with 4 input arguments.

template<class Arg1 , class Arg2 , class Arg3 , class Arg4 , class Arg5 >
DBCommand clan::DBConnection::create_command ( const std::string &  format,
Arg1  arg1,
Arg2  arg2,
Arg3  arg3,
Arg4  arg4,
Arg5  arg5,
DBCommand::Type  type = DBCommand::sql_statement 
)
inline

Create database command with 5 input arguments.

template<class Arg1 , class Arg2 , class Arg3 , class Arg4 , class Arg5 , class Arg6 >
DBCommand clan::DBConnection::create_command ( const std::string &  format,
Arg1  arg1,
Arg2  arg2,
Arg3  arg3,
Arg4  arg4,
Arg5  arg5,
Arg6  arg6,
DBCommand::Type  type = DBCommand::sql_statement 
)
inline

Create database command with 6 input arguments.

template<class Arg1 , class Arg2 , class Arg3 , class Arg4 , class Arg5 , class Arg6 , class Arg7 >
DBCommand clan::DBConnection::create_command ( const std::string &  format,
Arg1  arg1,
Arg2  arg2,
Arg3  arg3,
Arg4  arg4,
Arg5  arg5,
Arg6  arg6,
Arg7  arg7,
DBCommand::Type  type = DBCommand::sql_statement 
)
inline

Create database command with 7 input arguments.

virtual void clan::DBConnectionProvider::execute_non_query ( DBCommandProvider command)
pure virtual

Execute database command.

void clan::DBConnection::execute_non_query ( DBCommand command)

Execute database command.

virtual DBReaderProvider* clan::DBConnectionProvider::execute_reader ( DBCommandProvider command)
pure virtual

Begin execution of database command.

DBReader clan::DBConnection::execute_reader ( DBCommand command)

Begin execution of database command.

virtual int clan::DBConnectionProvider::execute_scalar_int ( DBCommandProvider command)
pure virtual

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

int clan::DBConnection::execute_scalar_int ( DBCommand command)

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

virtual std::string clan::DBConnectionProvider::execute_scalar_string ( DBCommandProvider command)
pure virtual

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

std::string clan::DBConnection::execute_scalar_string ( DBCommand command)

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

virtual DataBuffer clan::DBReaderProvider::get_column_binary ( int  index) const
pure virtual

Retrieves the value of the specified column as a DataBuffer.

DataBuffer clan::DBReader::get_column_binary ( int  index) const

Retrieves the value of the specified column as a DataBuffer.

DataBuffer clan::DBReader::get_column_binary ( const std::string &  column_name) const

Retrieves the value of the specified column as a DataBuffer.

virtual bool clan::DBReaderProvider::get_column_bool ( int  index) const
pure virtual

Retrieves the value of the specified column as a boolean.

bool clan::DBReader::get_column_bool ( int  index) const

Retrieves the value of the specified column as a boolean.

bool clan::DBReader::get_column_bool ( const std::string &  column_name) const

Retrieves the value of the specified column as a boolean.

virtual char clan::DBReaderProvider::get_column_char ( int  index) const
pure virtual

Retrieves the value of the specified column as a char.

char clan::DBReader::get_column_char ( int  index) const

Retrieves the value of the specified column as a boolean.

char clan::DBReader::get_column_char ( const std::string &  column_name) const

Retrieves the value of the specified column as a boolean.

virtual int clan::DBReaderProvider::get_column_count ( ) const
pure virtual

Returns the number of columns in the result set.

int clan::DBReader::get_column_count ( ) const

Returns the number of columns in the result set.

virtual DateTime clan::DBReaderProvider::get_column_datetime ( int  index) const
pure virtual

Retrieves the value of the specified column as a DateTime.

DateTime clan::DBReader::get_column_datetime ( int  index) const

Retrieves the value of the specified column as a DateTime.

DateTime clan::DBReader::get_column_datetime ( const std::string &  column_name) const

Retrieves the value of the specified column as a DateTime.

virtual double clan::DBReaderProvider::get_column_double ( int  index) const
pure virtual

Retrieves the value of the specified column as a double.

double clan::DBReader::get_column_double ( int  index) const

Retrieves the value of the specified column as a double.

double clan::DBReader::get_column_double ( const std::string &  column_name) const

Retrieves the value of the specified column as a double.

virtual int clan::DBReaderProvider::get_column_int ( int  index) const
pure virtual

Retrieves the value of the specified column as an integer.

int clan::DBReader::get_column_int ( int  index) const

Retrieves the value of the specified column as an integer.

int clan::DBReader::get_column_int ( const std::string &  column_name) const

Retrieves the value of the specified column as an integer.

virtual std::string clan::DBReaderProvider::get_column_name ( int  index) const
pure virtual

Returns the name of the specified column index.

std::string clan::DBReader::get_column_name ( int  index) const

Returns the name of the specified column index.

virtual std::string clan::DBReaderProvider::get_column_string ( int  index) const
pure virtual

Retrieves the value of the specified column as a string.

std::string clan::DBReader::get_column_string ( int  index) const

Retrieves the value of the specified column as a string.

std::string clan::DBReader::get_column_string ( const std::string &  column_name) const

Retrieves the value of the specified column as a string.

virtual unsigned char clan::DBReaderProvider::get_column_uchar ( int  index) const
pure virtual

Retrieves the value of the specified column as an unsigned char.

unsigned char clan::DBReader::get_column_uchar ( int  index) const

Retrieves the value of the specified column as a boolean.

unsigned char clan::DBReader::get_column_uchar ( const std::string &  column_name) const

Retrieves the value of the specified column as a boolean.

virtual unsigned int clan::DBReaderProvider::get_column_uint ( int  index) const
pure virtual

Retrieves the value of the specified column as an unsigned integer.

unsigned int clan::DBReader::get_column_uint ( int  index) const

Retrieves the value of the specified column as an integer.

unsigned int clan::DBReader::get_column_uint ( const std::string &  column_name) const

Retrieves the value of the specified column as an integer.

DBValue clan::DBReader::get_column_value ( int  index) const

Retrieves the value of the specified column.

DBValue clan::DBReader::get_column_value ( const std::string &  name) const

Retrieves the value of the specified column name.

virtual int clan::DBCommandProvider::get_input_parameter_column ( const std::string &  name) const
pure virtual

Returns the index for a given input parameter name.

int clan::DBCommand::get_input_parameter_column ( const std::string &  name) const

Returns the index for a given input parameter name.

virtual int clan::DBReaderProvider::get_name_index ( const std::string &  name) const
pure virtual

Returns the index of the specified column name.

int clan::DBReader::get_name_index ( const std::string &  name) const

Returns the index of the specified column name.

virtual int clan::DBCommandProvider::get_output_last_insert_rowid ( ) const
pure virtual

Returns the output parameter containing the row id of the last inserted row.

int clan::DBCommand::get_output_last_insert_rowid ( ) const

Returns the output parameter containing the row id of the last inserted row.

DBTransactionProvider* clan::DBTransaction::get_provider ( )

Returns the provider interface for this transaction.

DBCommandProvider* clan::DBCommand::get_provider ( )

Returns the provider interface for this command.

DBReaderProvider* clan::DBReader::get_provider ( )

Returns the provider interface for this reader.

DBCommand clan::DBConnection::DBArg::get_result ( ) const
inline
virtual bool clan::DBReaderProvider::retrieve_row ( )
pure virtual

Retrieves a row from the command execution result.

Returns
True if a row was retrieved, false if there are no more rows
bool clan::DBReader::retrieve_row ( )

Retrieves a row from the command execution result.

Returns
True if a row was retrieved, false if there are no more rows
virtual void clan::DBTransactionProvider::rollback ( )
pure virtual

Rolls the transaction back.

void clan::DBTransaction::rollback ( )

Rolls the transaction back.

DBArg& clan::DBConnection::DBArg::set_arg ( const std::string &  arg)
inline
DBArg& clan::DBConnection::DBArg::set_arg ( const char *  arg)
inline
DBArg& clan::DBConnection::DBArg::set_arg ( bool  arg)
inline
DBArg& clan::DBConnection::DBArg::set_arg ( int  arg)
inline
DBArg& clan::DBConnection::DBArg::set_arg ( double  arg)
inline
DBArg& clan::DBConnection::DBArg::set_arg ( const DateTime arg)
inline
DBArg& clan::DBConnection::DBArg::set_arg ( const DataBuffer arg)
inline
template<class ValueType >
void clan::DBCommand::set_input_parameter ( int  index,
ValueType  value 
)

Sets the specified input parameter index from a value.

template<class ValueType >
void clan::DBCommand::set_input_parameter ( const std::string &  name,
ValueType  value 
)

Sets the specified input parameter name from a value.

virtual void clan::DBCommandProvider::set_input_parameter_binary ( int  index,
const DataBuffer value 
)
pure virtual

Sets the specified input parameter index from a DataBuffer value.

void clan::DBCommand::set_input_parameter_binary ( int  index,
const DataBuffer value 
)

Sets the specified input parameter index from a DataBuffer value.

virtual void clan::DBCommandProvider::set_input_parameter_bool ( int  index,
bool  value 
)
pure virtual

Sets the specified input parameter index from a boolean value.

void clan::DBCommand::set_input_parameter_bool ( int  index,
bool  value 
)

Sets the specified input parameter index from a boolean value.

virtual void clan::DBCommandProvider::set_input_parameter_datetime ( int  index,
const DateTime value 
)
pure virtual

Sets the specified input parameter index from a DateTime value.

void clan::DBCommand::set_input_parameter_datetime ( int  index,
const DateTime value 
)

Sets the specified input parameter index from a DateTime value.

virtual void clan::DBCommandProvider::set_input_parameter_double ( int  index,
double  value 
)
pure virtual

Sets the specified input parameter index from a double value.

void clan::DBCommand::set_input_parameter_double ( int  index,
double  value 
)

Sets the specified input parameter index from a double value.

virtual void clan::DBCommandProvider::set_input_parameter_int ( int  index,
int  value 
)
pure virtual

Sets the specified input parameter index from an integer value.

void clan::DBCommand::set_input_parameter_int ( int  index,
int  value 
)

Sets the specified input parameter index from an integer value.

virtual void clan::DBCommandProvider::set_input_parameter_string ( int  index,
const std::string &  value 
)
pure virtual

Sets the specified input parameter index from a string value.

void clan::DBCommand::set_input_parameter_string ( int  index,
const std::string &  value 
)

Sets the specified input parameter index from a string value.