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.0.tar.gz (75.0 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pogo_migrate-0.2.0.tar.gz
  • Upload date:
  • Size: 75.0 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.0.tar.gz
Algorithm Hash digest
SHA256 8d9188b85473994ee8f2137f6c91f2c1789c3958487c911f533155345f5a7791
MD5 7d4de09bf932fb4fc72f51a669045bb1
BLAKE2b-256 69800d8ace059c9e17752e92cb868a9f2f8a240b6c9bc6764efc852e8cf85baa

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for pogo_migrate-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 717120cc318f1ace173eb647969169ce43e8b8f0826880db1d686bd560c39375
MD5 ac29ad2afb57793e68856687ba01ce75
BLAKE2b-256 421f5f4a8c8a70cc8f44768976ffddd1a8ec8ee21307beca5a283068d469051c

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