feat: data layer HTTP — consume sqlite_api en vez de SQLite directo
Nuevo data_http.cpp que obtiene todos los datos del registry via HTTP POST a sqlite_api (/api/databases/registry/query). Mismas queries SQL que el data layer SQLite pero ejecutadas remotamente. cpp-httplib como cliente HTTP, nlohmann/json para parsear respuestas. CMakeLists.txt actualizado: incluye data_http.cpp, vendor/ en includes, linkea pthreads (Linux) y ws2_32 (Windows) para sockets. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
#pragma once
|
||||
|
||||
#include "data.h"
|
||||
#include <string>
|
||||
|
||||
// Load all registry data via sqlite_api HTTP endpoint.
|
||||
// api_url should be like "http://127.0.0.1:8484".
|
||||
// Returns true on success.
|
||||
bool load_registry_data_http(const std::string& api_url, RegistryData& out);
|
||||
Reference in New Issue
Block a user