Skip to main content

Database migration tool for asyncpg

Project description

Pogo migrate - asyncpg migration tooling

uv ruff image image image style tests codecov

pogo-migrate is a migration tool intended for use with asyncpg and assists with maintaining your database schema (and data if required) as it evolves. Pogo supports migrations written in raw sql, as well as python files (useful when data needs to be migrated).

A migration can be as simple as:

-- a descriptive message
-- depends: 20210101_01_abcdef-previous-migration

-- migrate: apply
CREATE TABLE foo (id INT, bar VARCHAR(20), PRIMARY KEY (id));

-- migrate: rollback
DROP TABLE foo;

Pogo manages these migration scripts and provides command line tools to apply, rollback and show migration history.

See the docs for more details.

Thanks and Credit

Inspiration for this tool is drawn from yoyo and dbmate.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pogo_migrate-0.2.1.tar.gz (75.1 kB view details)

Uploaded Source

Built Distribution

pogo_migrate-0.2.1-py3-none-any.whl (20.2 kB view details)

Uploaded Python 3

File details

Details for the file pogo_migrate-0.2.1.tar.gz.

File metadata

  • Download URL: pogo_migrate-0.2.1.tar.gz
  • Upload date:
  • Size: 75.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for pogo_migrate-0.2.1.tar.gz
Algorithm Hash digest
SHA256 658a2a56d4a29fb18ac9563a1652e21f1572009199dba4e17bbbe2495a79d756
MD5 7ed7f555b9847695a5d9a02af63635fe
BLAKE2b-256 1882a2c626abc0c2b858ba81d8b765b65b37c0cbb4b3cedf3677716080f88b7c

See more details on using hashes here.

Provenance

File details

Details for the file pogo_migrate-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for pogo_migrate-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0acab947349aa2dad520ccda2d5c0023309a3c22e145264b0b543967f9701fd7
MD5 c0348955ce562f85602ad9dd11f8c01d
BLAKE2b-256 2f16093b1c12315951ba7bc0c65c5291586cf733e0f382975e80f193a124938e

See more details on using hashes here.

Provenance

Supported by

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