@@ -92,8 +92,8 @@ extern const int OPEN_NOFOLLOW; // SQLITE_OPEN_NOFOLLOW
92
92
93
93
extern const int OK; // /< SQLITE_OK (used by check() bellow)
94
94
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
97
97
98
98
// / Return SQLite version string using runtime call to the compiled library
99
99
const char * getLibVersion () noexcept ;
@@ -342,7 +342,7 @@ class Database
342
342
*
343
343
* @return the sqlite result code.
344
344
*/
345
- int tryExec (const std::string aQueries) noexcept
345
+ int tryExec (const std::string& aQueries) noexcept
346
346
{
347
347
return tryExec (aQueries.c_str ());
348
348
}
@@ -403,7 +403,7 @@ class Database
403
403
*
404
404
* @throw SQLite::Exception in case of error
405
405
*/
406
- bool tableExists (const char * apTableName);
406
+ bool tableExists (const char * apTableName) const ;
407
407
408
408
/* *
409
409
* @brief Shortcut to test if a table exists.
@@ -416,7 +416,7 @@ class Database
416
416
*
417
417
* @throw SQLite::Exception in case of error
418
418
*/
419
- bool tableExists (const std::string& aTableName)
419
+ bool tableExists (const std::string& aTableName) const
420
420
{
421
421
return tableExists (aTableName.c_str ());
422
422
}
@@ -566,7 +566,7 @@ class Database
566
566
static Header getHeaderInfo (const std::string& aFilename);
567
567
568
568
// Parse SQLite header data from a database file.
569
- Header getHeaderInfo ()
569
+ Header getHeaderInfo () const
570
570
{
571
571
return getHeaderInfo (mFilename );
572
572
}
0 commit comments