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

Function main

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

Source from the content-addressed store, hash-verified

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

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