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

[MRG] Add sqlserver database adapter #240

Merged
merged 6 commits into from
Jan 31, 2024
Merged

Conversation

joaquingx
Copy link
Contributor

Description

Please include a summary of the changes, relevant motivation and context.

Issue

  • Github Issue ID.

Checklist before requesting a review

  • I have performed a self-review of my code.
  • My code follows the style guidelines of this project.
  • I have made corresponding changes to the documentation.
  • New and existing tests pass locally with my changes.
  • If this change is a core feature, I have added thorough tests.
  • If this change affects or depends on the behavior of other estela repositories, I have created pull requests with the relevant changes in the affected repositories. Please, refer to our official documentation.
  • I understand that my pull request may be closed if it becomes obvious or I did not perform all of the steps above.

@joaquingx joaquingx changed the title [MRG] Add sqlserver database adapter [WIP] Add sqlserver database adapter Jan 25, 2024
@joaquingx joaquingx force-pushed the add-azuresql-database-adapter branch from 9b2d75e to 06d3410 Compare January 25, 2024 22:02
@joaquingx joaquingx changed the title [WIP] Add sqlserver database adapter [MRG] Add sqlserver database adapter Jan 30, 2024

def __init__(self, connection_string, production, certificate_path):
self.connection_string = connection_string
self.local_storage = threading.local()
Copy link
Contributor

Choose a reason for hiding this comment

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

The production and certificate_path variables are not being used here, although they may be required for some production environments. Or are these parameters also included in the connection string if needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have been reviewing the Azure SQL documentation and it appears that using a certificate path is not a requirement, even for production environments.

return InsertionResponse(response, ex)

def insert_one_to_unique_dataset(self, database_name, table_name, item): # Needs more discussion.
return self.insert_one_to_dataset(database_name, table_name, item)
Copy link
Contributor

Choose a reason for hiding this comment

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

@joaquingx In what sense does this require more discussion?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It appears that this function is not being utilized as intended. We will need to discuss to address the appropriate use of this function in future implementations.

Copy link
Contributor

@mgonnav mgonnav left a comment

Choose a reason for hiding this comment

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

Well done!

@mgonnav mgonnav merged commit 3e75cca into main Jan 31, 2024
@mgonnav mgonnav deleted the add-azuresql-database-adapter branch January 31, 2024 22:57
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