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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.