mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-12 17:32:32 +00:00
18 lines
410 B
C++
18 lines
410 B
C++
|
#include "LibraryBridge.h"
|
||
|
|
||
|
#pragma GCC diagnostic ignored "-Wmissing-declarations"
|
||
|
int mainEntryClickHouseLibraryBridge(int argc, char ** argv)
|
||
|
{
|
||
|
DB::LibraryBridge app;
|
||
|
try
|
||
|
{
|
||
|
return app.run(argc, argv);
|
||
|
}
|
||
|
catch (...)
|
||
|
{
|
||
|
std::cerr << DB::getCurrentExceptionMessage(true) << "\n";
|
||
|
auto code = DB::getCurrentExceptionCode();
|
||
|
return code ? code : 1;
|
||
|
}
|
||
|
}
|