Adding a CMS to Your Flask Web App Transcripts
Chapter: Appendix: Using SQlAlchemy
Lecture: Concept: Inserting data
0:00 We started off this chapter by demoing how to insert data. Let's actually summarize now here at the end. So again, we're going to create a session
0:10 which is the corresponding unit of work bit of syntax in SQLAlchemy. Then we're just going to allocate some objects
0:16 so here we're going to create a package and set its ID and its author maybe create some releases set the release, not package value
0:26 other properties similarly relates to set its package, we're going to add the package call commit, whoosh!
0:32 All three that are seeing this because of the relationships get inserted into the database; super easy!