mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 23:21:59 +00:00
27 lines
781 B
C++
27 lines
781 B
C++
#pragma once
|
|
#include <Storages/MeiliSearch/MeiliSearchConnection.h>
|
|
#include <TableFunctions/ITableFunction.h>
|
|
|
|
namespace DB
|
|
{
|
|
|
|
class TableFunctionMeiliSearch : public ITableFunction
|
|
{
|
|
public:
|
|
static constexpr auto name = "meilisearch";
|
|
String getName() const override { return name; }
|
|
|
|
private:
|
|
StoragePtr executeImpl(
|
|
const ASTPtr & ast_function, ContextPtr context, const String & table_name, ColumnsDescription cached_columns) const override;
|
|
|
|
const char * getStorageTypeName() const override { return "meilisearch"; }
|
|
|
|
ColumnsDescription getActualTableStructure(ContextPtr context) const override;
|
|
void parseArguments(const ASTPtr & ast_function, ContextPtr context) override;
|
|
|
|
std::optional<MeiliSearchConfiguration> configuration;
|
|
};
|
|
|
|
}
|