Skip to content

Import modules when init sqldriver driver #279

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

Merged
merged 1 commit into from
Apr 13, 2023
Merged

Conversation

ssweber
Copy link
Collaborator

@ssweber ssweber commented Apr 13, 2023

Using my new write powers to work in the main pysimplesql repository! Now you can easily try out my changes before committing :)

This loads modules necessary for the sqldriver drivers on their init, with a popup if module is not found. So now a user doesn't need to install all database drivers, just to use sqlite. Then we can add all the optionals to setup.py

I tested this, and it works ok... but let me know if there is a more clean way without using global.

What are your thoughts on external requirements? Like the ODBC for sqlserver, or java jre for access?

This loads modules necessary for the sqldriver drivers on init, with a popup if module is not found.
@ssweber
Copy link
Collaborator Author

ssweber commented Apr 13, 2023

image
here's how the popup looks.

@PySimpleSQL
Copy link
Owner

PySimpleSQL commented Apr 13, 2023 via email

@PySimpleSQL PySimpleSQL self-requested a review April 13, 2023 08:27
Copy link
Owner

@PySimpleSQL PySimpleSQL left a comment

Choose a reason for hiding this comment

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

These are great :)

@PySimpleSQL PySimpleSQL requested review from PySimpleSQL and removed request for PySimpleSQL April 13, 2023 08:29
@PySimpleSQL
Copy link
Owner

I have no idea what happened, I can't find the review button anywhere

@PySimpleSQL PySimpleSQL merged commit 2d6938f into development Apr 13, 2023
@ssweber ssweber deleted the lazy-import branch April 13, 2023 10:32
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