UNPKG

@onurege3467/zerohelper

Version:

ZeroHelper is a versatile JavaScript library offering helper functions and database utilities for developers. It supports MongoDB, MySQL, SQLite, Redis, and PostgreSQL.

8 lines (6 loc) 252 B
"use strict"; const errors = require('../errors/strings.js'); module.exports = async function(){ let tables = await this.query("SHOW TABLES;"); return tables.map(m => m["Tables_in_" + this.db.pool.config.connectionConfig.database.toLowerCase()]); }