[web-db] initialize SQLite database
Summary:
Creating sql.js object which is using SQLite wasm file.
Depends on D6992
Test Plan:
Run this code:
declare var sqljsFilename: string; const rawWebDbWorker = new SharedWorker('/worker/database'); const webDBWorker = new WorkerConnectionProxy( rawWebDbWorker.port, error => { console.error(error); }, ); const origin = window.location.origin; await webDBWorker.scheduleOnWorker({ type: workerRequestMessageTypes.INIT, sqljsFilePath: `${origin}/compiled/webworkers`, sqljsFilename, });
And check if db version was properly logged on web and desktop
Reviewers: michal, tomek
Reviewed By: tomek
Subscribers: ashoat, atul
Differential Revision: https://phab.comm.dev/D6993