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

Function main

cpp/src/arrow/flight/sql/odbc/odbc_impl/main.cc:199–223  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

197}
198
199int main() {
200 FlightSqlDriver driver;
201
202 const std::shared_ptr<Connection>& connection =
203 driver.CreateConnection(arrow::flight::sql::odbc::OdbcVersion::V_3);
204
205 Connection::ConnPropertyMap properties = {
206 {std::string(FlightSqlConnection::HOST), "automaster.apache"},
207 {std::string(FlightSqlConnection::PORT), "32010"},
208 {std::string(FlightSqlConnection::USER), "apache"},
209 {std::string(FlightSqlConnection::PASSWORD), "apache123"},
210 {std::string(FlightSqlConnection::USE_ENCRYPTION), "false"},
211 };
212 std::vector<std::string_view> missing_attr;
213 connection->Connect(properties, missing_attr);
214
215 // TestBindColumnBigInt(connection);
216 // TestBindColumn(connection);
217 TestGetData(connection);
218 // TestGetTablesV2(connection);
219 // TestGetColumnsV3(connection);
220
221 connection->Close();
222 return 0;
223}

Callers

nothing calls this directly

Calls 4

TestGetDataFunction · 0.85
CreateConnectionMethod · 0.45
ConnectMethod · 0.45
CloseMethod · 0.45

Tested by

no test coverage detected