mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-14 03:25:15 +00:00
97f2a2213e
* Move some code outside dbms/src folder * Fix paths
25 lines
460 B
C++
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;
|
|
}
|