tntdb::sqlite::Connection Class Reference

Implements a connection to a Sqlite3 database file. More...

#include <tntdb/sqlite/impl/connection.h>

Inheritance diagram for tntdb::sqlite::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)
sqlite3 * getSqlite3 () const
- 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)

Additional Inherited Members

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

Detailed Description

Implements a connection to a Sqlite3 database file.

Constructor & Destructor Documentation

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

Member Function Documentation

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

Implements tntdb::IConnection.

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

Implements tntdb::IConnection.

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

Implements tntdb::IConnection.

sqlite3* tntdb::sqlite::Connection::getSqlite3 ( ) const
inline
long tntdb::sqlite::Connection::lastInsertId ( const std::string &  name)
virtual

Implements tntdb::IConnection.

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

Implements tntdb::IConnection.

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

Implements tntdb::IConnection.

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

Implements tntdb::IConnection.

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

Implements tntdb::IConnection.

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

Implements tntdb::IConnection.

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

Implements tntdb::IConnection.

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

Implements tntdb::IConnection.

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

Implements tntdb::IConnection.


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