simpleml.cli.database
¶
CLI functions for database management
Module Contents¶
Functions¶
Binds the db engine and initializes a connection |
|
|
Entrypoint for database related operations |
|
Downgrades database to revision |
Initializes a new database with the latest tables and schemas |
|
|
Full wipe of the database |
|
Upgrades database to revision |
-
simpleml.cli.database.
downgrade
(revision)[source]¶ Downgrades database to revision
REVISION should be the alembic revision to downgrade to
-
simpleml.cli.database.
initialize
()[source]¶ Initializes a new database with the latest tables and schemas (equivalent to db.initialize(create_tables=True, upgrade=True))