Skip to main content

Database migration tool for asyncpg

Project description

Pogo migrate - asyncpg migration tooling

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

Uploaded Source

Built Distribution

pogo_migrate-0.0.15-py3-none-any.whl (14.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pogo_migrate-0.0.15.tar.gz
  • Upload date:
  • Size: 12.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.11.9 Linux/6.5.0-1021-azure

File hashes

Hashes for pogo_migrate-0.0.15.tar.gz
Algorithm Hash digest
SHA256 cbb4ba51544f6218e9fa7b8da34f5a51569766ff0c751263abf3fb474de9630e
MD5 05da15f5817375da25ca7c67eb1d1309
BLAKE2b-256 27dff4581a3c6310fcfde0dd14652e43f7a1d5a99c51607c5f31a8a6172c8a2c

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: pogo_migrate-0.0.15-py3-none-any.whl
  • Upload date:
  • Size: 14.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.11.9 Linux/6.5.0-1021-azure

File hashes

Hashes for pogo_migrate-0.0.15-py3-none-any.whl
Algorithm Hash digest
SHA256 3a639b282a588d0db9cdd3d32f3805fd1d090f67c62a8af1b985c2927246e469
MD5 f0256b079742316706d093f24fcf3243
BLAKE2b-256 fc0fccdb3ec8bd6b68b9341cafd2a3491546e6ac0419d2799ab2c35f653b11ba

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