asyncorm.application.commands package

Submodules

asyncorm.application.commands.migrator module

class asyncorm.application.commands.migrator.Migrator[source]

Bases: object

ALL_APPS = ['*']
DATAMIGRATION = 'datamigration'
MAKEMIGRATIONS = 'makemigrations'
MIGRATE = 'migrate'
SHOWMIGRATIONS = 'showmigrations'
check_args()[source]
configure_orm()[source]
datamigration(apps, migration)[source]

Creates an empty migration file, so the user can create their own migration.

static initial_parse(initial)[source]
makemigrations(apps)[source]

Creates the file that can be used to migrate the table from a state to the next.

migrate(apps, migration)[source]

Migrates the database from an state to the next using the migration files defined.

run()[source]
showmigrations(apps)[source]

Shows the list of migrations defined in the filesystem and its status in database.

asyncorm.application.commands.orm_setup module

asyncorm.application.commands.orm_setup.file_creator(filename)[source]
asyncorm.application.commands.orm_setup.setup()[source]

Module contents