npm

Need private packages and team management tools?Check out npm Orgs. »

sql-query-runner

2.1.0 • Public • Published

SQL Query Runner

NPM Version NPM Downloads

Run all queries in the supplied file against a Postgres or MySQL database.

Installation

npm install --save sql-query-runner

Usage

Run as a module within another script

queryRunner = require 'sql-query-runner'
queries = ['SELECT 1''SELECT 2']
config =
  username: 'user'
  password: 'pass'
 
queryRunner.run(configqueries)

Run as a standalone script

sql-query-runnner --username=user --password=pass queries.sql

Build

cake build

Keywords

install

npm i sql-query-runner

Downloadsweekly downloads

15

version

2.1.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability