6

I'm learning to use fastapi with postgresql. I have a huge database from other project and its already complete as postgre database... so I try to add fastapi but don't know how can I do this... it seems that you must create all the db schemas with fastapi right from the start... I can't find any helpfull example so I hope you can guide me. Thank you for your time and excuse my english

1 Answer 1

10

You can use sqlacodegen to create the SQLalchemy models from your existing database.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.