fix: limit database manager exports and update changeset

Signed-off-by: Minn Soe <contributions@minn.io>
This commit is contained in:
Minn Soe
2021-06-15 17:50:25 +01:00
parent a4a96e424a
commit 1753dae28a
3 changed files with 5 additions and 12 deletions
+3 -3
View File
@@ -1,7 +1,7 @@
---
'@backstage/backend-common': minor
'@backstage/create-app': minor
'@backstage/backend-test-utils': minor
'@backstage/backend-common': patch
'@backstage/create-app': patch
'@backstage/backend-test-utils': patch
---
Deprecates `SingleConnectionDatabaseManager` and provides an API compatible database
-8
View File
@@ -104,14 +104,6 @@ export function createServiceBuilder(_module: NodeModule): ServiceBuilderImpl;
// @public (undocumented)
export function createStatusCheckRouter(options: StatusCheckRouterOptions): Promise<express.Router>;
// @public
export interface DatabaseConnector {
createClient(dbConfig: Config, overrides?: Partial<Knex.Config>): Knex;
createNameOverride(name: string): Partial<Knex.Config>;
ensureDatabaseExists?(dbConfig: Config, ...databases: Array<string>): Promise<void>;
parseConnectionString(connectionString: string, client?: string): Knex.StaticConnectionConfig;
}
// @public (undocumented)
export class DatabaseManager {
forPlugin(pluginId: string): PluginDatabaseManager;
@@ -15,6 +15,7 @@
*/
export * from './connection';
export * from './types';
export * from './SingleConnection';
export * from './DatabaseManager';
export type { PluginDatabaseManager } from './types';