3. Manipulating a Database with SQLAlchemy
Learning Objectives
By the end of this chapter, you will be able to:
- Use the pgAdmin tool to manage a database
- Manipulate a database using SQLAlchemy
- Create database tables using Flask-Migrate
- Persist data into a database
- Hash confidential password data
This chapter covers using SQLAlchemy to access a database, including building a model, encrypting the password, ensuring each email is unique, and then saving the recipe data in the database.