MCPcopy Create free account
hub / github.com/NatLabRockies/OpenStudio / execAndReturnFirstString

Method execAndReturnFirstString

src/utilities/sql/PreparedStatement.cpp:77–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75}
76
77boost::optional<std::string> PreparedStatement::execAndReturnFirstString() const {
78 boost::optional<std::string> value;
79 if (m_db) {
80 int code = sqlite3_step(m_statement);
81 if (code == SQLITE_ROW) {
82 value = columnText(sqlite3_column_text(m_statement, 0));
83 }
84 }
85 return value;
86}
87
88boost::optional<std::vector<double>> PreparedStatement::execAndReturnVectorOfDouble() const {
89

Callers 7

isConditionedMethod · 0.80
execAndReturnFirstStringFunction · 0.80
execAndReturnFirstStringFunction · 0.80
TEST_FFunction · 0.80

Calls 1

columnTextFunction · 0.70

Tested by 1

TEST_FFunction · 0.64