1#include <iostream>
2#include <Common/Exception.h>
3#include "../validateODBCConnectionString.h"
4
5
6using namespace DB;
7
8int main(int argc, char ** argv)
9try
10{
11 if (argc < 2)
12 {
13 std::cerr << "Usage: validate-odbc-connection-string 'ConnectionString'\n";
14 return 1;
15 }
16
17 std::cout << validateODBCConnectionString(argv[1]) << '\n';
18 return 0;
19}
20catch (...)
21{
22 std::cerr << getCurrentExceptionMessage(false) << "\n";
23 return 2;
24}
25