diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2025-08-23 16:52:38 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2025-08-25 16:02:31 +0100 |
commit | 2db6c4f42a20c0c2a9b32545f4d6fab90be2c26d (patch) | |
tree | 707c732b2229c0cfff8a96d134eb144a32703374 /src/ingestor.hpp | |
parent | d3117520013d7ee0268e73cf8aaf3fb02e631a42 (diff) | |
download | webstat-2db6c4f42a20c0c2a9b32545f4d6fab90be2c26d.tar.bz2 webstat-2db6c4f42a20c0c2a9b32545f4d6fab90be2c26d.tar.xz webstat-2db6c4f42a20c0c2a9b32545f4d6fab90be2c26d.zip |
Add helpers and SQL for storing an entity
Diffstat (limited to 'src/ingestor.hpp')
-rw-r--r-- | src/ingestor.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ingestor.hpp b/src/ingestor.hpp index 8450e4f..a7a57a6 100644 --- a/src/ingestor.hpp +++ b/src/ingestor.hpp @@ -23,6 +23,10 @@ namespace WebStat { void ingestLog(std::FILE *); + template<typename T> void storeEntity(const T &) const; + void storeEntity(Entity) const; + void storeEntity(std::optional<Entity>) const; + protected: size_t linesRead = 0; size_t linesParsed = 0; |