From b9b25dc52ad73f1be70f42d649b7b52bc4807208 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sat, 23 Aug 2025 17:24:48 +0100 Subject: Store the entities for each log line --- src/ingestor.hpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/ingestor.hpp') diff --git a/src/ingestor.hpp b/src/ingestor.hpp index 892cc9c..899f179 100644 --- a/src/ingestor.hpp +++ b/src/ingestor.hpp @@ -22,6 +22,7 @@ namespace WebStat { [[nodiscard]] static ScanResult scanLogLine(std::string_view); void ingestLog(std::FILE *); + void ingestLogLine(std::string_view); template void storeEntity(const T &) const; void storeEntity(Entity) const; @@ -33,6 +34,8 @@ namespace WebStat { size_t linesDiscarded = 0; private: + template void storeEntities(const std::tuple &) const; + uint32_t hostnameId; DB::ConnectionPtr dbconn; }; -- cgit v1.2.3