ClickHouse/programs/odbc-bridge/tests/validate-odbc-connection-string.cpp
Ivan 97f2a2213e
Move all folders inside /dbms one level up (#9974)
* Move some code outside dbms/src folder
* Fix paths
2020-04-02 02:51:21 +03:00

25 lines
460 B
C++

#include <iostream>
#include <Common/Exception.h>
#include "../validateODBCConnectionString.h"
using namespace DB;
int main(int argc, char ** argv)
try
{
if (argc < 2)
{
std::cerr << "Usage: validate-odbc-connection-string 'ConnectionString'\n";
return 1;
}
std::cout << validateODBCConnectionString(argv[1]) << '\n';
return 0;
}
catch (...)
{
std::cerr << getCurrentExceptionMessage(false) << "\n";
return 2;
}