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

Don't explain SQL in mysql cheat #186

Open
federico-razzoli opened this issue Nov 18, 2022 · 3 comments
Open

Don't explain SQL in mysql cheat #186

federico-razzoli opened this issue Nov 18, 2022 · 3 comments

Comments

@federico-razzoli
Copy link

mysql refers to the command line client that comes with MySQL or MariaDB.

This cheat shouldn't show SQL examples. psql cheat doesn't, and I find it much cleaner.

@chrisallenlane
Copy link
Member

Hi, @federico-razzoli

Thanks for the suggestion.

I have mixed feelings about this. On one hand, you're clearly right - the SQL explanations are inconsistent with other cheatsheets, and cheatsheets generally are focused upon individual command-line applications.

On the other hand, (to the best of my knowledge), the SQL presented here is MySQL-specifc, and seems (to me) like it could be genuinely useful to some people. (I agree that "generic" SQL has no place here.)

That being said - how would you propose that we present the MySQL-specific SQL? In a mysql-sql cheatsheet or something, perhaps?

Thanks.

@federico-razzoli
Copy link
Author

Yes, some of the statements are MySQL and MariaDB specific. However they're relevant no matter which client you use: mycli, MySQL Shell, mariadb, or a GUI.

A mysql-sql cheat would makes sense to me. The cheats for mysql and other clients for MySQL/MariaDB could end with a note like: "See mysql-sql for MySQL SQL dialect".

I'd be happy to contribute mycli and mariadb cheats, as well as other utilities.

@chrisallenlane
Copy link
Member

A mysql-sql cheat would makes sense to me.

I like this idea as well.

I'd be happy to contribute mycli and mariadb cheats, as well as other utilities.

If you have the time/interest to make these changes, I would very much welcome the PR 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants