Add Database::VERSION, getLibVersion() and getLibVersionNumber()

Usefull to get SQLite3 version without including sqlite3.h in application code
This commit is contained in:
Sébastien Rombauts
2016-07-25 21:53:06 +02:00
parent f77b707206
commit 648ffe01e8
4 changed files with 30 additions and 5 deletions

View File

@@ -85,8 +85,8 @@ private:
int main ()
{
// Using SQLITE_VERSION would require #include <sqlite3.h> which we want to avoid
// TODO: replace by a SQLite::VERSION
// std::cout << "SQlite3 version " << SQLITE_VERSION << std::endl;
// std::cout << "SQlite3 version " << SQLITE_VERSION << std::endl;
std::cout << "SQlite3 version " << SQLite::VERSION << " (" << SQLite::getLibVersion() << ")" << std::endl;
std::cout << "SQliteC++ version " << SQLITECPP_VERSION << std::endl;
////////////////////////////////////////////////////////////////////////////