pg-analyze

1.0.3 • Public • Published

pg-analyze

Determine which tables are used in a PostgreSQL query.

import { tablesUsed } from 'pg-analyze';
 
async function start() {
  var query = 'SELECT * FROM table1, table2, table3';
 
  var tables = await tablesUsed(query, params);
 
  console.log(tables);
}
 
start();

Readme

Keywords

none

Package Sidebar

Install

npm i pg-analyze

Weekly Downloads

11

Version

1.0.3

License

MIT

Last publish

Collaborators

  • richie765