CernVM-FS  2.12.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SqlListReferences Class Reference

#include <reflog_sql.h>

Inheritance diagram for SqlListReferences:
Collaboration diagram for SqlListReferences:

Public Member Functions

 SqlListReferences (const ReflogDatabase *database)
 
bool BindType (const ReferenceType type)
 
bool BindOlderThan (const uint64_t timestamp)
 
shash::Any RetrieveHash () const
 
- Public Member Functions inherited from sqlite::Sql
 Sql (sqlite3 *sqlite_db, const std::string &statement)
 
virtual ~Sql ()
 
bool Execute ()
 
bool FetchRow ()
 
std::string DebugResultTable ()
 
bool Reset ()
 
int GetLastError () const
 
std::string GetLastErrorMsg () const
 
bool BindBlob (const int index, const void *value, const unsigned size)
 
bool BindBlobTransient (const int index, const void *value, const unsigned size)
 
bool BindDouble (const int index, const double value)
 
bool BindInt (const int index, const int value)
 
bool BindInt64 (const int index, const sqlite3_int64 value)
 
bool BindNull (const int index)
 
bool BindTextTransient (const int index, const std::string &value)
 
bool BindTextTransient (const int index, const char *value, const int size)
 
bool BindText (const int index, const std::string &value)
 
bool BindText (const int index, const char *value, const int size, void(*dtor)(void *)=SQLITE_STATIC)
 
template<typename T >
bool Bind (const int index, const T &value)
 
int RetrieveType (const int idx_column) const
 
int RetrieveBytes (const int idx_column) const
 
const void * RetrieveBlob (const int idx_column) const
 
double RetrieveDouble (const int idx_column) const
 
int RetrieveNullableInt (const int idx_column, const int val_null) const
 
int RetrieveInt (const int idx_column) const
 
sqlite3_int64 RetrieveInt64 (const int idx_column) const
 
const unsigned char * RetrieveText (const int idx_column) const
 
std::string RetrieveString (const int idx_column) const
 
template<typename T >
Retrieve (const int index)
 
template<>
bool Bind (const int index, const int &value)
 
template<>
bool Bind (const int index, const unsigned int &value)
 
template<>
bool Bind (const int index, const uint64_t &value)
 
template<>
bool Bind (const int index, const sqlite3_int64 &value)
 
template<>
bool Bind (const int index, const std::string &value)
 
template<>
bool Bind (const int index, const float &value)
 
template<>
bool Bind (const int index, const double &value)
 
template<>
int Retrieve (const int index)
 
template<>
bool Retrieve (const int index)
 
template<>
sqlite3_int64 Retrieve (const int index)
 
template<>
uint64_t Retrieve (const int index)
 
template<>
std::string Retrieve (const int index)
 
template<>
float Retrieve (const int index)
 
template<>
double Retrieve (const int index)
 

Additional Inherited Members

- Public Types inherited from SqlReflog
enum  ReferenceType { kRefCatalog, kRefCertificate, kRefHistory, kRefMetainfo }
 
- Static Public Member Functions inherited from SqlReflog
static shash::Suffix ToSuffix (const ReferenceType type)
 
- Protected Member Functions inherited from sqlite::Sql
 Sql ()
 
bool IsInitialized () const
 
bool Init (const sqlite3 *database, const std::string &statement)
 
void DeferredInit (const sqlite3 *database, const char *statement)
 
bool Successful () const
 

Detailed Description

Definition at line 71 of file reflog_sql.h.

Constructor & Destructor Documentation

SqlListReferences::SqlListReferences ( const ReflogDatabase database)
explicit

Definition at line 123 of file reflog_sql.cc.

Here is the call graph for this function:

Member Function Documentation

bool SqlListReferences::BindOlderThan ( const uint64_t  timestamp)

Definition at line 134 of file reflog_sql.cc.

Here is the call graph for this function:

bool SqlListReferences::BindType ( const ReferenceType  type)

Definition at line 130 of file reflog_sql.cc.

Here is the call graph for this function:

shash::Any SqlListReferences::RetrieveHash ( ) const

Definition at line 142 of file reflog_sql.cc.

Here is the call graph for this function:


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