diff options
| author | Dan Goodliffe <dan@randomdan.homeip.net> | 2025-10-15 23:24:32 +0100 |
|---|---|---|
| committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2025-10-15 23:24:32 +0100 |
| commit | b9538c693b34a6382ea9f3b985bb922b9c17f12e (patch) | |
| tree | b0658689e0c500cdc2db44efac0c23f54a5f1771 /src/ingestor.hpp | |
| parent | 0845347d76868142af5d23bac1e22cfb55415e0a (diff) | |
| download | webstat-b9538c693b34a6382ea9f3b985bb922b9c17f12e.tar.bz2 webstat-b9538c693b34a6382ea9f3b985bb922b9c17f12e.tar.xz webstat-b9538c693b34a6382ea9f3b985bb922b9c17f12e.zip | |
Refactor handling of new entity insert
Replaces weird select with one thing with a function pointer stored in
the type definition array.
Diffstat (limited to 'src/ingestor.hpp')
| -rw-r--r-- | src/ingestor.hpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ingestor.hpp b/src/ingestor.hpp index 8be7360..3e25938 100644 --- a/src/ingestor.hpp +++ b/src/ingestor.hpp @@ -71,6 +71,7 @@ namespace WebStat { NewEntityIds storeEntities(DB::Connection *, std::span<const std::optional<Entity>>) const; using NewEntities = std::array<std::optional<Entity>, MAX_NEW_ENTITIES>; template<typename... T> NewEntities newEntities(const std::tuple<T...> &) const; + void onNewUserAgent(const Entity &) const; void handleCurlOperations(); void jobIngestParkedLine(const std::filesystem::directory_iterator &); |
