MCPcopy Create free account
hub / github.com/audacity/audacity / GetValue

Method GetValue

libraries/lib-project-file-io/ProjectFileIO.cpp:691–703  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

689}
690
691bool ProjectFileIO::GetValue(const char *sql, wxString &result, bool silent)
692{
693 // Retrieve the first column in the first row, if any
694 result.clear();
695 auto cb = [&result](int cols, char **vals, char **){
696 if (cols > 0)
697 result = vals[0];
698 // Stop after one row
699 return 1;
700 };
701
702 return Query(sql, cb, silent);
703}
704
705bool ProjectFileIO::GetValue(const char *sql, int64_t &value, bool silent)
706{

Callers

nothing calls this directly

Calls 4

FromCharsFunction · 0.85
clearMethod · 0.45
dataMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected