mirror of
https://github.com/cuberite/SQLiteCpp.git
synced 2025-08-04 09:46:02 -04:00
Database and Statement objects must not be copied
This commit is contained in:
parent
9658ee7e16
commit
39db797186
@ -73,6 +73,12 @@ public:
|
|||||||
return mFilename;
|
return mFilename;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private:
|
||||||
|
// Database must be non copyable
|
||||||
|
Database(void);
|
||||||
|
Database(const Database&);
|
||||||
|
Database& operator=(const Database&);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
sqlite3* mpSQLite; //!< Pointer to SQLite Database Connection Handle
|
sqlite3* mpSQLite; //!< Pointer to SQLite Database Connection Handle
|
||||||
std::string mFilename; //!< UTF-8 filename used to open the database
|
std::string mFilename; //!< UTF-8 filename used to open the database
|
||||||
|
@ -137,6 +137,11 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
// Database must be non copyable
|
||||||
|
Statement(void);
|
||||||
|
Statement(const Statement&);
|
||||||
|
Statement& operator=(const Statement&);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Check if aRet equal SQLITE_OK, else throw a SQLite::Exception with the SQLite error message
|
* @brief Check if aRet equal SQLITE_OK, else throw a SQLite::Exception with the SQLite error message
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user