Go to the documentation of this file.Go to the SVN repository for this file.
1 #ifndef OBJTOOLS__PUBSEQ_GATEWAY__IPG__IPG_HUGE_REPORT_HELPER_HPP_
2 #define OBJTOOLS__PUBSEQ_GATEWAY__IPG__IPG_HUGE_REPORT_HELPER_HPP_
48 query->SetSQL(
"SELECT ipg, subgroups_status, subgroups_hash, subgroups FROM " + keyspace +
".ipg_report_config WHERE ipg = ?", 1);
49 query->BindInt64(0, ipg);
50 query->Query(consistency, async);
56 if (!
query->IsEOF()) {
58 auto status_value =
query->FieldGetInt32Value(1, 0);
61 query->FieldGetContainerValue(3, back_inserter(
config.subgroups));
67 sm_HugeIpgDisabled =
value;
72 return !sm_HugeIpgDisabled;
static void FetchHugeIpgConfigResult(SIpgSubgroupsConfig &config, CCassQuery *query, bool async)
CPubseqGatewayHugeIpgReportHelper()=default
static bool HugeIpgEnabled()
static void SetHugeIpgDisabled(bool value)
static atomic_bool sm_HugeIpgDisabled
static void PrepareHugeIpgConfigQuery(TIpg ipg, string const &keyspace, CCassQuery *query, CassConsistency consistency, bool async)
Include a standard set of the NCBI C++ Toolkit most basic headers.
#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.
const GenericPointer< typename T::ValueType > T2 value