sqlalchemy.engine Connection Example Code

Connection is a class within the sqlalchemy.engine module of the SQLAlchemy project.

Engine, create_engine, default, and url are several other callables with code examples from the same sqlalchemy.engine package.

Example 1 from alembic

Alembic (project documentation and PyPI page) is a data migrations tool used with SQLAlchemy to make database schema changes. The Alembic project is open sourced under the MIT license.

alembic / alembic / runtime / migration.py

Example 2 from GINO

GINO (project documentation and PyPI package information) is an object-relational mapper (ORM) built on SQLAlchemy that is non-blocking and therefore designed to work properly with asynchronously-run code, for example, an application written with asyncio.

GINO is open sourced under the BSD License.

GINO / src/gino / engine.py