Skip to content

fastapi alembic数据库迁移工具,参考flask_migrate

Notifications You must be signed in to change notification settings

pengyejun/fastapi_migrate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fastapi-Migrate

fastapi-Migrate is an extension that handles SQLAlchemy database migrations for fastapi applications using Alembic.

Tips:

Since fastapi does not provide a command line similar to flask, you need to integrate the command line yourself. How to use

Usage: Similar to flask_migrate

python your_command db --help

python your_command db init

python your_command db migrate

python your_command db upgrade

Installing

pip install fastapi_migrate

About

fastapi alembic数据库迁移工具,参考flask_migrate

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published