mirror of
https://github.com/danbulant/mysqlExporterDeno
synced 2026-05-19 04:08:50 +00:00
Show indexes
This commit is contained in:
parent
6dbd602a50
commit
6bbf56202c
1 changed files with 1 additions and 0 deletions
1
index.js
1
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=?
|
||||
|
|
|
|||
Loading…
Reference in a new issue