2017-12-28 04:29:53 +00:00
|
|
|
#include <Common/config.h>
|
2017-06-10 09:04:31 +00:00
|
|
|
#include <TableFunctions/registerTableFunctions.h>
|
|
|
|
#include <TableFunctions/TableFunctionFactory.h>
|
|
|
|
|
|
|
|
|
|
|
|
namespace DB
|
|
|
|
{
|
|
|
|
|
|
|
|
void registerTableFunctionMerge(TableFunctionFactory & factory);
|
|
|
|
void registerTableFunctionRemote(TableFunctionFactory & factory);
|
|
|
|
void registerTableFunctionShardByHash(TableFunctionFactory & factory);
|
|
|
|
void registerTableFunctionNumbers(TableFunctionFactory & factory);
|
2017-10-30 15:12:56 +00:00
|
|
|
void registerTableFunctionCatBoostPool(TableFunctionFactory & factory);
|
2018-04-02 11:43:51 +00:00
|
|
|
void registerTableFunctionFile(TableFunctionFactory & factory);
|
2018-06-11 12:13:00 +00:00
|
|
|
void registerTableFunctionURL(TableFunctionFactory & factory);
|
2018-11-19 08:17:09 +00:00
|
|
|
void registerTableFunctionHDFS(TableFunctionFactory & factory);
|
2018-04-03 12:17:45 +00:00
|
|
|
|
2018-05-14 18:36:01 +00:00
|
|
|
#if USE_POCO_SQLODBC || USE_POCO_DATAODBC
|
2017-12-05 13:32:02 +00:00
|
|
|
void registerTableFunctionODBC(TableFunctionFactory & factory);
|
2017-12-29 15:48:20 +00:00
|
|
|
#endif
|
2017-06-10 09:04:31 +00:00
|
|
|
|
2018-09-25 14:29:44 +00:00
|
|
|
void registerTableFunctionJDBC(TableFunctionFactory & factory);
|
|
|
|
|
2017-12-28 04:29:53 +00:00
|
|
|
#if USE_MYSQL
|
|
|
|
void registerTableFunctionMySQL(TableFunctionFactory & factory);
|
|
|
|
#endif
|
|
|
|
|
2017-06-10 09:04:31 +00:00
|
|
|
|
|
|
|
void registerTableFunctions()
|
|
|
|
{
|
|
|
|
auto & factory = TableFunctionFactory::instance();
|
|
|
|
|
|
|
|
registerTableFunctionMerge(factory);
|
|
|
|
registerTableFunctionRemote(factory);
|
|
|
|
registerTableFunctionShardByHash(factory);
|
|
|
|
registerTableFunctionNumbers(factory);
|
2017-10-30 15:12:56 +00:00
|
|
|
registerTableFunctionCatBoostPool(factory);
|
2018-04-02 11:43:51 +00:00
|
|
|
registerTableFunctionFile(factory);
|
2018-06-11 12:13:00 +00:00
|
|
|
registerTableFunctionURL(factory);
|
2018-11-19 08:17:09 +00:00
|
|
|
registerTableFunctionHDFS(factory);
|
2017-12-29 15:48:20 +00:00
|
|
|
|
2018-05-14 18:36:01 +00:00
|
|
|
#if USE_POCO_SQLODBC || USE_POCO_DATAODBC
|
2017-12-05 13:32:02 +00:00
|
|
|
registerTableFunctionODBC(factory);
|
2017-12-29 15:48:20 +00:00
|
|
|
#endif
|
2018-09-25 14:29:44 +00:00
|
|
|
registerTableFunctionJDBC(factory);
|
2017-12-28 04:29:53 +00:00
|
|
|
|
|
|
|
#if USE_MYSQL
|
|
|
|
registerTableFunctionMySQL(factory);
|
|
|
|
#endif
|
2017-06-10 09:04:31 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|