mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-10-05 16:10:50 +00:00
70e35d0bcc
* Embedded compiler fixes * common lib not needed for clang and lld * Fix pthread link * Fix shared build * Arm fixes 1 * arm fix * Unused fix * Build fixes * release --pbuilder * release pbuilder fix * FORCE_PBUILDER_CREATE=1 release * release: Auto use clang with sanitizers * Fix build without poco data odbc lib. zlib arm build fix. * Fix freebsd build and build without mysql * Tests: Dont eat my cpu! * Test me
28 lines
628 B
C++
28 lines
628 B
C++
#pragma once
|
|
|
|
#include <Common/config.h>
|
|
#if Poco_DataODBC_FOUND
|
|
|
|
#include <TableFunctions/ITableFunction.h>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
/* odbc (odbc connect string, table) - creates a temporary StorageODBC.
|
|
* The structure of the table is taken from the mysql query "SELECT * FROM table WHERE 1=0".
|
|
* If there is no such table, an exception is thrown.
|
|
*/
|
|
class TableFunctionODBC : public ITableFunction
|
|
{
|
|
public:
|
|
static constexpr auto name = "odbc";
|
|
std::string getName() const override
|
|
{
|
|
return name;
|
|
}
|
|
StoragePtr execute(const ASTPtr & ast_function, const Context & context) const override;
|
|
};
|
|
}
|
|
|
|
#endif
|