Chapter 12. Databases: Getting Organized
Sooner or later, your application’s data needs to be managed.
And when you need to more appropriately manage your data, Python (on its own) may not be enough. When this happens, you’ll need to reach for your favorite database engine. To keep things… em, eh… manageable, we’re going to stick with database engines that support trusty ol’ SQL. In this chapter, you’ll not only create a database then add some tables to it, you’ll also insert, select, and delete data from your database, performing all of these tasks with SQL queries orchestrated by your Python code.
The Coach has been in touch…
And he’s a little confused.
Whoops.
When you take a look at the Coach’s system, someone copied the new files from the latest swim session into the swimdata folder overwriting the existing data (where the filenames matched).
You assure the Coach he did nothing wrong, and you also confirm you still have a copy of the “old” data as a ZIP archive.
With a friendly “don’t worry,” you commit to adjusting the system so that older, historical data doesn’t get wiped by any new stuff.
All you have to do now is work out how to do this…
Cubicle Conversation
Get Head First Python, 3rd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.