diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2025-08-23 15:49:48 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2025-08-25 16:01:28 +0100 |
commit | d3117520013d7ee0268e73cf8aaf3fb02e631a42 (patch) | |
tree | 9e65a395a3ec3c88f2685c7960048d38e53c1a69 /src/ingestor.hpp | |
parent | 52f0880cd05d346120fb3a0a9310592d50ec8bcb (diff) | |
download | webstat-d3117520013d7ee0268e73cf8aaf3fb02e631a42.tar.bz2 webstat-d3117520013d7ee0268e73cf8aaf3fb02e631a42.tar.xz webstat-d3117520013d7ee0268e73cf8aaf3fb02e631a42.zip |
Pass a DB connection to Ingestor
Diffstat (limited to 'src/ingestor.hpp')
-rw-r--r-- | src/ingestor.hpp | 6 |
1 files changed, 5 insertions, 1 deletions
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 <c++11Helpers.h> +#include <connection_fwd.h> #include <cstdio> #include <scn/scan.h> 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; }; } |