O'Reilly logo

Domain Modeling Made Functional by Scott Wlaschin

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Working with Relational Databases

Relational databases have a very different model from most code, and traditionally this has been the cause of a lot of pain—the so-called “impedance mismatch” between objects and databases.

Data models developed using functional programming principles tend to be more compatible with relational databases, primarily because functional models do not mix data and behavior, so the saving and retrieving of records is more straightforward. Nevertheless, we still need to address some issues. Let’s look at how a relational database model compares to a functional model.

First, the good news is that tables in relational databases correspond nicely to collections of records in the functional model. And the set-oriented ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required