#pragma once #include #include #include #include #include namespace duckdb { namespace ui { struct CatalogState { std::map db_to_catalog_version; }; class HttpServer; class Watcher { public: Watcher(HttpServer &server); void Start(); void Stop(); private: void Watch(); unique_ptr thread; std::mutex mutex; std::condition_variable cv; std::atomic should_run; HttpServer &server; }; } // namespace ui } // namespace duckdb