Run a SQL query passed through stdin

``` echo "SHOW PROCESSLIST" | sqleton run --fields Id,User,Host - ```

Sections

Terminology & Glossary
πŸ“– Documentation
Navigation
35 sectionsv0.1
πŸ“„ Run a SQL query passed through stdin β€” glaze help run-stdin
run-stdin

Run a SQL query passed through stdin

``` echo "SHOW PROCESSLIST" | sqleton run --fields Id,User,Host - ```

Examplemysqlrun

You can pass queries into sqleton run by passing "-" as filename.

❯ echo "SHOW PROCESSLIST" | sqleton run --fields Id,User,Host -
+----------+-------------------+-------------------+
| Id       | User              | Host              |
+----------+-------------------+-------------------+
| 39636346 | ttc_analytics_dev | 172.31.20.6:40120 |
+----------+-------------------+-------------------+