Skip to main content

Database migration tool for asyncpg

Project description

Pogo migrate core - asyncpg migration tooling

uv ruff image image image style tests codecov

pogo-core 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 utility functions to apply and rollback migrations.

For a user interface, install pogo-migrate instead.

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_core-0.1.1.tar.gz (66.1 kB view details)

Uploaded Source

Built Distribution

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

pogo_core-0.1.1-py3-none-any.whl (11.6 kB view details)

Uploaded Python 3

File details

Details for the file pogo_core-0.1.1.tar.gz.

File metadata

  • Download URL: pogo_core-0.1.1.tar.gz
  • Upload date:
  • Size: 66.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for pogo_core-0.1.1.tar.gz
Algorithm Hash digest
SHA256 d3f4896f8b12bc55b4e30b3b16427ad228e0062b6c99cf74dfc84e3b3b3fd754
MD5 37473058cd55361283e50d23fa044de4
BLAKE2b-256 a2365daf7a8d43f186f7a76a93c84f1b701453aed37776af9a6fa6fbae37d4f1

See more details on using hashes here.

File details

Details for the file pogo_core-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: pogo_core-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 11.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for pogo_core-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5cd0e46688fbf1b17b7ee446ed3f9876745d927765d8f9150237db62784fda59
MD5 54300c788ae87f8326075725c5ced1e7
BLAKE2b-256 790bcafef4305a5bb155ac6d024a2742903810f018743f7ec44a8d0e29084ff0

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