Check out example codes for "alembic generate sql". It will help you in understanding the concepts better.

Code Example 1

$ alembic upgrade 1975ea83b712:ae1027a6acf --sql > migration.sql

Learn ReactJs, React Native from akashmittal.com