Skip to the content.

Migration from duckdb_engine

duckdb-sqlalchemy is the recommended package name for new work in this repository. If you are coming from duckdb_engine, migrate as follows:

Package and import rename

Replace the existing dialect distribution:

pip uninstall duckdb-engine
pip install duckdb-sqlalchemy

Update imports:

from duckdb_sqlalchemy import Dialect, URL, MotherDuckURL

SQLAlchemy URLs use the duckdb:// driver name in both packages. Existing URLs continue to work. Both distributions register that name, so install one per environment. The explicit URL duckdb+duckdb_sqlalchemy:///:memory: selects this driver when resolving a registration collision.

Notes