1.9 KiB
1.9 KiB
@backstage/backend-test-utils
0.1.4
Patch Changes
f7134c368: bump sqlite3 to 5.0.1- Updated dependencies
- @backstage/backend-common@0.8.5
0.1.3
Patch Changes
-
772dbdb51: DeprecatesSingleConnectionDatabaseManagerand provides an API compatible database connection manager,DatabaseManager, which allows developers to configure database connections on a per plugin basis.The
backend.databaseconfig path allows you to setprefixto use an alternate prefix for automatically generated database names, the default isbackstage_plugin_. Usebackend.database.plugin.<pluginId>to set plugin specific database connection configuration, e.g.backend: database: client: 'pg', prefix: 'custom_prefix_' connection: host: 'localhost' user: 'foo' password: 'bar' plugin: catalog: connection: database: 'database_name_overriden' scaffolder: client: 'sqlite3' connection: ':memory:'Migrate existing backstage installations by swapping out the database manager in the
packages/backend/src/index.tsfile as shown below:import { - SingleConnectionDatabaseManager, + DatabaseManager, } from '@backstage/backend-common'; // ... function makeCreateEnv(config: Config) { // ... - const databaseManager = SingleConnectionDatabaseManager.fromConfig(config); + const databaseManager = DatabaseManager.fromConfig(config); // ... } -
Updated dependencies
- @backstage/backend-common@0.8.3
- @backstage/cli@0.7.1