diff --git a/packages/cli/src/Db.ts b/packages/cli/src/Db.ts index af274427e2..1e0b168688 100644 --- a/packages/cli/src/Db.ts +++ b/packages/cli/src/Db.ts @@ -126,12 +126,6 @@ export function getConnectionOptions(dbType: DatabaseType): ConnectionOptions { } } -const openConnection = async (options: ConnectionOptions) => { - connection = new Connection(options); - await connection.initialize(); - Container.set(Connection, connection); -}; - export async function init(testConnectionOptions?: ConnectionOptions): Promise { if (connectionState.connected) return; @@ -160,7 +154,9 @@ export async function init(testConnectionOptions?: ConnectionOptions): Promise> { AuthIdentity: AuthIdentityRepository; AuthProviderSyncHistory: AuthProviderSyncHistoryRepository; Credentials: CredentialsRepository;