diff options
author | George Hazan <ghazan@miranda.im> | 2021-01-18 21:57:04 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2021-01-18 21:57:04 +0300 |
commit | a0a5ee70f1e5021df606a01a212144f4fe955daa (patch) | |
tree | 5a2e33c2f6b1481318f11a9c38e0732cb53be802 /plugins/Dbx_sqlite/src | |
parent | 007d5cd3398c7e82a5bbfe29131323c7c2ea379b (diff) |
fixes #2698 (Add current db format (mdbx, sqlite) to version info report)
Diffstat (limited to 'plugins/Dbx_sqlite/src')
-rwxr-xr-x | plugins/Dbx_sqlite/src/dbintf.h | 2 | ||||
-rw-r--r-- | plugins/Dbx_sqlite/src/main.cpp | 5 |
2 files changed, 7 insertions, 0 deletions
diff --git a/plugins/Dbx_sqlite/src/dbintf.h b/plugins/Dbx_sqlite/src/dbintf.h index 123f950e72..98b8765195 100755 --- a/plugins/Dbx_sqlite/src/dbintf.h +++ b/plugins/Dbx_sqlite/src/dbintf.h @@ -130,6 +130,8 @@ public: STDMETHODIMP_(BOOL) Compact() override; STDMETHODIMP_(BOOL) Backup(LPCWSTR) override; + STDMETHODIMP_(DATABASELINK*) GetDriver() override; + STDMETHODIMP_(DB::EventCursor*) EventCursor(MCONTACT hContact, MEVENT hDbEvent) override; STDMETHODIMP_(DB::EventCursor*) EventCursorRev(MCONTACT hContact, MEVENT hDbEvent) override; }; diff --git a/plugins/Dbx_sqlite/src/main.cpp b/plugins/Dbx_sqlite/src/main.cpp index 8b2c69cfb6..e3fe8b51d9 100644 --- a/plugins/Dbx_sqlite/src/main.cpp +++ b/plugins/Dbx_sqlite/src/main.cpp @@ -37,6 +37,11 @@ static DATABASELINK dblink = &CDbxSQLite::Load, }; +STDMETHODIMP_(DATABASELINK *) CDbxSQLite::GetDriver() +{ + return &dblink; +} + int CMPlugin::Load() { RegisterDatabasePlugin(&dblink); |