diff options
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; }; } |