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