Build a CRUD App with SQLAlchemy - CRUD

CRUD Operation SQL Command ORM Command
CREATE INSERT db.session.add(user1)
READ SELECT User.query.all()
UPDATE UPDATE user1.foo = ‘new value’
DELETE DELETE db.session.delete(user1)

The step of creating a to-do application

  1. Traversing across all layers of our backend stack, from our backend server in Flask to our database in Postgres, by understanding mappings between user operations, to the ORM, to the SQL executed on a database.
  2. Developing using the MVC Model-View-Controller pattern, for architecting out our application.
  3. Handing changes to our data schema over time
  4. Modeling relationships between objects in our web application
  5. Implementing Search

おすすめ

転載: blog.csdn.net/BSCHN123/article/details/121313521