From 085ba64488e744ae80e12569ee52b3f851daf69e Mon Sep 17 00:00:00 2001 From: Fabian Schiebel Date: Sun, 16 Mar 2025 20:34:18 +0100 Subject: [PATCH 1/2] Mark Hexastore as deprecated --- include/phasar/DB/Hexastore.h | 3 ++- unittests/DB/CMakeLists.txt | 16 ++++++++-------- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/include/phasar/DB/Hexastore.h b/include/phasar/DB/Hexastore.h index d6960c903c..79e868a37c 100644 --- a/include/phasar/DB/Hexastore.h +++ b/include/phasar/DB/Hexastore.h @@ -73,7 +73,8 @@ struct HSResult { * * @brief Efficient data structure for holding graphs in databases. */ -class Hexastore { +class [[deprecated("This ancient API is not maintained for long and sholud not " + "be used anymore!")]] Hexastore { private: sqlite3 *HSInternalDB{}; static int callback(void * /*NotUsed*/, int Argc, char **Argv, diff --git a/unittests/DB/CMakeLists.txt b/unittests/DB/CMakeLists.txt index 87e1de139e..6f6c3606b6 100644 --- a/unittests/DB/CMakeLists.txt +++ b/unittests/DB/CMakeLists.txt @@ -1,9 +1,9 @@ -if(SQLite3_FOUND) - set(DBSources - HexastoreTest.cpp - ) +# if(SQLite3_FOUND) +# set(DBSources +# HexastoreTest.cpp +# ) - foreach(TEST_SRC ${DBSources}) - add_phasar_unittest(${TEST_SRC}) - endforeach(TEST_SRC) -endif() +# foreach(TEST_SRC ${DBSources}) +# add_phasar_unittest(${TEST_SRC}) +# endforeach(TEST_SRC) +# endif() From f53f26c9d05b37d08ca624d4ea22d0214ced812f Mon Sep 17 00:00:00 2001 From: Fabian Schiebel Date: Sun, 16 Mar 2025 20:35:46 +0100 Subject: [PATCH 2/2] minor --- include/phasar/DB/Hexastore.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/phasar/DB/Hexastore.h b/include/phasar/DB/Hexastore.h index 79e868a37c..64ade62375 100644 --- a/include/phasar/DB/Hexastore.h +++ b/include/phasar/DB/Hexastore.h @@ -73,7 +73,7 @@ struct HSResult { * * @brief Efficient data structure for holding graphs in databases. */ -class [[deprecated("This ancient API is not maintained for long and sholud not " +class [[deprecated("This ancient API is not maintained for long and should not " "be used anymore!")]] Hexastore { private: sqlite3 *HSInternalDB{};