diff options
author | Isaac Bennetch <bennetch@gmail.com> | 2019-04-06 22:32:24 -0400 |
---|---|---|
committer | Isaac Bennetch <bennetch@gmail.com> | 2019-04-06 22:32:24 -0400 |
commit | 23c828495ed855479902663eca71a15ef28bb365 (patch) | |
tree | 2c799410b4eac6e747d2a45c7bd3da07e2f7457f | |
parent | 237edc26a093653e3013421cd808e72b8a3b28b6 (diff) | |
download | sql-parser-23c828495ed855479902663eca71a15ef28bb365.zip sql-parser-23c828495ed855479902663eca71a15ef28bb365.tar.gz sql-parser-23c828495ed855479902663eca71a15ef28bb365.tar.bz2 |
Add some documentation about the new ability to read from stdin, introduced with #239
Signed-off-by: Isaac Bennetch <bennetch@gmail.com>
-rw-r--r-- | README.md | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -47,6 +47,12 @@ Command line utility to tokenize SQL query: ./vendor/bin/tokenize-query --query "SELECT 1" ``` +All commands are able to parse input from stdin (standard in), such as: + +```sh +echo "SELECT 1" | ./vendor/bin/highlight-query +cat example.sql | ./vendor/bin/lint-query +``` ### Formatting SQL query ```php |