diff --git a/changelog/19.0/19.0.0/summary.md b/changelog/19.0/19.0.0/summary.md index 5d413c25cae..71d172f1541 100644 --- a/changelog/19.0/19.0.0/summary.md +++ b/changelog/19.0/19.0.0/summary.md @@ -6,6 +6,8 @@ - **[Deprecations and Deletions](#deprecations-and-deletions)** - **[Docker](#docker)** - [New MySQL Image](#mysql-image) + - **[VTGate](#vtgate)** + - [`SHOW VSCHEMA KEYSPACES` Query](#show-vschema-keyspaces) ## Major Changes @@ -21,3 +23,23 @@ In `v19.0` the Vitess team is shipping a new image: `vitess/mysql`. This lightweight image is a replacement of `vitess/lite` to only run `mysqld`. Several tags are available to let you choose what version of MySQL you want to use: `vitess/mysql:8.0.30`, `vitess/mysql:8.0.34`. + +### VTGate + +#### `SHOW VSCHEMA KEYSPACES` Query + +A SQL query, `SHOW VSCHEMA KEYSPACES` is now supported in Vitess. This query prints the vschema information +for all the keyspaces. It is useful for seeing the foreign key mode, whether the keyspace is sharded, and if there is an +error in the keyspace. + +An example output of the query looks like - +```sql +mysql> show vschema keyspaces; ++---------------+---------+------------------+-------+ +| Keyspace Name | Sharded | Foreign Key Mode | Error | ++---------------+---------+------------------+-------+ +| uks | false | managed | | +| ks | true | managed | | ++---------------+---------+------------------+-------+ +2 rows in set (0.00 sec) +``` diff --git a/go/vt/sqlparser/parse_test.go b/go/vt/sqlparser/parse_test.go index 1837a104e4c..ce5a5e14a3a 100644 --- a/go/vt/sqlparser/parse_test.go +++ b/go/vt/sqlparser/parse_test.go @@ -2369,6 +2369,8 @@ var ( input: "show vitess_targets", }, { input: "show vschema tables", + }, { + input: "show vschema keyspaces", }, { input: "show vschema vindexes", }, {