WebFramework v3.0.12
Web framework for C++.
|
Wrapper class for sqlite3 library. More...
#include <SQLiteDatabase.h>
Public Member Functions | |
SQLiteDatabase (std::string_view databaseName) | |
SQLiteDatabase (SQLiteDatabase &&other) noexcept=default | |
SQLiteDatabase (const SQLiteDatabase &)=delete | |
Can't copy connection handle from another database. | |
SQLiteDatabase & | operator= (const SQLiteDatabase &)=delete |
Can't copy connection handle from another database. | |
SQLiteDatabase & | operator= (SQLiteDatabase &&other) noexcept=default |
Move another database. | |
const std::string & | getDatabaseName () const |
Getter for databaseName. | |
void | close () |
Close connection with database. | |
bool | isOpen () const |
Is database connection open. | |
const sqlite3 *const | operator* () const |
Getter for db. | |
Friends | |
class | SQLiteDatabaseModel |
Wrapper class for sqlite3 library.
Providing connect to sqlite3 database
Definition at line 35 of file SQLiteDatabase.h.
void framework::sqlite::SQLiteDatabase::close | ( | ) |
Close connection with database.
Definition at line 36 of file SQLiteDatabase.cpp.
const string & framework::sqlite::SQLiteDatabase::getDatabaseName | ( | ) | const |
bool framework::sqlite::SQLiteDatabase::isOpen | ( | ) | const |
Is database connection open.
Definition at line 41 of file SQLiteDatabase.cpp.
const sqlite3 *const framework::sqlite::SQLiteDatabase::operator* | ( | ) | const |
Getter for db.
Definition at line 46 of file SQLiteDatabase.cpp.
|
defaultnoexcept |
Move another database.
other | another SQLiteDatabase instance |
|
friend |
Definition at line 91 of file SQLiteDatabase.h.