summaryrefslogtreecommitdiff
path: root/src/ingestor.hpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2025-08-23 17:24:48 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2025-08-25 16:02:39 +0100
commitb9b25dc52ad73f1be70f42d649b7b52bc4807208 (patch)
tree7695bc342e8222e3e855afc740daf24b7d8bb102 /src/ingestor.hpp
parentb446381dfa3f4298262ad8c7ef942d4ec64bcbea (diff)
downloadwebstat-b9b25dc52ad73f1be70f42d649b7b52bc4807208.tar.bz2
webstat-b9b25dc52ad73f1be70f42d649b7b52bc4807208.tar.xz
webstat-b9b25dc52ad73f1be70f42d649b7b52bc4807208.zip
Store the entities for each log line
Diffstat (limited to 'src/ingestor.hpp')
-rw-r--r--src/ingestor.hpp3
1 files changed, 3 insertions, 0 deletions
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<typename T> void storeEntity(const T &) const;
void storeEntity(Entity) const;
@@ -33,6 +34,8 @@ namespace WebStat {
size_t linesDiscarded = 0;
private:
+ template<typename... T> void storeEntities(const std::tuple<T...> &) const;
+
uint32_t hostnameId;
DB::ConnectionPtr dbconn;
};