fix: limit database manager exports and update changeset
Signed-off-by: Minn Soe <contributions@minn.io>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user