import define from "../../define.js";
import { db } from "../../../../db/postgre.js";
export const meta = {
    requireCredential: true,
    requireModerator: true,
    tags: [
        "admin"
    ]
};
export const paramDef = {
    type: "object",
    properties: {},
    required: []
};
export default define(meta, paramDef, async ()=>{
    const stats = await db.query("SELECT * FROM pg_indexes;").then((recs)=>{
        const res = [];
        for (const rec of recs){
            res.push(rec);
        }
        return res;
    });
    return stats;
});
