diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2010-01-10 21:46:58 +0100 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2013-01-05 17:17:44 +0100 |
commit | 872459a7cc525eb87a2dc5a82f1b137493186080 (patch) | |
tree | 594be565ed9bcc2243ac6fdfbcf7424b0cf3eb95 /src/base/database.hpp | |
parent | e2d74a920c3d6a8250d3b3e2f08d9f29f6d6cea7 (diff) | |
download | usdx-872459a7cc525eb87a2dc5a82f1b137493186080.tar.gz usdx-872459a7cc525eb87a2dc5a82f1b137493186080.tar.xz usdx-872459a7cc525eb87a2dc5a82f1b137493186080.zip |
added function for testing if table exists in database
Diffstat (limited to 'src/base/database.hpp')
-rw-r--r-- | src/base/database.hpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/base/database.hpp b/src/base/database.hpp index 3bf699ad..d5313609 100644 --- a/src/base/database.hpp +++ b/src/base/database.hpp @@ -72,6 +72,14 @@ namespace usdx */ void sqlite_exec(const std::string sqlStatement); + /** + * Check if the given table exists in the database. + * + * @param table Name to check if exists + * @return true, if table exists, false if not + */ + const bool sqlite_table_exists(const std::string table); + // Singleton StatDatabase(std::string filename); |