99 [
this, domain, name, &
value, &rslt]
102 auto qry =
m_Conn->NewQuery();
103 qry->SetSQL(
"SELECT value FROM maintenance.settings WHERE domain = ? AND name = ?", 2);
104 qry->BindStr(0, domain);
105 qry->BindStr(1, name);
106 CassConsistency cons = is_repeated &&
m_Conn->GetFallBackRdConsistency() ?
107 CASS_CONSISTENCY_LOCAL_ONE : CASS_CONSISTENCY_LOCAL_QUORUM;
108 qry->Query(cons,
false,
false);
110 qry->FieldGetStrValue(0, value);
#define BEGIN_IDBLOB_SCOPE
constexpr const char * kSettingBigBlobSize
constexpr int64_t kChunkSizeDefault
constexpr int64_t kChunkSizeMin
BEGIN_IDBLOB_SCOPE USING_NCBI_SCOPE
constexpr int64_t kActiveStatementsMax
constexpr const char * kSettingLargeChunkSize
void GetBigBlobSizeLimit(unsigned int timeout_ms, const string &keyspace, int64_t *value)
bool GetSetting(unsigned int op_timeout_ms, const string &domain, const string &name, string &value)
shared_ptr< CCassConnection > m_Conn
void GetBlobChunkSize(unsigned int timeout_ms, const string &keyspace, int64_t *chunk_size)
static void Perform(unsigned int optimeoutms, const std::function< bool()> &PreLoopCB, const std::function< void(const CCassandraException &)> &DbExceptCB, const std::function< bool(bool)> &OpCB)
static const int chunk_size
#define END_SCOPE(ns)
End the previously defined scope.
#define BEGIN_SCOPE(ns)
Define a new scope.
static TNumeric StringToNumeric(const CTempString str, TStringToNumFlags flags=0, int base=10)
Convert string to a numeric value.
Process information in the NCBI Registry, including working with configuration files.