Closed freeintelligence closed 6 years ago
Hi.
export class Connect { private db: Database constructor() { this.db = new Database('localhost/database', {}) } async connect(): Promise<any> { return await this.database.connect() } getDb(): Database { return this.db } } await (new Connect().connect())
This makes the connection, but leaves the application on hold, since disconnection with the database is expected.
How to make the application not to wait and close without the need to occupy "disconnect"?
Hi.
This makes the connection, but leaves the application on hold, since disconnection with the database is expected.
How to make the application not to wait and close without the need to occupy "disconnect"?