summaryrefslogtreecommitdiff
path: root/src/sql.hpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2025-08-23 16:52:38 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2025-08-25 16:02:31 +0100
commit2db6c4f42a20c0c2a9b32545f4d6fab90be2c26d (patch)
tree707c732b2229c0cfff8a96d134eb144a32703374 /src/sql.hpp
parentd3117520013d7ee0268e73cf8aaf3fb02e631a42 (diff)
downloadwebstat-2db6c4f42a20c0c2a9b32545f4d6fab90be2c26d.tar.bz2
webstat-2db6c4f42a20c0c2a9b32545f4d6fab90be2c26d.tar.xz
webstat-2db6c4f42a20c0c2a9b32545f4d6fab90be2c26d.zip
Add helpers and SQL for storing an entity
Diffstat (limited to 'src/sql.hpp')
-rw-r--r--src/sql.hpp13
1 files changed, 13 insertions, 0 deletions
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 <command_fwd.h>
+#include <string>
+
+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
+}