Improve SQLCipher/SQLite support

When compiled with SQLCipher it is now capable of handling databases
  created by SQLite-only versions
Add support for SQLCipher on Android arm64
This commit is contained in:
Gioacchino Mazzurco 2019-08-31 16:22:24 +02:00
parent 9f04e1c9c2
commit 6edf503ae0
No known key found for this signature in database
GPG key ID: A1FBCA3872E87051
3 changed files with 135 additions and 96 deletions

View file

@ -19,8 +19,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>. *
* *
*******************************************************************************/
#ifndef RSSQLITE_H
#define RSSQLITE_H
#pragma once
#ifdef NO_SQLCIPHER
#include <sqlite3.h>
@ -32,9 +31,10 @@
#include <set>
#include <list>
#include <map>
#include "rsdbbind.h"
#include "contentvalue.h"
#include "util/rsdebug.h"
#include "util/rsdbbind.h"
#include "util/contentvalue.h"
class RetroCursor;
@ -202,6 +202,8 @@ private:
sqlite3* mDb;
const std::string mKey;
RS_SET_CONTEXT_DEBUG_LEVEL(3)
};
/*!
@ -318,5 +320,3 @@ public:
private:
sqlite3_stmt* mStmt;
};
#endif // RSSQLITE_H