OptionalcloseGracefully close any connections.
Create a new record; returns the stored entity including its id.
Delete a record. Returns true if a record was deleted.
Retrieve all records of an entity for a tenant.
OptionaluseReceives the resolved isolation strategy once, during register().
Optional so a store may ignore isolation metadata entirely.
Tenant-scoped data-store port.
Implemented by the multi-tenancy plugin's shipped
MemoryTenantDataStore(zero-dependency default), bydatabase-plugin'sDatabaseTenantDataStore(the bridge overIDatabaseService, M101c V8-8), and by application- provided backends that consume real databases.Promoted from
@setu-ts/multi-tenancy-plugintocommonso a package that implements a store (database-plugin) can name the port without importing the plugin that declares its consumer (AI_GUIDELINES §2.2); the plugin re-exports the type so existing imports keep compiling.Since
0.9.0