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

Add Support for Pure MySQL Connections in Database Utility #124

Open
Haris-Hambasic opened this issue Nov 20, 2024 · 0 comments
Open

Add Support for Pure MySQL Connections in Database Utility #124

Haris-Hambasic opened this issue Nov 20, 2024 · 0 comments

Comments

@Haris-Hambasic
Copy link

Currently, the connectDatabase function only supports Sequelize for managing database connections. To enhance flexibility and support use cases where raw SQL access is preferred, I propose adding an option to use either Sequelize or pure MySQL.

Proposed Changes

  1. Add a useSequelize option in the ConnectOptions interface to toggle between Sequelize and MySQL.
  2. Use Sequelize as the default option to maintain backward compatibility.
  3. Add functionality for connecting to MySQL directly using the mysql2/promise library when useSequelize is set to false.
  4. Ensure proper connection testing for both modes (Sequelize and pure MySQL).
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

1 participant