Uploaded by ABHISHEK KUMAR

Singleton Pattern in Flask with SQLAlchemy

advertisement
1. Which design pattern have you selected?
Ans Singleton Pattern
2. Present your example with an appropriate code base.
Flask, we use a single instance of database class initialized through db
= SQLAlchemy() to create models and use the database to store and
retrieve data.
Ans
Download