From d3117520013d7ee0268e73cf8aaf3fb02e631a42 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sat, 23 Aug 2025 15:49:48 +0100 Subject: Pass a DB connection to Ingestor --- src/webstat_logger_main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/webstat_logger_main.cpp') diff --git a/src/webstat_logger_main.cpp b/src/webstat_logger_main.cpp index c4d31d6..8f2d45a 100644 --- a/src/webstat_logger_main.cpp +++ b/src/webstat_logger_main.cpp @@ -1,7 +1,9 @@ #include "ingestor.hpp" +#include int main(int, char **) { - WebStat::Ingestor {}.ingestLog(stdin); + auto dbconn = std::make_shared("dbname=webstat user=webstat"); + WebStat::Ingestor {dbconn}.ingestLog(stdin); } -- cgit v1.2.3