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
F3174872: D8560.id29134.diff
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
Unknown Object (File)
Tue, Nov 5, 7:04 AM
Unknown Object (File)
Mon, Nov 4, 8:59 PM
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
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 ↗(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