diff options
author | Dan Goodliffe <dan.goodliffe@octal.co.uk> | 2025-09-02 16:13:22 +0100 |
---|---|---|
committer | Dan Goodliffe <dan.goodliffe@octal.co.uk> | 2025-09-02 16:13:22 +0100 |
commit | ca9be55a98c094e8026a4003a099573dd4137050 (patch) | |
tree | 1d58e13a84fc6bba25242877859027bdfe8f461e /src/sql.cpp | |
parent | 07a98c0ba7d2fdd79cab1884f81bb041741fc18c (diff) | |
download | webstat-ca9be55a98c094e8026a4003a099573dd4137050.tar.bz2 webstat-ca9be55a98c094e8026a4003a099573dd4137050.tar.xz webstat-ca9be55a98c094e8026a4003a099573dd4137050.zip |
Store utsname details in the host's detail field
Diffstat (limited to 'src/sql.cpp')
-rw-r--r-- | src/sql.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/sql.cpp b/src/sql.cpp index 52e9520..fbfadd3 100644 --- a/src/sql.cpp +++ b/src/sql.cpp @@ -12,9 +12,13 @@ namespace WebStat::SQL { const std::string ENTITY_INSERT { #embed "sql/entityInsert.sql" }; + const std::string HOST_UPSERT { +#embed "sql/hostUpsert.sql" + }; #define HASH_OPTS(VAR) \ const DB::CommandOptionsPtr VAR##_OPTS = std::make_shared<DB::CommandOptions>(std::hash<std::string> {}(VAR)) HASH_OPTS(ACCESS_LOG_INSERT); HASH_OPTS(ENTITY_INSERT); + HASH_OPTS(HOST_UPSERT); #undef HASH_OPTS } |