Skip to main content

Agnostic Database Migrations

Project description

Agnostic Database Migrations

PyPI GitHub Workflow Status (with event) Coverage

Overview

Agnostic is a light-weight, easy-to-learn, and flexible database migration tool in which migration scripts are written in pure SQL. It is agnostic towards database, programming language, and object relational mapper (ORM).

Super Quick Start

Here is an absurdly brief introduction to Agnostic:

~/myapp $ mkdir migrations

~/myapp $ agnostic -t postgres -u myuser -d mydb bootstrap
Migration table created.

~/myapp $ cat > migrations/add_cell_phone.sql
ALTER TABLE customer ADD cell_phone VARCHAR(255);
^D

~/myapp $ cat > migrations/add_nickname.sql
ALTER TABLE customer ADD nickname VARCHAR(255);
^D

~/myapp $ agnostic -t postgres -u myuser -d mydb migrate
Backing up "mydb" to "/tmp/tmpm8glpgaa".
About to run 2 migrations in "mydb":
    * Running migration add_cell_phone (1/2)
    * Running migration add_nickname (2/2)
Migrations completed successfully.
Removing backup "/tmp/tmpm8glpgaa".

For a not-quite-as-quick-but-still-pretty-quick start, please refer to the full documentation.

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

agnostic-1.0.3.tar.gz (12.7 kB view details)

Uploaded Source

Built Distribution

agnostic-1.0.3-py3-none-any.whl (14.8 kB view details)

Uploaded Python 3

File details

Details for the file agnostic-1.0.3.tar.gz.

File metadata

  • Download URL: agnostic-1.0.3.tar.gz
  • Upload date:
  • Size: 12.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.10.12 Linux/5.15.0-78-generic

File hashes

Hashes for agnostic-1.0.3.tar.gz
Algorithm Hash digest
SHA256 d6ae729eacd7f4b3e7b096aa6d41476f19189b2ad93919afe6d6e1f890e29375
MD5 d0fce4133f6baab1cc48e5d824b87844
BLAKE2b-256 1ace0c56ef36fa8783038511faf37d901dc3e7855772f0ccafe4e8ff1807f7c9

See more details on using hashes here.

File details

Details for the file agnostic-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: agnostic-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 14.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.10.12 Linux/5.15.0-78-generic

File hashes

Hashes for agnostic-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 9c18cebea5851bb1b2eb7b14a6b2c33835aed1f7e3662af463e8b7b3b095edeb
MD5 5ea11908e3f656fb1ff9d00f2a742cf6
BLAKE2b-256 32fd93a8aa1b4f49c423fab82f0073d29a97a290cce978f0ba8ee89a3a276cb1

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