SQLAlchemy and Alembic 2 · Engine, models and tables

Create an engine

An engine manages connections. SQLite is handy for tests; use your real URL in production.

from sqlalchemy import create_engine

engine = create_engine("sqlite:///app.db", echo=False)

Official SQLAlchemy and Alembic 2 documentation

More engine, models and tables commands

All engine, models and tables commands · SQLAlchemy and Alembic 2 cheatsheet

Was this page helpful?