不要怂,就是干,撸起袖子干!

Commit 1e1196de by Esteban Ibarra Committed by Sushant

fix(typings): add getDatabaseName (#11431) (#11614)

1 parent 793ae539
......@@ -1067,6 +1067,12 @@ export class Sequelize extends Hooks {
public getDialect(): string;
/**
* Returns the database name.
*/
public getDatabaseName() : string;
/**
* Returns an instance of QueryInterface.
*/
public getQueryInterface(): QueryInterface;
......
......@@ -20,6 +20,8 @@ export const sequelize = new Sequelize({
}
});
const databaseName = sequelize.getDatabaseName();
const conn = sequelize.connectionManager;
// hooks
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!