Agnostic Database Migrations
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.
Release files for agnostic 1.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| agnostic-1.0.3.tar.gz | 12.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| agnostic-1.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 27.5 kB
Release files / agnostic-1.0.3.tar.gz
| Download URL | agnostic-1.0.3.tar.gz |
|---|---|
| Size | 12.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d6ae729eacd7f4b3e7b096aa6d41476f19189b2ad93919afe6d6e1f890e29375
|
|
BLAKE2b-256 checksum How to use checksums |
1ace0c56ef36fa8783038511faf37d901dc3e7855772f0ccafe4e8ff1807f7c9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.5.1 CPython/3.10.12 Linux/5.15.0-78-generic
|
Release files / agnostic-1.0.3-py3-none-any.whl
| Download URL | agnostic-1.0.3-py3-none-any.whl |
|---|---|
| Size | 14.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9c18cebea5851bb1b2eb7b14a6b2c33835aed1f7e3662af463e8b7b3b095edeb
|
|
BLAKE2b-256 checksum How to use checksums |
32fd93a8aa1b4f49c423fab82f0073d29a97a290cce978f0ba8ee89a3a276cb1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.5.1 CPython/3.10.12 Linux/5.15.0-78-generic
|