flâneur — a map of the web's best reading

Working with Transactions and the DBAPI — SQLAlchemy 2.0 Documentation

docs.sqlalchemy.org · 3,141 words · saved by 1 readers

With the Engine object ready to go, we may now proceed to dive into the basic operation of an Engine and its primary interactive endpoints, the Connection and Result. We will additionally introduce the ORM’s facade for these objects, known as the Session. Note to ORM readers When using the ORM, the Engine is managed by another object called the Session. The Session in modern SQLAlchemy emphasizes a transactional and SQL execution pattern that is largely identical to that of the Connection discussed below, so while this subsection is Core-centric, all of the concepts here are essentially relevant to ORM use as well and is recommended for all ORM learners. The execution pattern used by the Connection will be contrasted with that of the Session at the end of this section. As we have yet to introduce the SQLAlchemy Expression Language that is the primary feature of SQLAlchemy, we will make use of one simple construct within this package called the text() construct, which allows us to write

Working with Transactions and the DBAPI - SQLAlchemy 2.0 Documentation via SQLAlchemy adapter --> Release: 2.0.51 current release | Release Date: June 15, 2026 SQLAlchemy 2.0 Documentation SQLAlchemy 2.0 Documentation current release Home | Download this Documentation Search terms: SQLAlchemy Unified Tutorial Establishing Connectivity - the Engine Working with Transactions and the DBAPI ¶ Getting a Connection Committing Changes Basics of Statement Execution Fetching Rows Sending Parameters Sending Multiple Parameters Executing with an ORM Session Working with Database Metadata Working with Dat

Explore this link on the map →

related reading