DatabaseManager.forPlugin()
Home > @backstage/backend-common
> DatabaseManager
> forPlugin
Generates a PluginDatabaseManager for consumption by plugins.
Signature:
forPlugin(pluginId: string, deps?: {
lifecycle: LifecycleService;
pluginMetadata: PluginMetadataService;
}): PluginDatabaseManager;
Parameters
Parameter | Type | Description |
---|---|---|
pluginId | string | The plugin that the database manager should be created for. Plugin names should be unique as they are used to look up database config overrides under backend.database.plugin . |
deps | { lifecycle: LifecycleService; pluginMetadata: PluginMetadataService; } | (Optional) |
Returns: