3 #ifndef __tr_hdrs_cache_qsql_hpp
4 #define __tr_hdrs_cache_qsql_hpp
7 #include <hds_db/base/defines.hpp>
8 #include <hds_db/base/tr_header.hpp>
31 const size_t read_cache_size,
32 const size_t write_cache_size);
36 const size_t read_cache_size,
37 const size_t write_cache_size);
78 QSqlQuery m_get_hdr_query;
79 QSqlQuery m_get_all_hdrs_query;
80 QSqlQuery m_update_hdr_query;
81 QSqlQuery m_append_hdr_query;
Definition: tr_hdrs_cache_qsql.hpp:20
ErrCode db_cache_all_headers(LRUCache< DbIndex, TrHeader > &hdrs_cache)
uint64_t DbIndex
Definition: defines.hpp:26
DbIndex append(const TrHeader &hdr)
ErrCode
Definition: defines.hpp:46
Definition: seismic_qsql.hpp:24
ErrCode lastError() const
Definition: tr_hdrs_cache_qsql.hpp:65
void update(const DbIndex &id, const TrHeader &hdr)
void init(SeismicQSql *pseis, const size_t read_cache_size, const size_t write_cache_size)
Template cache with an LRU removal policy.
Definition: lru_cache.h:86
SeismicQSql * mp_seis
Definition: tr_hdrs_cache_qsql.hpp:73
LRUCache< DbIndex, hds::db::TrHeader > m_cache
Definition: tr_hdrs_cache_qsql.hpp:70