Skip to content

Commit 94f93e8

Browse files
author
Irene Alvarado
committed
Close sql connection
1 parent 4be2496 commit 94f93e8

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/backends/sql.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,14 @@ export default async function fetchSQL(config: SQLConfig): Promise<string> {
8383
throw error
8484
}
8585

86+
core.info('Closing database')
87+
try {
88+
await connection.close();
89+
} catch (error) {
90+
core.setFailed(`Unable to close database: ${error.message}`)
91+
throw error
92+
}
93+
8694
const outfile = `${config.outfile_basename}.${config.sql_format}`
8795
try {
8896
switch (config.sql_format) {

0 commit comments

Comments
 (0)