Skip to content

Add Support for Pure MySQL Connections in Database Utility #124

@Haris-Hambasic

Description

@Haris-Hambasic

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions