@verycrazydog/mysql-parser
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -9,2 +9,6 @@ # Changelog | ||
## [1.0.1] - 2020-04-05 | ||
### Changed | ||
- Update README | ||
## [1.0.0] - 2020-04-05 | ||
@@ -16,3 +20,4 @@ ### Added | ||
[Unreleased]: https://github.com/VeryCrazyDog/mysql-parser/compare/1.0.0...HEAD | ||
[Unreleased]: https://github.com/VeryCrazyDog/mysql-parser/compare/1.0.1...HEAD | ||
[1.0.1]: https://github.com/VeryCrazyDog/mysql-parser/compare/1.0.0...1.0.1 | ||
[1.0.0]: https://github.com/VeryCrazyDog/mysql-parser/releases/tag/1.0.0 |
{ | ||
"name": "@verycrazydog/mysql-parser", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Parser for MySQL statements", | ||
@@ -41,4 +41,4 @@ "engines": { | ||
"parser", | ||
"parse" | ||
"split" | ||
] | ||
} |
@@ -5,3 +5,12 @@ # @verycrazydog/mysql-parser | ||
[![Version on npm]][mysql-parser] | ||
[![Build status]][Build workflow] | ||
## Install | ||
``` | ||
npm install @verycrazydog/mysql-parser | ||
``` | ||
## Usage | ||
@@ -21,3 +30,6 @@ Split into an array of MySQL statement, one statement per array item | ||
`) | ||
// Print [ 'SELECT 1', 'SELECT 2', 'SELECT 3', 'SELECT 4', 'SELECT 5', 'SELECT 6' ] | ||
// Print [ | ||
// 'SELECT 1', 'SELECT 2', 'SELECT 3', | ||
// 'SELECT 4', 'SELECT 5', 'SELECT 6' | ||
// ] | ||
console.log(splitResult) | ||
@@ -39,3 +51,8 @@ ``` | ||
`, { multipleStatements: true }) | ||
// Print [ "SELECT 1;\nSELECT 2;", "SELECT 3", "SELECT 4", "SELECT 5;\nSELECT 6;" ] | ||
// Print [ | ||
// "SELECT 1;\nSELECT 2;", | ||
// "SELECT 3", | ||
// "SELECT 4", | ||
// "SELECT 5;\nSELECT 6;" | ||
// ] | ||
console.log(JSON.stringify(splitResult)) | ||
@@ -52,3 +69,4 @@ ``` | ||
- [Support DELIMITER syntax issue][1] on Node.js module [mysql][mysqljs/mysql]. | ||
- [MySQL parser implementation][2] in VS Code extension [vscode-database]. | ||
- [MySQL parser implementation][2] and [test cases implementation][3] in VS Code extension | ||
[vscode-database]. | ||
@@ -59,3 +77,8 @@ | ||
[2]: https://github.com/Bajdzis/vscode-database/blob/1cbe33bd63330d08c931fc8ef46d199f0c8ae597/src/extension/engine/mysql-pass.ts | ||
[3]: https://github.com/Bajdzis/vscode-database/blob/1cbe33bd63330d08c931fc8ef46d199f0c8ae597/src/extension/engine/mysql.spec.ts | ||
[Build status]: https://img.shields.io/github/workflow/status/VeryCrazyDog/mysql-parser/Node.js%20CI | ||
[Build workflow]: https://github.com/VeryCrazyDog/mysql-parser/actions?query=workflow%3A%22Node.js+CI%22 | ||
[mysqljs/mysql]: https://github.com/mysqljs/mysql | ||
[mysql-parser]: https://www.npmjs.com/package/@verycrazydog/mysql-parser | ||
[Version on npm]: https://img.shields.io/npm/v/@verycrazydog/mysql-parser | ||
[vscode-database]: https://github.com/Bajdzis/vscode-database |
21719
80