#include <swissknife_filestats.h>
|
bool | CreateEmptyDatabase () |
|
int64_t | StoreCatalog (int64_t num_entries, int64_t file_size) |
|
int64_t | StoreFile (int64_t catalog_id, int64_t object_id) |
|
int64_t | StoreObject (const void *hash, int hash_size, int64_t size) |
|
int64_t | StoreChunkedFile (int64_t catalog_id) |
|
int64_t | StoreChunk (const void *hash, int hash_size, int64_t size, int64_t file_id) |
|
int64_t | StoreSymlink (int64_t length) |
|
void | InitStatements () |
|
void | DestroyStatements () |
|
bool | IsEqualSchema (const float value, const float compare) const |
|
bool | BeginTransaction () const |
|
bool | CommitTransaction () const |
|
T | GetProperty (const std::string &key) const |
|
T | GetPropertyDefault (const std::string &key, const T default_value) const |
|
bool | SetProperty (const std::string &key, const T value) |
|
bool | HasProperty (const std::string &key) const |
|
sqlite3 * | sqlite_db () const |
|
const std::string & | filename () const |
|
float | schema_version () const |
|
unsigned | schema_revision () const |
|
bool | read_write () const |
|
unsigned | GetModifiedRowCount () const |
|
double | GetFreePageRatio () const |
|
void | GetMemStatistics (MemStatistics *stats) const |
|
bool | Vacuum () const |
|
void | PrintSqlError (const std::string &error_msg) |
|
std::string | GetLastErrorMsg () const |
|
void | TakeFileOwnership () |
|
void | DropFileOwnership () |
|
bool | OwnsFile () const |
|
void | EnforceSchema (float version, unsigned revision) |
|
Definition at line 24 of file swissknife_filestats.h.
swissknife::FileStatsDatabase::FileStatsDatabase |
( |
const std::string & |
filename, |
|
|
const OpenMode |
open_mode |
|
) |
| |
|
inlineprotected |
bool swissknife::FileStatsDatabase::CreateEmptyDatabase |
( |
| ) |
|
void swissknife::FileStatsDatabase::DestroyStatements |
( |
| ) |
|
void swissknife::FileStatsDatabase::InitStatements |
( |
| ) |
|
int64_t swissknife::FileStatsDatabase::StoreCatalog |
( |
int64_t |
num_entries, |
|
|
int64_t |
file_size |
|
) |
| |
int64_t swissknife::FileStatsDatabase::StoreChunk |
( |
const void * |
hash, |
|
|
int |
hash_size, |
|
|
int64_t |
size, |
|
|
int64_t |
file_id |
|
) |
| |
int64_t swissknife::FileStatsDatabase::StoreChunkedFile |
( |
int64_t |
catalog_id | ) |
|
int64_t swissknife::FileStatsDatabase::StoreFile |
( |
int64_t |
catalog_id, |
|
|
int64_t |
object_id |
|
) |
| |
int64_t swissknife::FileStatsDatabase::StoreObject |
( |
const void * |
hash, |
|
|
int |
hash_size, |
|
|
int64_t |
size |
|
) |
| |
int64_t swissknife::FileStatsDatabase::StoreSymlink |
( |
int64_t |
length | ) |
|
float swissknife::FileStatsDatabase::kLatestSchema = 1 |
|
static |
unsigned swissknife::FileStatsDatabase::kLatestSchemaRevision = 1 |
|
static |
sqlite::Sql* swissknife::FileStatsDatabase::query_insert_catalog |
|
protected |
sqlite::Sql* swissknife::FileStatsDatabase::query_insert_file |
|
protected |
sqlite::Sql* swissknife::FileStatsDatabase::query_insert_file_object |
|
protected |
sqlite::Sql* swissknife::FileStatsDatabase::query_insert_object |
|
protected |
sqlite::Sql* swissknife::FileStatsDatabase::query_insert_symlink |
|
protected |
sqlite::Sql* swissknife::FileStatsDatabase::query_lookup_object |
|
protected |
The documentation for this class was generated from the following files: