Chapter 6. Database Programming
Did you really name your son Robert’); DROP TABLE Students;-- ?
—Randall Munroe, XKCD, October 2007
In this chapter...
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).
This opening section will discuss the need for databases, present the Structured Query Language (SQL), and introduce readers ...