diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-03-03 20:20:56 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-03-03 20:20:56 +0000 |
commit | 9951de18e9b54e3c2730fc3af9d0bc9edac1412c (patch) | |
tree | 60955cef459e3875df75c0f4192a242054bb6b72 | |
parent | Add missing include (diff) | |
download | icetray-9951de18e9b54e3c2730fc3af9d0bc9edac1412c.tar.bz2 icetray-9951de18e9b54e3c2730fc3af9d0bc9edac1412c.tar.xz icetray-9951de18e9b54e3c2730fc3af9d0bc9edac1412c.zip |
Make the database clients free to be used as variables, not just inheritted
-rw-r--r-- | icetray/icetray/abstractCachingDatabaseClient.h | 2 | ||||
-rw-r--r-- | icetray/icetray/abstractDatabaseClient.h | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/icetray/icetray/abstractCachingDatabaseClient.h b/icetray/icetray/abstractCachingDatabaseClient.h index c3d6ea3..e9e91e7 100644 --- a/icetray/icetray/abstractCachingDatabaseClient.h +++ b/icetray/icetray/abstractCachingDatabaseClient.h @@ -25,7 +25,7 @@ namespace IceTray { using CacheKey = std::vector<std::size_t>; using CacheItem = std::any; - protected: + public: explicit AbstractCachingDatabaseClient(const DB::ConnectionPoolPtr & d); template<typename Domain, typename... Params> diff --git a/icetray/icetray/abstractDatabaseClient.h b/icetray/icetray/abstractDatabaseClient.h index e798c2e..047eaee 100644 --- a/icetray/icetray/abstractDatabaseClient.h +++ b/icetray/icetray/abstractDatabaseClient.h @@ -19,7 +19,7 @@ namespace DB { namespace IceTray { class DLL_PUBLIC AbstractDatabaseClient { - protected: + public: explicit AbstractDatabaseClient(DB::ConnectionPoolPtr d); template<typename Domain, typename... Params> @@ -54,6 +54,7 @@ namespace IceTray { return Slicer::DeserializeAny<Slicer::SqlSelectDeserializer, Domain>(s.get(), typeIdCol); } + protected: template<typename Param, typename... Params> static void inline bind(unsigned int offset, DB::Command * cmd, const Param & p, const Params &... params) { |