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.2.tar.gz (66.2 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.2-py3-none-any.whl (11.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pogo_core-0.1.2.tar.gz
  • Upload date:
  • Size: 66.2 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.2.tar.gz
Algorithm Hash digest
SHA256 1480824843babb41f678f8bddcac92b6ce54218ce5f150eea30e38f23c9fda39
MD5 496102680b3b71d13ded091927fe0b5d
BLAKE2b-256 38d8b5a4b6a7a88d09af741438575c32a3bdd86f58005a494737df6d8098dc03

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pogo_core-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 11.7 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 51e56b2bfc0ace9b30212ff9666a637ea26e1540b2e092d2c0bbfd232df3d5ee
MD5 b3a0dbfeaf2156727dbc4f912176380d
BLAKE2b-256 2fc5c4e82895b233869c8dd12e85db40759e05179ecee547a927f123c09104b0

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