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

Method CreateConnection

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

Source from the content-addressed store, hash-verified

64}
65
66std::shared_ptr<ODBCConnection> ODBCEnvironment::CreateConnection() {
67 std::shared_ptr<Connection> spi_connection = driver_->CreateConnection(
68 version_ == SQL_OV_ODBC2 ? OdbcVersion::V_2 : OdbcVersion::V_3);
69 std::shared_ptr<ODBCConnection> new_conn =
70 std::make_shared<ODBCConnection>(*this, spi_connection);
71 connections_.push_back(new_conn);
72 return new_conn;
73}
74
75void ODBCEnvironment::DropConnection(ODBCConnection* conn) {
76 auto it = std::find_if(connections_.begin(), connections_.end(),

Callers 2

SQLAllocHandleFunction · 0.45
mainFunction · 0.45

Calls 1

push_backMethod · 0.80

Tested by

no test coverage detected