tjrs la CI/CD
continuous-integration/drone/push Build is passing Details

CI/CD
Thomas Chazot 1 year ago
parent 11365b06a4
commit 96e4d50db4

@ -36,23 +36,6 @@ class DatabaseService {
await this.createTables() await this.createTables()
console.log("create table") console.log("create table")
} }
try {
// Query to show all tables in the database
const showTablesQuery = 'SHOW TABLES';
// Execute the query
const [rows, fields] = await this.client.promise().query(showTablesQuery);
// Extract table names from the result
const tableNames = rows.map(row => row[`Tables_in_${dbConfig.database}`]);
console.log('Tables in the database:', tableNames);
} catch (error) {
console.error('Error fetching tables:', error);
} finally {
// Close the connection after executing the query
}
resolve(); resolve();
} }
}); });

Loading…
Cancel
Save