Runner
pelican.runner.MigrationRunner
MigrationRunner()
Source code in pelican/runner.py
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 | |
database_url
instance-attribute
database_url = get('DATABASE_URL', 'sqlite:///database.db')
engine
instance-attribute
engine = create_engine(database_url)
metadata
instance-attribute
metadata = metadata
compiler
instance-attribute
compiler = compiler_cls(engine)
get_applied_versions
get_applied_versions()
Source code in pelican/runner.py
52 53 54 55 | |
upgrade
upgrade(migration)
Source code in pelican/runner.py
57 58 59 60 61 62 | |
downgrade
downgrade(migration)
Source code in pelican/runner.py
64 65 66 67 68 69 | |
execute
execute(ddls)
Source code in pelican/runner.py
71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 | |
execute_operations
execute_operations(operations)
Source code in pelican/runner.py
89 90 91 92 93 94 95 96 | |