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

SQL Server integration #20

Merged

Conversation

cyrannano
Copy link
Contributor

Description

This PR introduces the integration of SQL Server support within the mindsql module. A new SQLServer class has been added, providing a comprehensive set of methods for connecting to and interacting with SQL Server databases. This includes executing SQL queries, retrieving database and table information, and obtaining DDLs for all tables in a specified database. Additionally, a suite of unit tests has been implemented to ensure the reliability and robustness of the SQL Server functionality.

Related Issue

N/A

Proposed Changes

  • Added a new SQLServer class with methods for:
    • Creating a connection to SQL Server.
    • Executing SQL queries and returning results as pandas DataFrames.
    • Retrieving database and table information.
    • Validating SQL Server connections.
    • Retrieving DDLs for all tables in a specified database.
  • Added unit tests for the SQLServer class to cover:
    • Connection creation (success and failure scenarios).
    • SQL query execution (success and failure scenarios).
    • Retrieval of databases and table names.
    • DDL retrieval for all tables and individual tables.
    • Connection validation.

@Sammindinventory Sammindinventory merged commit 3d0ff02 into Mindinventory:master Oct 18, 2024
2 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.

2 participants