summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIsaac Bennetch <bennetch@gmail.com>2019-04-06 22:32:24 -0400
committerIsaac Bennetch <bennetch@gmail.com>2019-04-06 22:32:24 -0400
commit23c828495ed855479902663eca71a15ef28bb365 (patch)
tree2c799410b4eac6e747d2a45c7bd3da07e2f7457f
parent237edc26a093653e3013421cd808e72b8a3b28b6 (diff)
downloadsql-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.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/README.md b/README.md
index b10f87b..efa56f6 100644
--- a/README.md
+++ b/README.md
@@ -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