summaryrefslogtreecommitdiffstats
path: root/src/lib/database/database_connection.h
diff options
context:
space:
mode:
authorRazvan Becheriu <razvan@isc.org>2024-09-11 20:01:30 +0200
committerRazvan Becheriu <razvan@isc.org>2024-09-16 15:31:01 +0200
commitd904a186997116f9653343708fb482a489c6e3b7 (patch)
treed588b82714209aa60a51eafc0038e163b0b5ad0c /src/lib/database/database_connection.h
parent[#3536] move lease and host backends (diff)
downloadkea-d904a186997116f9653343708fb482a489c6e3b7.tar.xz
kea-d904a186997116f9653343708fb482a489c6e3b7.zip
[#3536] moved lease and host backends
Diffstat (limited to 'src/lib/database/database_connection.h')
-rw-r--r--src/lib/database/database_connection.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/lib/database/database_connection.h b/src/lib/database/database_connection.h
index 00dbc03424..0ea887e1d2 100644
--- a/src/lib/database/database_connection.h
+++ b/src/lib/database/database_connection.h
@@ -351,6 +351,19 @@ public:
}
};
+template <typename T>
+struct Initializer {
+ /// @brief Constructor.
+ Initializer() : init_(new T()) {
+ }
+
+ /// @brief Destructo.
+ ~Initializer() = default;
+
+ /// @brief smart pointer to an instance of an initializer.
+ std::unique_ptr<T> init_;
+};
+
} // namespace db
} // namespace isc