ClickHouse/src/TableFunctions/TableFunctionMeiliSearch.h
2022-08-28 02:08:51 +02:00

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;
};
}