A migration library for SQLAlchemy.
Project description
SQLAltery
A migration library for SQLAlchemy. A cleaner frontend to Alembic.
Status
-
MetaDatadiffing (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
SQLAlteryand 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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
sqlaltery-0.2.0-py3-none-any.whl
(11.2 kB
view details)
File details
Details for the file sqlaltery-0.2.0-py3-none-any.whl.
File metadata
- Download URL: sqlaltery-0.2.0-py3-none-any.whl
- Upload date:
- Size: 11.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.3.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8fa8cb3a177aee4aee91a20768869eaa8483b895be9b5a03f1666bb3940f8ee5
|
|
| MD5 |
32dfba94cfd0b04ddb8bb56ffafa5eb7
|
|
| BLAKE2b-256 |
3ecc88067a48c2101a14744f388ac06ae7dee00def74ad04e62a14897cb01b9b
|