From 6bbf56202c2d9c6e25dfb471a4f65e77925ec5ba Mon Sep 17 00:00:00 2001 From: Daniel Bulant Date: Tue, 14 Apr 2020 19:01:25 +0200 Subject: [PATCH] Show indexes --- index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/index.js b/index.js index 95d15c9..edcbd36 100644 --- a/index.js +++ b/index.js @@ -71,6 +71,7 @@ app.get("/tables", (req, res) => { }; try { obj[r].columns = await query(pool, "SHOW FULL COLUMNS FROM " + r); + obj[r].indexes = await query(pool, "SHOW INDEXES FROM " + r); obj[r].comment = await query(pool, `SELECT table_comment FROM INFORMATION_SCHEMA.TABLES WHERE table_schema=?