sqlfile-loader
Version:
Basic SQL file loader with uglify option.
39 lines (26 loc) • 663 B
Markdown
file loader with uglify option.
```sh
$ npm i --save sqlfile-loader
```
or
```sh
$ yarn add sqlfile-loader
```
```js
const init = require('sqlfile-loader');
let sqlfile = './example.sql'; // Path to an sql file
let opts = {uglify: true};
let result = sqlfileLoader(sqlfile, opts);
console.log('result:', result);
```
Basic SQL file loader with uglify option.
- **string** `sqlfile`: The full file path to sql file.
- **object** `opts`: Optional object used to set uglify true option.
- **string** Content of sql file.
> Basic SQL