15 Working with relational databases
This chapter covers
- Relating Haskell data to database data
- Writing and executing SQL queries
- Structuring programs that need access to databases
Accessing a database is an important part of any backend program. In this chapter, we’ll look at several approaches to access relational databases in Haskell. As usual, we’ll focus on Haskell features that make programming with databases safe. This includes type checking for values we send or receive from a database. Although NoSQL databases are also popular within the Haskell community, I’ve decided not to mention them in this book. The main reason behind this decision is that the corresponding libraries suggest a rather straightforward approach to communicate ...
Get Haskell in Depth 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.