diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2010-01-10 21:47:42 +0100 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2013-01-05 17:17:44 +0100 |
commit | 98bdc2079442b79780db04bb8d05a2c329577e10 (patch) | |
tree | 22438186f1287101ad057e620386cbc96dc4637e /src/base/database.hpp | |
parent | 872459a7cc525eb87a2dc5a82f1b137493186080 (diff) | |
download | usdx-98bdc2079442b79780db04bb8d05a2c329577e10.tar.gz usdx-98bdc2079442b79780db04bb8d05a2c329577e10.tar.xz usdx-98bdc2079442b79780db04bb8d05a2c329577e10.zip |
added function for testing weather a table contains a column or not
Diffstat (limited to 'src/base/database.hpp')
-rw-r--r-- | src/base/database.hpp | 9 |
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); |