1 #ifndef NETCACHE__NC_DB_FILES__HPP
2 #define NETCACHE__NC_DB_FILES__HPP
91 fJournalDelete | fVacuumOff | fExternalMT
92 | fSyncFull | fWritesSync)
Connection to index database in NetCache storage.
CNCDBIndexFile & operator=(const CNCDBIndexFile &)
void DeleteDBFile(Uint4 file_id)
Delete database part.
CNCDBIndexFile(const CNCDBIndexFile &)
void SetMaxSyncLogRecNo(Uint8 rec_no)
string GetPurgeData(void)
Uint8 GetMaxSyncLogRecNo(void)
void GetAllDBFiles(TNCDBFilesMap *files_map)
Read information about all database parts in order of their creation.
void CreateDatabase(void)
Create entire database structure for Index file.
CNCDBIndexFile(const string &file_name)
Create connection to index database file.
void DeleteAllDBFiles(void)
Clean index database removing information about all database parts.
void NewDBFile(Uint4 file_id, const string &file_name)
Create new database part and save information about it.
virtual ~CNCDBIndexFile(void)
void UpdatePurgeData(const string &data)
Connection to SQLite database.
void SetPageSize(unsigned int size)
Set page size for the database (in bytes).
uint32_t Uint4
4-byte (32-bit) unsigned integer
uint64_t Uint8
8-byte (64-bit) unsigned integer
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
Multi-threading – classes, functions, and features.