[android] explicitly set temp directory for SQLite3

This commit is contained in:
Konstantin Käfer
2018-09-18 17:39:44 +02:00
committed by Łukasz Paczos
parent 4148a5a91a
commit 4004a85a79
3 changed files with 10 additions and 0 deletions

View File

@@ -40,6 +40,10 @@ static_assert(mbgl::underlying_type(ResultCode::Auth) == SQLITE_AUTH, "error");
static_assert(mbgl::underlying_type(ResultCode::Range) == SQLITE_RANGE, "error");
static_assert(mbgl::underlying_type(ResultCode::NotADB) == SQLITE_NOTADB, "error");
void setTempPath(const std::string& path) {
sqlite3_temp_directory = sqlite3_mprintf("%s", path.c_str());
}
class DatabaseImpl {
public:
DatabaseImpl(sqlite3* db_)