Database

Learn how to implement the database layer for the pure project.

We'll cover the following

Migrations

For the sake of simplicity, we will stick to Flyway for our database migrations. The only difference will be in how we wrap the migration code. We will Encapsulate the code properly within an IO to defer side effects.

While we’re at it, we may just as well write our migration code using the interpreter pattern (it is popular under the name “tagless final” in Scala).

Get hands-on with 1200+ tech skills courses.