1
1
mirror of https://github.com/qfpl/applied-fp-course.git synced 2024-11-27 01:23:00 +03:00
applied-fp-course/level05/README.md
2017-09-06 10:54:50 +10:00

866 B

Level 05

We need a place to store our Comments/Topics, so we're going to add a database to our application, specifically the SQLite database. We've chosen SQLite because it was the simplest to have up and running for the purposes of the course.

There is an example module included for using PostgreSQL, however the course will focus on the SQLite implementation.

For reference, the packages we will use to talk to our database are:

You will also need the SQLite database application installed and available on your system.

Start in src/FirstApp/DB/Types.hs, before moving to src/FirstApp/DB.hs.

NB: The PostgreSQL example module is in src/FirstApp/DB/PostgreSQL.hs.