summaryrefslogtreecommitdiff
path: root/plugins/Dbx_sqlite/src/dbintf.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Dbx_sqlite/src/dbintf.cpp')
-rwxr-xr-xplugins/Dbx_sqlite/src/dbintf.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/plugins/Dbx_sqlite/src/dbintf.cpp b/plugins/Dbx_sqlite/src/dbintf.cpp
index 474aaad4a5..9e6cbeb6bb 100755
--- a/plugins/Dbx_sqlite/src/dbintf.cpp
+++ b/plugins/Dbx_sqlite/src/dbintf.cpp
@@ -25,6 +25,8 @@ CDbxSQLite::~CDbxSQLite()
}
}
+/////////////////////////////////////////////////////////////////////////////////////////
+
int CDbxSQLite::Create(const wchar_t *profile)
{
sqlite3 *database = nullptr;
@@ -64,6 +66,8 @@ int CDbxSQLite::Create(const wchar_t *profile)
return 0;
}
+/////////////////////////////////////////////////////////////////////////////////////////
+
int CDbxSQLite::Check(const wchar_t *profile)
{
FILE *hFile = _wfopen(profile, L"rb");
@@ -96,6 +100,8 @@ int CDbxSQLite::Check(const wchar_t *profile)
return EGROKPRF_NOERROR;
}
+/////////////////////////////////////////////////////////////////////////////////////////
+
MDatabaseCommon* CDbxSQLite::Load(const wchar_t *profile, int readonly)
{
sqlite3 *database = nullptr;
@@ -138,6 +144,8 @@ MDatabaseCommon* CDbxSQLite::Load(const wchar_t *profile, int readonly)
return db;
}
+/////////////////////////////////////////////////////////////////////////////////////////
+
BOOL CDbxSQLite::Backup(LPCWSTR profile)
{
sqlite3 *database = nullptr;
@@ -182,6 +190,12 @@ void CDbxSQLite::DBFlush(bool bForce)
m_impl.m_timer.Start(50);
}
+BOOL CDbxSQLite::Flush()
+{
+ DBFlush(true);
+ return ERROR_SUCCESS;
+}
+
BOOL CDbxSQLite::IsRelational()
{
return TRUE;