Reset the database connection forcing flushing the db status. More...
#include <UpdateDBConnection.h>
Classes | |
class | UpdateDBConnection |
Update the reference to the DB Connection, to ensure synchronization with disk. More... | |
Public Member Functions | |
UpdateDBConnection (SQLite3DB &db, std::string filename, int flags=SQLITE_OPEN_READWRITE|SQLITE_OPEN_CREATE|SQLITE_OPEN_URI) | |
Constructor. More... | |
void | execute () override |
Execute the algorithm, cleaning the database. More... | |
Public Attributes | |
argtypes | |
restype | |
Reset the database connection forcing flushing the db status.
In the interaction with Python or other frameworks it is sometimes necessary to ensure db synchronization with disk or shared memory. This can be achieved refreshing the connection to the database, by closing it and reopening.
WARNING! Executing UpdateDBConnection drops TEMPORARY tables and views.
Definition at line 30 of file UpdateDBConnection.h.
SQLamarr::UpdateDBConnection::UpdateDBConnection | ( | SQLite3DB & | db, |
std::string | filename, | ||
int | flags = SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE | SQLITE_OPEN_URI |
||
) |
Constructor.
db | Reference to the database |
filename | Filename or URI of the (possibly new) connection to the database |
flags | Flags |
Definition at line 28 of file UpdateDBConnection.cpp.
|
overridevirtual |
Execute the algorithm, cleaning the database.
Implements SQLamarr::Transformer.
Definition at line 41 of file UpdateDBConnection.cpp.
SQLamarr.UpdateDBConnection.argtypes |
Definition at line 15 of file UpdateDBConnection.py.
SQLamarr.UpdateDBConnection.restype |
Definition at line 16 of file UpdateDBConnection.py.