+
Skip to content

Conversation

AllenSH12
Copy link
Contributor

@AllenSH12 AllenSH12 commented May 20, 2025

Summary

Starts on closing out #1921

TODOs:

  • Propose updated query/transaction sections

Checklist

  • I understand that this PR may be closed in case there was no previous discussion. (This doesn't apply to typos!)
  • I've added a test for each change that was introduced, and I tried as much as possible to make a single atomic change.
  • I've updated the documentation accordingly.


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.

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/).

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.

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

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.

Copy link

@saky-semicolon saky-semicolon left a 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!

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

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载