Show indexes

This commit is contained in:
Daniel Bulant 2020-04-14 19:01:25 +02:00
parent 6dbd602a50
commit 6bbf56202c

View file

@ -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=?