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

Method DropConnection

cpp/src/arrow/flight/sql/odbc/odbc_impl/odbc_environment.cc:75–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73}
74
75void ODBCEnvironment::DropConnection(ODBCConnection* conn) {
76 auto it = std::find_if(connections_.begin(), connections_.end(),
77 [&conn](const std::shared_ptr<ODBCConnection>& connection) {
78 return connection.get() == conn;
79 });
80 if (connections_.end() != it) {
81 connections_.erase(it);
82 }
83}

Callers 1

ReleaseConnectionMethod · 0.80

Calls 3

beginMethod · 0.45
endMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected