140 delete[] (
unsigned char*)
data;
261 void Open(EAccessMode
mode = eWrite);
264 const string&
GetDbFile(
void)
const {
return m_DbFile; }
269 void SetSQLiteFlags(
int flags);
274 void SetAccessMode(EAccessMode
mode);
287 void DeleteFile(
const string&
file_name);
288 void DeleteFile(
Int8 file_id);
342 fAnnot_All = fAnnot_Internal | fAnnot_External
352 Int8 GetAnnotCountForBlob(
Int8 blob_id);
377 void BeginUpdate(
void);
380 void EndUpdate(
void);
386 void BeginRead(
void);
403 void x_ExecuteSqls(
const char* sqls[],
size_t len);
421 eSt_GetFileNames = 0,
470 void x_ResetDbConnection(
void);
EAccessMode GetAccessMode(void) const
Get current access mode.
CTls< SLDS2_DbConnection > TDbConnectionsTls
vector< CSeq_id_Handle > TSeqIds
List of seq-ids.
vector< SLDS2_Blob > TBlobSet
A set of ids (file_id, blob_id etc.).
CLDS2_Database & operator=(const CLDS2_Database &)
set< Int8 > TLdsIdSet
List of ids (blob_id, bioseq_id, lds_id etc.)
EAnnotChoice
Annotation type flags.
CLDS2_Database(const CLDS2_Database &)
@ eSt_GetLdsSeqIdForIntId
@ eSt_GetAnnotBlobsAllByTxtId
@ eSt_GetLdsSeqIdForTxtId
@ eSt_GetAnnotBlobsByIntId
@ eSt_GetSeq_idForLdsSeqId
@ eSt_GetAnnotInfosForBlob
@ eSt_GetBioseqIdForIntId
@ eSt_GetBioseqIdForTxtId
@ eSt_GetAnnotBlobsByTxtId
@ eSt_GetAnnotCountForBlob
@ eSt_GetAnnotBlobsAllByIntId
int GetSQLiteFlags(void) const
Get SQLite flags, see CSQLITE_Connection::TOperationFlags.
vector< AutoPtr< CSQLITE_Statement > > TStatements
set< CSeq_id_Handle > TSeqIdSet
EAccessMode
Database access mode flags.
@ eWrite
Read/write access.
const string & GetDbFile(void) const
Get database file name.
vector< AutoPtr< SLDS2_Annot > > TLDS2Annots
CRef< TDbConnectionsTls > m_DbConn
void PrepareUpdate(void)
Prepare to update the DB.
void CancelUpdate(void)
Cancel the update, rollback the changes.
Connection to SQLite database.
SQL statement executing on SQLite database.
void Reset(void)
Reset the statement to release all locks and to be ready to execute again.
void(*)(CSeq_entry_Handle seh, IWorkbench *wb, const CSerialObject &obj) handler
std::ofstream out("events_result.xml")
main entry point for tests
static const char * str(char *buf, int n)
uint32_t Uint4
4-byte (32-bit) unsigned integer
int64_t Int8
8-byte (64-bit) signed integer
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define END_SCOPE(ns)
End the previously defined scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
#define BEGIN_SCOPE(ns)
Define a new scope.
IO_PREFIX::ostream CNcbiOstream
Portable alias for ostream.
<!DOCTYPE HTML >< html > n< header > n< title > PubSeq Gateway Help Page</title > n< style > n table
const struct ncbi::grid::netcache::search::fields::SIZE size
Multi-threading – mutexes; rw-locks; semaphore.
Portable reference counted smart and weak pointers using CWeakRef, CRef, CObject and CObjectEx.
static SLJIT_INLINE sljit_ins st(sljit_gpr r, sljit_s32 d, sljit_gpr x, sljit_gpr b)
void Dump(CSplitCacheApp *app, const C &obj, ESerialDataFormat format, const string &key, const string &suffix=kEmptyStr)
unique_ptr< CSQLITE_Connection > Connection
Info about seq-id used in an annotation.
map< CSeq_id_Handle, SLDS2_AnnotIdInfo > TIdMap
EBlobType
Top-level object types.
@ eBioseq_set_element
Used for indexing individual seq-entries from a top-level bioseq-set.
SLDS2_Chunk(const SLDS2_Chunk &)
Int8 stream_pos
Chunk position in the processed (e.g. unzipped) stream.
SLDS2_Chunk & operator=(const SLDS2_Chunk &)
size_t data_size
Extra data size.
void * data
Extra data required to load the chunk.
SLDS2_Chunk(Int8 raw, Int8 str)
Int8 raw_pos
Chunk position in the raw file.
bool operator!=(const SLDS2_File &f) const
SLDS2_File(const string &file_name)
CFormatGuess::EFormat TFormat
bool operator==(const SLDS2_File &f) const