Lint
This commit is contained in:
parent
e21dca5582
commit
c44b10eadf
|
@ -329,8 +329,8 @@ class MySQLIntegration extends Sql implements DatasourcePlus {
|
||||||
async getExternalSchema() {
|
async getExternalSchema() {
|
||||||
try {
|
try {
|
||||||
const [databaseResult] = await this.internalQuery({
|
const [databaseResult] = await this.internalQuery({
|
||||||
sql: `SHOW CREATE DATABASE ${this.config.database}`,
|
sql: `SHOW CREATE DATABASE ${this.config.database}`,
|
||||||
})
|
})
|
||||||
let dumpContent = [databaseResult["Create Database"]]
|
let dumpContent = [databaseResult["Create Database"]]
|
||||||
|
|
||||||
const tablesResult = await this.internalQuery({
|
const tablesResult = await this.internalQuery({
|
||||||
|
@ -350,7 +350,7 @@ class MySQLIntegration extends Sql implements DatasourcePlus {
|
||||||
}
|
}
|
||||||
|
|
||||||
const schema = dumpContent.join("\n")
|
const schema = dumpContent.join("\n")
|
||||||
return schema
|
return schema
|
||||||
} finally {
|
} finally {
|
||||||
this.disconnect()
|
this.disconnect()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue