Building Data-Driven Web Apps with Flask and SQLAlchemy Transcripts
Chapter: Using SQLAlchemy
Lecture: Concept: Inserting data

Login or purchase this course to watch this video and the rest of the course contents.
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!

Talk Python's Mastodon Michael Kennedy's Mastodon