MCPcopy Create free account
hub / github.com/altairwei/WizNotePlus / sqlToStringArray

Method sqlToStringArray

src/database/WizIndexBase.cpp:469–487  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

467
468
469bool WizIndexBase::sqlToStringArray(const CString& strSQL, int nFieldIndex, CWizStdStringArray& arrayString)
470{
471 try
472 {
473 CppSQLite3Query query = m_db.execQuery(strSQL);
474 while (!query.eof())
475 {
476 CString strGUID = query.getStringField(nFieldIndex);
477
478 arrayString.push_back(strGUID);
479 query.nextRow();
480 }
481 return true;
482 }
483 catch (const CppSQLite3Exception& e)
484 {
485 return logSQLException(e, strSQL);
486 }
487}
488
489
490bool WizIndexBase::initDocumentExFields(CWizDocumentDataArray& arrayDocument, const CWizStdStringArray& arrayGUID, const std::map<QString, int>& mapDocumentIndex)

Callers

nothing calls this directly

Calls 4

execQueryMethod · 0.80
eofMethod · 0.80
getStringFieldMethod · 0.80
nextRowMethod · 0.80

Tested by

no test coverage detected