tntdb::replicate::Connection Class Reference

#include <tntdb/replicate/connection.h>

Inheritance diagram for tntdb::replicate::Connection:
tntdb::IStmtCacheConnection tntdb::IConnection cxxtools::SimpleRefCounted

Public Member Functions

 Connection (const char *conninfo)
 ~Connection ()
void beginTransaction ()
void commitTransaction ()
void rollbackTransaction ()
size_type execute (const std::string &query)
tntdb::Result select (const std::string &query)
tntdb::Row selectRow (const std::string &query)
tntdb::Value selectValue (const std::string &query)
tntdb::Statement prepare (const std::string &query)
tntdb::Statement prepareWithLimit (const std::string &query, const std::string &limit, const std::string &offset)
bool ping ()
long lastInsertId (const std::string &name)
void lockTable (const std::string &tablename, bool exclusive)
- Public Member Functions inherited from tntdb::IStmtCacheConnection
virtual Statement prepareCached (const std::string &query, const std::string &key)
virtual Statement prepareCachedWithLimit (const std::string &query, const std::string &limit, const std::string &offset, const std::string &key)
virtual void clearStatementCache ()
virtual bool clearStatementCache (const std::string &key)

Friends

class Statement

Additional Inherited Members

- Public Types inherited from tntdb::IConnection
typedef unsigned size_type

Constructor & Destructor Documentation

tntdb::replicate::Connection::Connection ( const char *  conninfo)
explicit
tntdb::replicate::Connection::~Connection ( )

Member Function Documentation

void tntdb::replicate::Connection::beginTransaction ( )
virtual

Implements tntdb::IConnection.

void tntdb::replicate::Connection::commitTransaction ( )
virtual

Implements tntdb::IConnection.

size_type tntdb::replicate::Connection::execute ( const std::string &  query)
virtual

Implements tntdb::IConnection.

long tntdb::replicate::Connection::lastInsertId ( const std::string &  name)
virtual

Implements tntdb::IConnection.

void tntdb::replicate::Connection::lockTable ( const std::string &  tablename,
bool  exclusive 
)
virtual

Implements tntdb::IConnection.

bool tntdb::replicate::Connection::ping ( )
virtual

Implements tntdb::IConnection.

tntdb::Statement tntdb::replicate::Connection::prepare ( const std::string &  query)
virtual

Implements tntdb::IConnection.

tntdb::Statement tntdb::replicate::Connection::prepareWithLimit ( const std::string &  query,
const std::string &  limit,
const std::string &  offset 
)
virtual

Implements tntdb::IConnection.

void tntdb::replicate::Connection::rollbackTransaction ( )
virtual

Implements tntdb::IConnection.

tntdb::Result tntdb::replicate::Connection::select ( const std::string &  query)
virtual

Implements tntdb::IConnection.

tntdb::Row tntdb::replicate::Connection::selectRow ( const std::string &  query)
virtual

Implements tntdb::IConnection.

tntdb::Value tntdb::replicate::Connection::selectValue ( const std::string &  query)
virtual

Implements tntdb::IConnection.

Friends And Related Function Documentation

friend class Statement
friend

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