Build Service Database

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

Adobe 17489a0 644 B Updated 142 repo stars

File contents

Create ecs/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/ecs/services.md rule.

adobe/data/tree/main/.agents/skills/adobe-data-ai/build-service-database commit 17489a0875

Frequently asked questions

npx skillmds@latest add adobe/build-service-database-2