#pragma once #include #include #include namespace DB { class StorageMeiliSearch final : public IStorage { public: StorageMeiliSearch( const StorageID & table_id, const MeiliSearchConfiguration & config_, const ColumnsDescription & columns_, const ConstraintsDescription & constraints_, const String & comment); String getName() const override { return "MeiliSearch"; } Pipe read( const Names & column_names, const StorageSnapshotPtr & storage_snapshot, SelectQueryInfo & query_info, ContextPtr context, QueryProcessingStage::Enum processed_stage, size_t max_block_size, unsigned num_streams) override; SinkToStoragePtr write(const ASTPtr & query, const StorageMetadataPtr & metadata_snapshot, ContextPtr local_context) override; MeiliSearchConfiguration static getConfiguration(ASTs engine_args, ContextPtr context); private: MeiliSearchConfiguration config; Poco::Logger * log; }; }