Build Service Database

Build a feature's service-database — db-bound service factories. If the feature exposes services.

Adobe Updated 1.6k repo stars

File contents

Create services/main-service/service-database/: service-database.ts (extends the previous layer, registers the services facet). Two forms:

  • db-bound factories create<Name>Service(db, …) in service-database/services/ (one per file + barrel), for services that read db.observe.* / call db.transactions.*; or
  • plain async ports registered straight from the feature's services/ contracts.

Comes after computed-database.

The how is in the auto-loading features/services/main-service/services.md rule.

adobe/data commit 4cd5850308

Frequently asked questions

npx get-skill add adobe/build-service-database