Skip to main content

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)

Uploaded Source

Built Distribution

basemigrator-0.1.1-py3-none-any.whl (4.7 kB view hashes)

Uploaded Python 3

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