0.2.1 • Published 4 years ago

knex-list-db-table v0.2.1

Weekly downloads
4
License
ISC
Repository
github
Last release
4 years ago

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);
})
0.2.1

4 years ago

0.2.0

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago