Chapter 6. Database Programming

Did you really name your son Robert’); DROP TABLE Students;-- ?

—Randall Munroe, XKCD, October 2007

In this chapter...

Introduction

The Python DB-API

ORMs

Non-Relational Databases

Related References

In this chapter, we discuss how to communicate with databases by using Python. Files or simplistic persistent storage can meet the needs of smaller applications, but larger server or high-data-volume applications might require a full-fledged database system, instead. Thus, we cover both relational and non-relational databases as well as Object-Relational Mappers (ORMs).

6.1. Introduction

This opening section will discuss the need for databases, present the Structured Query Language (SQL), and introduce readers ...

Get Core Python Applications Programming, 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.