Page MenuHomePhabricator

[web] switch code from `sql.js` API to `.wasm` database module
ClosedPublic

Authored by kamil on Jul 19 2023, 7:05 AM.
Tags
None
Referenced Files
F3343238: D8560.id28835.diff
Fri, Nov 22, 2:46 AM
Unknown Object (File)
Tue, Nov 19, 11:00 AM
Unknown Object (File)
Thu, Nov 7, 6:39 PM
Unknown Object (File)
Tue, Nov 5, 7:07 AM
Unknown Object (File)
Tue, Nov 5, 7:07 AM
Unknown Object (File)
Tue, Nov 5, 7:07 AM
Unknown Object (File)
Tue, Nov 5, 7:07 AM
Unknown Object (File)
Tue, Nov 5, 7:07 AM
Subscribers

Details

Summary

This is very important diff - it starts using .wasm API from SQLiteQueryExecutor instead of sql.js.

We do not have to migrate this content, we will simply take old content from indexedDB and put this to database module (schema is the same).

Depends on D8559

Test Plan

Test everything end-to-end.

Diff Detail

Repository
rCOMM Comm
Branch
wasm-publish
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

kamil held this revision as a draft.
kamil published this revision for review.Jul 19 2023, 9:11 AM

How does this interact with migrations?

EDIT: I talked with @kamil and the native migrations will just run and bump the db version to match the native. But it's fine because the schema between web and native is the same

web/database/worker/db-worker.js
234

Is this needed?

This revision is now accepted and ready to land.Jul 24 2023, 5:35 AM
web/database/worker/db-worker.js
234

it is not, good catch