Skip to content
This repository has been archived by the owner on Feb 5, 2022. It is now read-only.

mediaire/mediaire_toolbox

Repository files navigation

MEDIAIRE_TOOLBOX

Shared toolbox for our pipelines.

  • Logging conventions.
  • Queue / Daemon classes.
  • TransactionsDB (a generic way of persisting state through our pipelines).
  • Data cleaner (a tool to periodically clean data on folders).

Build Status

Migrations

Add an entry in migrate.py, and then change the version number in constants.py

Running programmatic migrations manually

E.g. we want to run programmatic migration number 5 manually:

from mediaire_toolbox.transaction_db.transaction_db import migrate_scripts
from mediaire_toolbox.transaction_db.transaction_db import TransactionDB
from sqlalchemy import create_engine

engine = create_engine('sqlite:///t.db')
t_db = TransactionDB(engine)
migrate_scripts(t_db.session, engine, 4, 5)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages