migratore 0.5.5
pip install migratore
Latest version
Released:
Migratore Infra-structure
Navigation
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: Apache Software License (Apache Software License)
- Author: Hive Solutions Lda.
- Tags migratore, migration, sql
Classifiers
- Development Status
- License
- Operating System
- Programming Language
- Topic
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 currentskip [path]
- Skips the current migration (next to be run) 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
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: Apache Software License (Apache Software License)
- Author: Hive Solutions Lda.
- Tags migratore, migration, sql
Classifiers
- Development Status
- License
- Operating System
- Programming Language
- Topic
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
Built Distribution
File details
Details for the file migratore-0.5.5.tar.gz
.
File metadata
- Download URL: migratore-0.5.5.tar.gz
- Upload date:
- Size: 15.1 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 | 4a1185a3ec35e32404863767fdf03249c98cc4f54b45d5978ee199220777d073 |
|
MD5 | 72904cf095bbdfb37615cc1a04194dc5 |
|
BLAKE2b-256 | 4e9057707dc7fc4adcdd673fa8d02d7f44cf26a55eb8696e7920673bbba59553 |
File details
Details for the file migratore-0.5.5-py2.py3-none-any.whl
.
File metadata
- Download URL: migratore-0.5.5-py2.py3-none-any.whl
- Upload date:
- Size: 18.9 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 | 5a57b62e2db4d3e57115cf1b04baea4d117ba1e735d457028b04f1094bd09d2a |
|
MD5 | eb22f2586233dcb0160618a4c7dce1c2 |
|
BLAKE2b-256 | 981911243acabd59e4935787591e146af7f5172cfd4200a33f108958b5184c27 |