Skip to main content

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


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

If you're not sure about the file name format, learn more about wheel file names.

sqlaltery-0.3.0-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

Details for the file sqlaltery-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: sqlaltery-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 11.3 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

Hashes for sqlaltery-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 42d1fc396256a257840d23880877d645969045e89791826f68a8c40a949bc865
MD5 9b4f839554d31d30d21d10b170ec4f2a
BLAKE2b-256 fe2a51b51ddb59daa528ba3d54d012223c7c9544415c699e5c92f039964a3695

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page