hasHostClientDatabaseTables property

bool get hasHostClientDatabaseTables

Whether the host project has models that require client-side database support.

Only host-owned table models with ModelDatabaseDefinition.client or ModelDatabaseDefinition.all count. Shared-package and module models are merged into the client schema once this gate passes, but do not enable client-side database support on their own.

Implementation

bool get hasHostClientDatabaseTables => whereType<ModelClassDefinition>().any(
  (model) => model.isHostClientDatabaseTable,
);