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

Method GetInfo

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

Source from the content-addressed store, hash-verified

272}
273
274Connection::Info GetInfoCache::GetInfo(uint16_t info_type) {
275 auto it = info_.find(info_type);
276
277 if (info_.end() == it) {
278 if (LoadInfoFromServer()) {
279 it = info_.find(info_type);
280 }
281 if (info_.end() == it) {
282 throw DriverException("Unknown GetInfo type: " + std::to_string(info_type));
283 }
284 }
285 return it->second;
286}
287
288bool GetInfoCache::LoadInfoFromServer() {
289 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