You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 21, 2023. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+26Lines changed: 26 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,6 +32,8 @@ Usage of ccql:
32
32
MySQL password
33
33
-q string
34
34
Query/queries to execute
35
+
-s string
36
+
List of databases to query from; overrides -d, prints schema name to output
35
37
-t float
36
38
Connect timeout seconds
37
39
-u string
@@ -58,6 +60,16 @@ You may provide a query or a list of queries in the following ways:
58
60
Queries are delimited by a semicolon (`;`). The last query may, but does not have to, be terminated by a semicolon.
59
61
Quotes are respected, up to a reasonable level. It is valid to include a semicolon in a quoted text, as in `select 'single;query'`. However `ccql` does not employ a full blown parser, so please don't overdo it. For example, the following may not be parsed correctly: `select '\';\''`. You get it.
60
62
63
+
#### Schemas
64
+
65
+
You may either provide:
66
+
67
+
- An implicit, default schema via `-d schema_name`
68
+
- Schema name is not visible on output.
69
+
- Or explicit list of schemas via `-s "schema_1,schema_2[,schema_3...]"` (overrides `-d`)
70
+
- Queries are executed per host, per schema.
71
+
- Schema name printed as output column.
72
+
61
73
#### Credentials input
62
74
63
75
You may provide credentials in the following ways:
@@ -144,6 +156,20 @@ Set `sync_binlog=0` on all intermediate masters:
0 commit comments