Skip to content
Permalink
Browse files

Add interrupt method

  • Loading branch information
pblottiere committed Mar 2, 2018
1 parent cf53a4c commit 86d66c73a9a3941e10121232eee31fedbacf34fd
@@ -66,6 +66,17 @@ QgsScopedSqlite::~QgsScopedSqlite()

sqlite3 *QgsScopedSqlite::get() const { return db_; }

bool QgsScopedSqlite::interrupt()
{
bool rc = false;
if ( db_ )
{
sqlite3_interrupt( db_ );
rc = true;
}
return rc;
}

sqlite3 *QgsScopedSqlite::release()
{
sqlite3 *pp = db_;
@@ -40,6 +40,7 @@ class QgsScopedSqlite
QgsScopedSqlite &operator=( QgsScopedSqlite &other );
~QgsScopedSqlite();

bool interrupt();
sqlite3 *get() const;
sqlite3 *release();
void reset( sqlite3 *db );

0 comments on commit 86d66c7

Please sign in to comment.
You can’t perform that action at this time.