A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/nc__db__files_8cpp_source.html below:

NCBI C++ ToolKit: src/app/netcache/nc_db_files.cpp Source File

Go to the documentation of this file.

Go to the SVN repository for this file.

42 #define DBINDEX_TABLENAME "NCX" 43 #define DBINDEX_FILEID "id" 44 #define DBINDEX_FILENAME "nm" 45 #define DBINDEX_CREATEDTIME "tm" 47 #define SETTINGS_TABLENAME "NCS" 48 #define SETTINGS_NAME "nm" 49 #define SETTINGS_VALUE "v" 90  stmt

.Bind(1, file_id);

104  stmt

.Bind(1, file_id);

119  while

(

stmt

.Step()) {

122

(*files_map)[file_id] =

info

;

123  info

->file_id = file_id;

124  info

->file_name =

stmt

.GetString(1);

125  info

->create_time =

stmt

.GetInt (2);

156  " values('log_rec_no',?1)"

;

159  stmt

.Bind(1, rec_no);

173  return stmt

.GetString(0);

182  " values('purge',?1)"

;

void DeleteDBFile(Uint4 file_id)

Delete database part.

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.

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)

SQL statement executing on SQLite database.

static int CurSecs(void)

Current time in seconds since epoch (time_t).

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.

#define DBINDEX_TABLENAME

#define SETTINGS_TABLENAME

#define DBINDEX_CREATEDTIME

Defines classes: CDirEntry, CFile, CDir, CSymLink, CMemoryFile, CFileUtil, CFileLock,...

Multi-threading – mutexes; rw-locks; semaphore.

Information about database part in NetCache storage.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4