Skip to content
This repository was archived by the owner on Aug 19, 2025. It is now read-only.

Conversation

@aminalaee
Copy link
Contributor

@aminalaee aminalaee commented Dec 10, 2021

Closes #429 and closes #421.

Changes extra installations from:

pip install databases[postgresql+asyncpg]

To:

pip install databases[asyncpg]

This will be a step towards downplaying the default drivers.
Even though it keeps default drivers to work like pip install databases[postgresql] but will remove them from the docs to point to specific drivers.

And also worth mentioning that this will be the API, still mentioned the default in the docs:

database = Database('sqlite:///example.db')

This is equivalent to:

database = Database('sqlite+aiosqlite:///example.db')

I think we should also downplay the default dialect and specify the driver in the docs.

@aminalaee aminalaee requested a review from a team December 10, 2021 10:22
@aminalaee aminalaee changed the title change extra_requires Change extra installations to specific drivers Dec 10, 2021
@aminalaee
Copy link
Contributor Author

@collerek Do you think you can review this?

@aminalaee
Copy link
Contributor Author

aminalaee commented Jan 16, 2022

@collerek thanks for the review. that makes sense.
I'll also update documentation for the database URI to downplay the idea of default drivers:

So instead of this:

database = Database('sqlite:///example.db')

We would use this in the docs:

database = Database('sqlite+aiosqlite:///example.db')

Even though both will work for now, but we wouldn't encourage the default drivers both in installation and usage.

@aminalaee aminalaee mentioned this pull request Jan 16, 2022
@aminalaee aminalaee merged commit c2417cd into master Jan 18, 2022
@aminalaee aminalaee deleted the fix-extra-requires-installations branch January 18, 2022 10:08
collerek added a commit that referenced this pull request Jan 20, 2022
skuda pushed a commit to skuda/databases that referenced this pull request Mar 31, 2022
skuda pushed a commit to skuda/databases that referenced this pull request Mar 31, 2022
@aminalaee aminalaee mentioned this pull request May 29, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

broken installation instructions for non-default db drivers Consider deprecating (or at least downplaying) the notion of a "default driver"

3 participants