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
F3373310: D8560.id29133.diff
Tue, Nov 26, 8:58 AM
F3372817: D8560.id29134.diff
Tue, Nov 26, 8:05 AM
F3370184: D8560.diff
Tue, Nov 26, 1:17 AM
Unknown Object (File)
Fri, Nov 22, 5:57 PM
Unknown Object (File)
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
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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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 ↗(On Diff #28835)

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 ↗(On Diff #28835)

it is not, good catch