You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

knex-list-db-table

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

knex-list-db-table

show databases and show tables for knex and mysql

0.2.1
latest
Source
npmnpm
Version published
Weekly downloads
19
-29.63%
Maintainers
1
Weekly downloads
 
Created
Source

Show databases and tables for knex

Mysql only.

ussage

let parseUri=require("dburi2config");

let config=parseUri("mysql://root@localhost:3306/sakila?encrypt=true&param1=value1");

//console.log(config);
var knex = require('knex')({
  client: "mysql",
  connection: config
});

let listTablesAsync=require("../index").listTablesAsync;
let listDatabasesAsync=require("../index").listDatabasesAsync;


listTablesAsync(knex).then((rst)=>{
   console.log("databases",rst);
})

FAQs

Package last updated on 10 May 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts