From d3117520013d7ee0268e73cf8aaf3fb02e631a42 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sat, 23 Aug 2025 15:49:48 +0100 Subject: Pass a DB connection to Ingestor --- src/ingestor.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/ingestor.hpp') diff --git a/src/ingestor.hpp b/src/ingestor.hpp index 9ae8130..8450e4f 100644 --- a/src/ingestor.hpp +++ b/src/ingestor.hpp @@ -2,13 +2,14 @@ #include "logTypes.hpp" #include +#include #include #include namespace WebStat { class Ingestor { public: - Ingestor() = default; + Ingestor(DB::ConnectionPtr dbconn); virtual ~Ingestor() = default; SPECIAL_MEMBERS_DEFAULT_MOVE_NO_COPY(Ingestor); @@ -26,5 +27,8 @@ namespace WebStat { size_t linesRead = 0; size_t linesParsed = 0; size_t linesDiscarded = 0; + + private: + DB::ConnectionPtr dbconn; }; } -- cgit v1.2.3