Skip to content

Commit

Permalink
feat: add summary changes
Browse files Browse the repository at this point in the history
Signed-off-by: Manan Gupta <[email protected]>
  • Loading branch information
GuptaManan100 committed Nov 10, 2023
1 parent 1224f62 commit 861bc4c
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
22 changes: 22 additions & 0 deletions changelog/19.0/19.0.0/summary.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

## <a id="major-changes"/>Major Changes

Expand All @@ -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`.

### <a id="vtgate"/>VTGate

#### <a id="show-vschema-keyspaces"/>`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)
```
2 changes: 2 additions & 0 deletions go/vt/sqlparser/parse_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2369,6 +2369,8 @@ var (
input: "show vitess_targets",
}, {
input: "show vschema tables",
}, {
input: "show vschema keyspaces",
}, {
input: "show vschema vindexes",
}, {
Expand Down

0 comments on commit 861bc4c

Please sign in to comment.