summaryrefslogtreecommitdiff
path: root/src/sql.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/sql.cpp')
-rw-r--r--src/sql.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/sql.cpp b/src/sql.cpp
index 8512657..52e9520 100644
--- a/src/sql.cpp
+++ b/src/sql.cpp
@@ -6,11 +6,15 @@ namespace WebStat::SQL {
// https://github.com/ccache/ccache/issues/1540
// ccache:disable
+ const std::string ACCESS_LOG_INSERT {
+#embed "sql/accessLogInsert.sql"
+ };
const std::string ENTITY_INSERT {
#embed "sql/entityInsert.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);
#undef HASH_OPTS
}