CHAPTER 11

image

Safe Database Access

In the previous two chapters you saw how to access the file system to read and save information in a durable way. You’ve been given all the tools for dealing with either a custom file format or a treelike information representation such as JSON.

However, in most production system applications, you aren’t working with files. Instead, a database management system (DBMS) is used to store the application’s information and keep it safe. Furthermore, most DBMSs provide functionalities such as transactions, logging, and recovery and replication, which are quite useful for maintenance, protection against errors, and scalability. ...

Get Beginning Haskell: A Project-Based Approach now with the O’Reilly learning platform.

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