Skip to content

Commit 6b40372

Browse files
author
Mariano Gappa
authored
Adds beware section
1 parent e171319 commit 6b40372

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,12 @@ echo "SELECT * FROM users WHERE name = 'John'" | sql all
3535
- when more than one database is queried, the resulting rows are prefixed with the database identifier
3636
- the `all` special keyword means "sql to all configured databases"
3737
- `sql` assumes that you have correctly configured SSH keys on all servers you `ssh` to
38+
39+
## Beware!
40+
3841
- please note that `~/.databases.json` will contain your database credentials in plain text; if this is a problem for you, don't use `sql`!
3942
- `sql` is meant for automation of one-time lightweight ad-hoc `SELECT`s on many databases at once; it's not recommended for mission critical bash scripts that do destructive operations on production servers!
43+
- If you close an ongoing `sql` operation, spawned `mysql` and `ssh`->`mysql` processes will soon follow to their deaths, but the underlying mysql server query thread will complete, as long as it takes! https://github.com/marianogappa/sql/issues/7
4044

4145
## Dependencies
4246

0 commit comments

Comments
 (0)