diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2025-08-23 15:49:48 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2025-08-25 16:01:28 +0100 |
commit | d3117520013d7ee0268e73cf8aaf3fb02e631a42 (patch) | |
tree | 9e65a395a3ec3c88f2685c7960048d38e53c1a69 /src/webstat_logger_main.cpp | |
parent | 52f0880cd05d346120fb3a0a9310592d50ec8bcb (diff) | |
download | webstat-d3117520013d7ee0268e73cf8aaf3fb02e631a42.tar.bz2 webstat-d3117520013d7ee0268e73cf8aaf3fb02e631a42.tar.xz webstat-d3117520013d7ee0268e73cf8aaf3fb02e631a42.zip |
Pass a DB connection to Ingestor
Diffstat (limited to 'src/webstat_logger_main.cpp')
-rw-r--r-- | src/webstat_logger_main.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
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 <pq-connection.h> int main(int, char **) { - WebStat::Ingestor {}.ingestLog(stdin); + auto dbconn = std::make_shared<PQ::Connection>("dbname=webstat user=webstat"); + WebStat::Ingestor {dbconn}.ingestLog(stdin); } |