mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-13 09:52:38 +00:00
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;
|
|
}
|