No project description provided
Project description
Base Migrator
Installation
$ pip install basemigrator
Example
# changelog.yaml
- file: Book/001-create-table-ddl.sql
- file: Author/001-create-table-ddl.sql
context: dev, prod
$ python
>>> from migrator import migrate
>>> from flask import Flask
>>> from pathlib import Path
>>> app = Flask(__name__)
>>> changelog = f'Path(__file__).parent.absolute()}/migrations'
>>> migrate(app, changelog)
TODO
- Improve documentation
- CI/CD to code linting
- Support different sql clients(postgres, sqlite3, etc)
- Contributing section
- tests/
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
basemigrator-0.1.1.tar.gz
(4.6 kB
view hashes)
Built Distribution
Close
Hashes for basemigrator-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91cf84ab19962cc966da9d1c97f142c11d313e6d80aa4a1ad984842545f7b6b8 |
|
MD5 | 6df0174770c71786422aebf9c4ac251a |
|
BLAKE2b-256 | cd633d24955d617570965303a612134c145c205f9e5fec5b5e601975c0f0a5c1 |