MCPcopy Create free account
hub / github.com/apache/arrow / GetInfo

Method GetInfo

cpp/src/arrow/flight/sql/odbc/odbc_impl/get_info_cache.cc:272–284  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

270}
271
272Connection::Info GetInfoCache::GetInfo(uint16_t info_type) {
273 auto it = info_.find(info_type);
274
275 if (info_.end() == it) {
276 if (LoadInfoFromServer()) {
277 it = info_.find(info_type);
278 }
279 if (info_.end() == it) {
280 throw DriverException("Unknown GetInfo type: " + std::to_string(info_type));
281 }
282 }
283 return it->second;
284}
285
286bool GetInfoCache::LoadInfoFromServer() {
287 if (sql_client_ && !has_server_info_.exchange(true)) {

Callers 2

SQLGetInfoFunction · 0.45
TestConnectionFunction · 0.45

Calls 4

DriverExceptionClass · 0.85
to_stringFunction · 0.85
findMethod · 0.45
endMethod · 0.45

Tested by 1

TestConnectionFunction · 0.36