2026-04-02 16:30:33 +02:00
|
|
|
/**
|
|
|
|
|
* @file DBIngest.hpp
|
|
|
|
|
* @brief PostgreSQL helpers to load market objects (work in progress).
|
|
|
|
|
*/
|
2026-03-25 21:54:05 +01:00
|
|
|
|
|
|
|
|
#ifndef QUANTENGINE_DBINGEST_HPP
|
|
|
|
|
#define QUANTENGINE_DBINGEST_HPP
|
|
|
|
|
|
|
|
|
|
#include <pqxx/pqxx>
|
|
|
|
|
|
|
|
|
|
#include "VolatilitySurface.hpp"
|
|
|
|
|
#include "YieldCurve.hpp"
|
|
|
|
|
|
2026-04-02 16:30:33 +02:00
|
|
|
/**
|
|
|
|
|
* @brief Connects to Postgres via libpqxx and queries quotes for surface building.
|
|
|
|
|
*/
|
2026-03-25 21:54:05 +01:00
|
|
|
class DBIngest {
|
|
|
|
|
|
|
|
|
|
bool connect();
|
|
|
|
|
bool disconnect();
|
|
|
|
|
bool update(VolatilitySurface& surface);
|
|
|
|
|
bool update(YieldCurve& yield_curve);
|
|
|
|
|
private:
|
|
|
|
|
pqxx::connection connection_;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif //QUANTENGINE_DBINGEST_HPP
|