Skip to content

grigori-gru/sql-to-queries-array

Repository files navigation

sql-to-queries-array

NO dependency

Build Status

Convert sql file to array of queries

Install

npm i sql-to-queries-array

How to use

You can use it with either with one SQL file or directory.

With file

const arr = await sqlToArray(pathToFile);

With directory

If you need to include only some names of files you shold add that base name, for example release as second param.

const arr = await sqlToArray(pathToDirectory, nameOfExpectedFiles);

Test

npm run test

About

Convert sql file to array of queries

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published