CernVM-FS  2.9.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
sqlite::Database< DerivedT >::DatabaseRaiiWrapper Struct Reference
Collaboration diagram for sqlite::Database< DerivedT >::DatabaseRaiiWrapper:

Public Member Functions

 DatabaseRaiiWrapper (const std::string &filename, Database< DerivedT > *delegate)
 
 ~DatabaseRaiiWrapper ()
 
sqlite3 * database () const
 
const std::string & filename () const
 
bool Close ()
 
void TakeFileOwnership ()
 
void DropFileOwnership ()
 
bool OwnsFile () const
 

Public Attributes

sqlite3 * sqlite_db
 
void * lookaside_buffer
 
UnlinkGuard db_file_guard
 
Database< DerivedT > * delegate_
 

Detailed Description

template<class DerivedT>
struct sqlite::Database< DerivedT >::DatabaseRaiiWrapper

This wraps the opaque SQLite database object along with a file unlink guard to control the life time of the database connection and the database file in an RAII fashion.

Definition at line 261 of file sql.h.

Constructor & Destructor Documentation

template<class DerivedT>
sqlite::Database< DerivedT >::DatabaseRaiiWrapper::DatabaseRaiiWrapper ( const std::string &  filename,
Database< DerivedT > *  delegate 
)
inline

Definition at line 262 of file sql.h.

template<class DerivedT >
sqlite::Database< DerivedT >::DatabaseRaiiWrapper::~DatabaseRaiiWrapper ( )

Definition at line 149 of file sql_impl.h.

Here is the call graph for this function:

Member Function Documentation

template<class DerivedT >
bool sqlite::Database< DerivedT >::DatabaseRaiiWrapper::Close ( )

Definition at line 158 of file sql_impl.h.

Referenced by sqlite::Database< DerivedT >::DatabaseRaiiWrapper::~DatabaseRaiiWrapper().

Here is the call graph for this function:

Here is the caller graph for this function:

template<class DerivedT>
sqlite3* sqlite::Database< DerivedT >::DatabaseRaiiWrapper::database ( ) const
inline

Definition at line 270 of file sql.h.

Referenced by sqlite::Database< HistoryDatabase >::sqlite_db().

Here is the caller graph for this function:

template<class DerivedT>
void sqlite::Database< DerivedT >::DatabaseRaiiWrapper::DropFileOwnership ( )
inline

Definition at line 276 of file sql.h.

Referenced by sqlite::Database< DerivedT >::DropFileOwnership().

Here is the call graph for this function:

Here is the caller graph for this function:

template<class DerivedT>
const std::string& sqlite::Database< DerivedT >::DatabaseRaiiWrapper::filename ( ) const
inline

Definition at line 271 of file sql.h.

Referenced by sqlite::Database< DerivedT >::DropFileOwnership(), sqlite::Database< HistoryDatabase >::filename(), and sqlite::Database< DerivedT >::TakeFileOwnership().

Here is the call graph for this function:

Here is the caller graph for this function:

template<class DerivedT>
bool sqlite::Database< DerivedT >::DatabaseRaiiWrapper::OwnsFile ( ) const
inline

Definition at line 277 of file sql.h.

Referenced by sqlite::Database< HistoryDatabase >::OwnsFile().

Here is the call graph for this function:

Here is the caller graph for this function:

template<class DerivedT>
void sqlite::Database< DerivedT >::DatabaseRaiiWrapper::TakeFileOwnership ( )
inline

Definition at line 275 of file sql.h.

Referenced by sqlite::Database< DerivedT >::TakeFileOwnership().

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

template<class DerivedT>
Database<DerivedT>* sqlite::Database< DerivedT >::DatabaseRaiiWrapper::delegate_

Definition at line 282 of file sql.h.

template<class DerivedT>
void* sqlite::Database< DerivedT >::DatabaseRaiiWrapper::lookaside_buffer

Definition at line 280 of file sql.h.

Referenced by sqlite::Database< DerivedT >::Configure().

template<class DerivedT>
sqlite3* sqlite::Database< DerivedT >::DatabaseRaiiWrapper::sqlite_db

The documentation for this struct was generated from the following files: