From 2db6c4f42a20c0c2a9b32545f4d6fab90be2c26d Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sat, 23 Aug 2025 16:52:38 +0100 Subject: Add helpers and SQL for storing an entity --- src/sql.hpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/sql.hpp (limited to 'src/sql.hpp') diff --git a/src/sql.hpp b/src/sql.hpp new file mode 100644 index 0000000..4b598e7 --- /dev/null +++ b/src/sql.hpp @@ -0,0 +1,13 @@ +#pragma once + +#include +#include + +namespace WebStat::SQL { +#define EMBED_DECLARE(Name) \ + extern const std::string Name; \ + extern const DB::CommandOptionsPtr Name##_OPTS + + EMBED_DECLARE(ENTITY_INSERT); +#undef EMBED_DECLARE +} -- cgit v1.2.3