Migratore Infra-structure
Project description
Simple migration framework / infra-structure for SQL based databases.
Installation
pip install migratore
Execution
HOST=${HOST} DB=${DB_NAME} USERNAME=${DB_USER} PASSWORD=${DB_PASS} migratore upgrade
Variables
HOST- Hostname or IP address of the database system for migrationPORT- TCP port to be used in the connection with the database systemUNIX_SOCKET- Filesystem path to the UNIX socket file to be used in connectionDB- Name of the database used as the migration targetUSERNAME- Username for authentication in databasePASSWORD- Password to be used for authentication in databaseFS- Base file system path for file migration (may depend on migration context)
Commands
help- Prints a help message about the CLI interfaceversion- Prints the current version of migratoreenviron- Displays the current environment in the standard outputlist- Lists the executed migrations on the current databaseerrors- Lists the various errors from migration of the databasetrace [id]- Prints the traceback for the error execution with the provided idrebuild [id]- Run the partial execution of the migration with the given idupgrade [path]- Executes the pending migrations using the defined directory or currentgenerate [path]- Generates a new migration file into the target path
Examples
database = Migratore.get_database()
table = database.get_table("users")
table.add_column("username", type = "text")
License
Migratore is currently licensed under the Apache License, Version 2.0.
Build Automation
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
migratore-0.5.2.tar.gz
(14.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file migratore-0.5.2.tar.gz.
File metadata
- Download URL: migratore-0.5.2.tar.gz
- Upload date:
- Size: 14.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.8.3 requests/2.27.1 setuptools/44.1.0 requests-toolbelt/1.0.0 tqdm/4.64.1 CPython/2.7.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c9ca9d9bd5adc0290a3350baec1cbc4fc3fa1fed51f3ec2f79706ac604849c41
|
|
| MD5 |
d18050f7052f68fda326755343fdbb26
|
|
| BLAKE2b-256 |
e9dfa2727b79ea75e82d44e7bce97720baf2980e03cca6481df1275e35580a93
|
File details
Details for the file migratore-0.5.2-py2.py3-none-any.whl.
File metadata
- Download URL: migratore-0.5.2-py2.py3-none-any.whl
- Upload date:
- Size: 18.6 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.8.3 requests/2.27.1 setuptools/44.1.0 requests-toolbelt/1.0.0 tqdm/4.64.1 CPython/2.7.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
865e03dbd00c61db15c5ed6434e7902223d65d6d42a866b518dda5ec4f0aa392
|
|
| MD5 |
26b41df74da5a1ccbeee2789942252b1
|
|
| BLAKE2b-256 |
139dff90b1e15df360c31771f0c352937fff9a18cbe10ab44c17ea1c4c97f4d5
|