3 #ifndef __tr_bodies_cache_qsql_hpp
4 #define __tr_bodies_cache_qsql_hpp
7 #include <hds_db/base/defines.hpp>
30 const size_t read_cache_size,
31 const size_t write_cache_size);
35 const size_t read_cache_size,
36 const size_t write_cache_size);
78 QSqlQuery m_get_body_query;
79 QSqlQuery m_update_body_query;
80 QSqlQuery m_append_body_query;
ErrCode lastError() const
Definition: tr_bodies_cache_qsql.hpp:65
uint64_t DbIndex
Definition: defines.hpp:26
void init(SeismicQSql *pseis, const size_t read_cache_size, const size_t write_cache_size)
void update(const DbIndex &id, const TrBody &body)
ErrCode
Definition: defines.hpp:46
std::vector< AmplT > TrBody
Definition: defines.hpp:23
Definition: seismic_qsql.hpp:24
SeismicQSql * mp_seis
Definition: tr_bodies_cache_qsql.hpp:73
Definition: tr_bodies_cache_qsql.hpp:19
LRUCache< DbIndex, hds::db::TrBody > m_cache
Definition: tr_bodies_cache_qsql.hpp:70
DbIndex append(const TrBody &body)