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

Move mysql to BasicDatabaseClient #1861

Merged
merged 8 commits into from Jan 28, 2024
Merged

Move mysql to BasicDatabaseClient #1861

merged 8 commits into from Jan 28, 2024

Conversation

azmy60
Copy link
Contributor

@azmy60 azmy60 commented Jan 9, 2024

closes #1849

@azmy60 azmy60 marked this pull request as ready for review January 11, 2024 13:11
@rathboma
Copy link
Collaborator

TODO: Check if removed functions are used anywhere

@not-night-but not-night-but self-assigned this Jan 19, 2024
@rathboma
Copy link
Collaborator

@not-night-but once you've approved it tag @azmy60 so he can merge it!

Copy link
Contributor

@not-night-but not-night-but left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good!! A couple things:

  • Rather than branching on whether or not it is mysql, we should just override the function in the child
  • Functions that need access to instance members, and don't need to be statically accessed can just be private/protected helper functions.

Fantastic job as always. Common Azmy W

apps/studio/src/lib/db/client.ts Show resolved Hide resolved
apps/studio/src/lib/db/clients/mysql.ts Outdated Show resolved Hide resolved
apps/studio/src/lib/db/clients/mysql.ts Outdated Show resolved Hide resolved
apps/studio/src/lib/db/clients/mysql.ts Outdated Show resolved Hide resolved
apps/studio/src/lib/db/clients/mysql.ts Show resolved Hide resolved
Copy link
Contributor

@not-night-but not-night-but left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

@azmy60 azmy60 merged commit 0ec8fae into master Jan 28, 2024
4 checks passed
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

Successfully merging this pull request may close these issues.

Move MySQL to the BasicDatabaseClient abstract class implementation
4 participants