HomePhabricator
Diffusion Comm 4ec416f4717d

[web-db] add database module provider

Description

[web-db] add database module provider

Summary:
Making database connection accessible from entire web app

Depends on D7188

Test Plan:
Check how it behaves in multiple places in web app, try sending some worker messages, e.g.:

databaseModule
  .schedule({
    type: workerRequestMessageTypes.GET_CLIENT_STORE,
  })
  .then(e => {
    console.log(e.store.drafts);
  })
  .catch(e => {
    console.error(e);
  });

Reviewers: michal, tomek

Reviewed By: tomek

Subscribers: ashoat, atul

Differential Revision: https://phab.comm.dev/D7189

Details

Provenance
kamilAuthored on Mar 25 2023, 10:03 AM
Reviewer
tomek
Differential Revision
D7189: [web-db] add database module provider
Parents
rCOMM852d009eb408: [web-db] support SQLite for staff and non-mobile browsers
Branches
Unknown
Tags
Unknown