This commit is contained in:
Adria Navarro 2023-06-19 15:33:10 +01:00
parent e21dca5582
commit c44b10eadf
1 changed files with 3 additions and 3 deletions

View File

@ -329,8 +329,8 @@ class MySQLIntegration extends Sql implements DatasourcePlus {
async getExternalSchema() {
try {
const [databaseResult] = await this.internalQuery({
sql: `SHOW CREATE DATABASE ${this.config.database}`,
})
sql: `SHOW CREATE DATABASE ${this.config.database}`,
})
let dumpContent = [databaseResult["Create Database"]]
const tablesResult = await this.internalQuery({
@ -350,7 +350,7 @@ class MySQLIntegration extends Sql implements DatasourcePlus {
}
const schema = dumpContent.join("\n")
return schema
return schema
} finally {
this.disconnect()
}