-
-
Notifications
You must be signed in to change notification settings - Fork 1k
docs: removes databases package recommendation #2940
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
base: main
Are you sure you want to change the base?
Conversation
|
||
You can use it with an asynchronous ORM, such as [GINO](https://python-gino.org/), | ||
or use regular non-async endpoints, and integrate with [SQLAlchemy](https://www.sqlalchemy.org/). | ||
You can use it with an asynchronous ORM, such as [GINO](https://python-gino.org/) or [SQLAlchemy](https://www.sqlalchemy.org/), or use regular non-async endpoints. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Standard
|
||
In this documentation we'll demonstrate how to integrate against [the `databases` package](https://github.com/encode/databases), | ||
which provides SQLAlchemy core support against a range of different database drivers. | ||
In this documentation we'll demonstrate how to integrate against [SQLAlchemy](https://www.sqlalchemy.org/). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think previous one is better
|
||
Here's a complete example, that includes table definitions, configuring a `database.Database` | ||
instance, and a couple of endpoints that interact with the database. | ||
Here's a complete example, that includes table definitions, configuring a database connection, and a couple of endpoints that interact with the database. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
keep database.Database
under the bracket()
right after the line- "configuring a database connection"
from contextlib import asynccontextmanager | ||
from typing import AsyncIterator | ||
|
||
from sqlalchemy import MetaData, select |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not all of these imports are necessary at the initial point if the user is not going to use these later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There should be some corrections!
Summary
Starts on closing out #1921
TODOs:
Checklist