tursodatabase / turso-docs

Turso Documentation
https://docs.turso.tech
MIT License
11 stars 49 forks source link

Document piping to `turso db shell` #60

Closed penberg closed 8 months ago

penberg commented 1 year ago

You can pipe SQL commands to the shell with:

echo "SELECT 1;" | turso db shell endless-odin

Let's document that for discoverability.

CodingDoug commented 1 year ago

The fact that you can do this doesn't really mean that someone should do this. The problem right now is that the handling of input and output is a bit of a mess right now from the perspective of someone trying to send SQL non-interactively via stdin. What the CLI needs to do is: