Tormor is a command line tool for migrating database. To use Tormor, please first ensure these requirements:
- Postgresql has been installed
- Postgresql can be accessed using command :
$ psql
- SCHEMA_PATH has been specified
Tormor requires Python 3.5 or later to run. Tormor can be installed using pip:
$ pip install git+https://github.com/Proteus-tech/tormor.git@pytest_asyncpg_dryrun$ tormor [opts] command [args]
For more information, please use command:
$ tormor --helpenable-modules command receives module name as a parameter to be enabled and later migrated using migrate command.
$ tormor enable-modules module-to-be-migrated
migrate command executes sql files under the enabled modules.
To start migration, use the following command:
$ tormor migrateTo simply output migration sql queries without executing them, use the following command.
$ tormor migrate --dry-runinclude command takes filename as a parameter allows tormor commands to be run in a script, each line at a time.
$ tormor include filenamesql command takes filename as a parameter and load and execute the query inside it.
$ tormor sql filename- flit
- PostgreSQL
pip install flit
flit install
./runtestsflit publish