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

Uploaded Source

Built Distribution

pogo_migrate-0.2.4-py3-none-any.whl (20.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pogo_migrate-0.2.4.tar.gz
  • Upload date:
  • Size: 75.9 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.4.tar.gz
Algorithm Hash digest
SHA256 5b1d395b0ec01c0b1e150c75f59282f52e7e3b1309d4d3997e03a0da6efd5c6d
MD5 4d37a5e491945ae472cbe8808e93b1d7
BLAKE2b-256 fc6462f5a2cbaed7504bac6a8ada7c95b55c3ebece887074f002b0753b503d13

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pogo_migrate-0.2.4-py3-none-any.whl
  • Upload date:
  • Size: 20.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for pogo_migrate-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 df9449b0e91462d544f3ff5b28592ab3b0618ca3146a266f9de38cf945bb3db0
MD5 5df2066aef402447309697d8d9383d33
BLAKE2b-256 0a58200fdd07d9f84842752978d7691498ba84f4b18993e28c83142149fd76e9

See more details on using hashes here.

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