| 197 | } |
| 198 | |
| 199 | int 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 | } |
nothing calls this directly
no test coverage detected