A migration library for SQLAlchemy.
Project description
SQLAltery
A migration library for SQLAlchemy. A cleaner frontend to Alembic.
Status
-
MetaData
diffing (sqlaltery/compare.py
) - apply ops to
MetaData
(sqlaltery/ops.py:apply
) - apply ops to
Connection
(sqlaltery/ops.py:apply
); all the heavy lifting is passed to Alembic's DDL - write migration to a file (
sqlaltery/command.py:_save_migration
) - tests (95%)
- docs
Why not Alembic?
- Alembic diffs the head MD against current DB, not against latest migration
- Alembic has split upgrade/downgrade
- Alembic requires you to manually manage metadata in migrations (for doing queries)
- Alembic creates a bunch of files (alembic.ini, env.py). The default case should be simple: just create an
SQLAltery
and use it; customize by passing arguments.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
sqlaltery-0.3.1-py3-none-any.whl
(11.2 kB
view hashes)
Close
Hashes for sqlaltery-0.3.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 695db2814d1cb062a7a93733bff80ff1a8cf52b62e5e5505da39108f05d0f1ae |
|
MD5 | e31c1c4073dadb0f496897167a5e69e0 |
|
BLAKE2b-256 | 9c0d6389f5c239b258e81a3d74b803ac75348d5f1d62e9c596a3df75e21ec625 |