NCBI C++ ToolKit
Macros | Typedefs | Functions | Variables
lds2_db.cpp File Reference
#include <ncbi_pch.hpp>
#include <corelib/ncbifile.hpp>
#include <corelib/ncbistre.hpp>
#include <db/sqlite/sqlitewrapp.hpp>
#include <objects/seqloc/Seq_id.hpp>
#include <objects/seqloc/PDB_seq_id.hpp>
#include <objtools/error_codes.hpp>
#include <objtools/lds2/lds2_expt.hpp>
#include <objtools/lds2/lds2_db.hpp>
+ Include dependency graph for lds2_db.cpp:

Go to the source code of this file.

Go to the SVN repository for this file.

Macros

#define NCBI_USE_ERRCODE_X   Objtools_LDS2
 

Typedefs

typedef vector< Int8TLdsIds
 

Functions

 NCBI_PARAM_DECL (int, LDS2, SQLiteCacheSize)
 
 NCBI_PARAM_DEF_EX (int, LDS2, SQLiteCacheSize, 2000, eParam_NoThread, LDS2_SQLITE_CACHE_SIZE)
 
typedef NCBI_PARAM_TYPE (LDS2, SQLiteCacheSize) TSQLiteCacheSize
 

Variables

const CSQLITE_Connection::TOperationFlags kDefaultLDS2DBFlags
 
const char * kLDS2_CreateDB []
 
const char * kLDS2_CreateDBIdx []
 
const char * kLDS2_DropDBIdx []
 
static const char * s_LDS2_SQL []
 
const char * kLDS2_ListTables
 
const char * kLDS2_DumpTable = "SELECT * FROM "
 

Macro Definition Documentation

◆ NCBI_USE_ERRCODE_X

#define NCBI_USE_ERRCODE_X   Objtools_LDS2

Definition at line 43 of file lds2_db.cpp.

Typedef Documentation

◆ TLdsIds

typedef vector<Int8> TLdsIds

Definition at line 586 of file lds2_db.cpp.

Function Documentation

◆ NCBI_PARAM_DECL()

NCBI_PARAM_DECL ( int  ,
LDS2  ,
SQLiteCacheSize   
)

◆ NCBI_PARAM_DEF_EX()

NCBI_PARAM_DEF_EX ( int  ,
LDS2  ,
SQLiteCacheSize  ,
2000  ,
eParam_NoThread  ,
LDS2_SQLITE_CACHE_SIZE   
)

◆ NCBI_PARAM_TYPE()

typedef NCBI_PARAM_TYPE ( LDS2  ,
SQLiteCacheSize   
)

Variable Documentation

◆ kDefaultLDS2DBFlags

Initial value:
=
@ fExternalMT
Object and all statements and blobs created on top of it will not be used from different threads simu...
@ fJournalOff
Journaling is completely off (not recommended - transactions cannot be rollbacked unless they consist...
@ eDefaultFlags
Default value of all flags.
@ fSyncOff
Synchronization is off, database can be corrupted on OS crash or power outage.
@ fVacuumManual
Vacuuming is only by request.
@ fTempToMemory
Mode of storing temporary data.

Definition at line 51 of file lds2_db.cpp.

◆ kLDS2_CreateDB

const char* kLDS2_CreateDB[]

Definition at line 76 of file lds2_db.cpp.

Referenced by CLDS2_Database::Create().

◆ kLDS2_CreateDBIdx

const char* kLDS2_CreateDBIdx[]

Definition at line 163 of file lds2_db.cpp.

Referenced by CLDS2_Database::EndUpdate().

◆ kLDS2_DropDBIdx

const char* kLDS2_DropDBIdx[]
Initial value:
= {
"drop index if exists idx_filename;",
"drop index if exists idx_stream_pos;",
"drop index if exists idx_blob_id;",
"drop index if exists idx_bioseq_id;",
"drop index if exists idx_bioseq_lds_id;",
"drop index if exists idx_orig_id;",
"drop index if exists idx_blob_file_id;",
"drop index if exists idx_annot_blob_id;",
"drop index if exists idx_annot_name;",
"drop index if exists idx_annot_id;",
"drop index if exists idx_annot_lds_id;",
"drop index if exists idx_external;",
"drop index if exists idx_annot_rg_from;",
"drop index if exists idx_annot_rg_to;"
}

Definition at line 209 of file lds2_db.cpp.

Referenced by CLDS2_Database::BeginUpdate().

◆ kLDS2_DumpTable

const char* kLDS2_DumpTable = "SELECT * FROM "

Definition at line 1057 of file lds2_db.cpp.

Referenced by CLDS2_Database::Dump().

◆ kLDS2_ListTables

const char* kLDS2_ListTables
Initial value:
=
"SELECT name FROM sqlite_master WHERE type='table' AND name NOT LIKE 'sqlite_%'"

Definition at line 1055 of file lds2_db.cpp.

Referenced by CLDS2_Database::Dump().

◆ s_LDS2_SQL

const char* s_LDS2_SQL[]
static

Definition at line 227 of file lds2_db.cpp.

Referenced by CLDS2_Database::x_GetStatement().

Modified on Tue May 28 05:53:50 2024 by modify_doxy.py rev. 669887