summaryrefslogtreecommitdiff
path: root/src/webstat_logger_main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/webstat_logger_main.cpp')
-rw-r--r--src/webstat_logger_main.cpp4
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);
}