We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 392dd97 commit a07f287Copy full SHA for a07f287
src/xeus_sqlite_interpreter.cpp
@@ -97,6 +97,16 @@ namespace xeus_sqlite
97
m_db = std::make_unique<SQLite::Database>(m_db_path,
98
SQLite::OPEN_READWRITE |
99
SQLite::OPEN_CREATE);
100
+
101
+ #ifdef XSQL_EMSCRIPTEN_WASM_BUILD
102
+ // Force SQlite to write a well formed db to FS
103
+ m_db->exec("CREATE TABLE __xeus_sqlite_init (id INTEGER);");
104
+ m_db.reset();
105
+ m_db = std::make_unique<SQLite::Database>(m_db_path, SQLite::OPEN_READWRITE);
106
+ m_db->exec("DROP TABLE __xeus_sqlite_init;");
107
108
109
+ #endif
110
}
111
112
void interpreter::delete_db()
0 commit comments