Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extensions to SHOW Statements for information_schema tables #3354

Open
6 of 7 tasks
killme2008 opened this issue Feb 22, 2024 · 4 comments
Open
6 of 7 tasks

Extensions to SHOW Statements for information_schema tables #3354

killme2008 opened this issue Feb 22, 2024 · 4 comments
Assignees
Labels
C-user-experience Category User Experience tracking-issue A tracking issue for a feature.
Milestone

Comments

@killme2008
Copy link
Contributor

killme2008 commented Feb 22, 2024

What type of enhancement is this?

API improvement, User experience

What does the enhancement do?

MySQL supports SHOW XXXX from [table] or SHOW FULL XXX from [table] to query information_schema, for example:

SHOW FULL TABLES WHERE Table_type != 'VIEW'

SHOW TABLE STATUS

SHOW PROCEDURE STATUS where DB='public';

SHOW INDEX FROM `monitor`;

SHOW FULL COLUMNS from `monitor`;

We have to support these syntax sugars if we want to improve the compatibility of MySQL protocol.

Tasks:

Implementation challenges

No response

@killme2008 killme2008 added Difficulty: Mid C-user-experience Category User Experience labels Feb 22, 2024
@killme2008 killme2008 self-assigned this Feb 27, 2024
@killme2008 killme2008 modified the milestones: v0.6, v0.7 Feb 27, 2024
@killme2008
Copy link
Contributor Author

The related MySQL documents:

I'll implement the extensions to the show statement for information_schema in 0.7

@killme2008
Copy link
Contributor Author

I'll implement the below show statements:

SHOW CHARACTER SET
SHOW COLLATION
SHOW COLUMNS
SHOW DATABASES
SHOW FUNCTION STATUS
SHOW INDEX
SHOW OPEN TABLES
SHOW PROCEDURE STATUS
SHOW STATUS
SHOW TABLE STATUS
SHOW TABLES
SHOW TRIGGERS
SHOW VARIABLES

@killme2008 killme2008 added the tracking-issue A tracking issue for a feature. label Mar 3, 2024
@killme2008 killme2008 changed the title Show syntax sugar for information_schema Show statement extensions for information_schema tables Mar 3, 2024
@killme2008 killme2008 changed the title Show statement extensions for information_schema tables Extensions to SHOW Statements for information_schema tables Mar 3, 2024
@tisonkun tisonkun modified the milestones: v0.7, v0.9 Mar 6, 2024
@MichaelScofield
Copy link
Collaborator

Navicat will submit "show status" and "show table status" upon connection.

@killme2008
Copy link
Contributor Author

Navicat will submit "show status" and "show table status" upon connection.

show status looks working but returns empty:

mysql> show status;
Empty set (0.03 sec)

I'll implement show table status based on #4218 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-user-experience Category User Experience tracking-issue A tracking issue for a feature.
Projects
None yet
Development

No branches or pull requests

3 participants