ClickHouse/dbms/src/TableFunctions/TableFunctionODBC.h
proller 70e35d0bcc Build fixes (#1718)
* 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
2017-12-29 18:48:20 +03:00

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