@@ -92,8 +92,8 @@ extern const int OPEN_NOFOLLOW; // SQLITE_OPEN_NOFOLLOW
9292
9393extern const int OK; // /< SQLITE_OK (used by check() bellow)
9494
95- extern const char * VERSION; // /< SQLITE_VERSION string from the sqlite3.h used at compile time
96- extern const int VERSION_NUMBER; // /< SQLITE_VERSION_NUMBER from the sqlite3.h used at compile time
95+ extern const char * const VERSION; // /< SQLITE_VERSION string from the sqlite3.h used at compile time
96+ extern const int VERSION_NUMBER; // /< SQLITE_VERSION_NUMBER from the sqlite3.h used at compile time
9797
9898// / Return SQLite version string using runtime call to the compiled library
9999const char * getLibVersion () noexcept ;
@@ -342,7 +342,7 @@ class Database
342342 *
343343 * @return the sqlite result code.
344344 */
345- int tryExec (const std::string aQueries) noexcept
345+ int tryExec (const std::string& aQueries) noexcept
346346 {
347347 return tryExec (aQueries.c_str ());
348348 }
@@ -403,7 +403,7 @@ class Database
403403 *
404404 * @throw SQLite::Exception in case of error
405405 */
406- bool tableExists (const char * apTableName);
406+ bool tableExists (const char * apTableName) const ;
407407
408408 /* *
409409 * @brief Shortcut to test if a table exists.
@@ -416,7 +416,7 @@ class Database
416416 *
417417 * @throw SQLite::Exception in case of error
418418 */
419- bool tableExists (const std::string& aTableName)
419+ bool tableExists (const std::string& aTableName) const
420420 {
421421 return tableExists (aTableName.c_str ());
422422 }
@@ -566,7 +566,7 @@ class Database
566566 static Header getHeaderInfo (const std::string& aFilename);
567567
568568 // Parse SQLite header data from a database file.
569- Header getHeaderInfo ()
569+ Header getHeaderInfo () const
570570 {
571571 return getHeaderInfo (mFilename );
572572 }
0 commit comments