aboutsummaryrefslogtreecommitdiffstats
path: root/src/base/database.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/base/database.hpp')
-rw-r--r--src/base/database.hpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/base/database.hpp b/src/base/database.hpp
index d5313609..c7bb00b8 100644
--- a/src/base/database.hpp
+++ b/src/base/database.hpp
@@ -80,6 +80,15 @@ namespace usdx
*/
const bool sqlite_table_exists(const std::string table);
+ /**
+ * Check if the given table has the given column by name.
+ *
+ * @param table Table to examine
+ * @param column Name of the column to check if exists
+ * @return true, if column exists in that table, false if not
+ */
+ const bool sqlite_table_contains_column(const std::string table, const std::string column);
+
// Singleton
StatDatabase(std::string filename);