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
Sean Chalmers 418ce19e02 Overhauled nix file setup to be more like the other QFPL projects.
- Regenerated the individual nix files.
- Removed the shell.nix files

Just running ``$ nix-build`` in levels greater than 2 currently
doesn't succeed, still working on this. The nix-shell environments
work as expected for all levels.
2017-09-18 10:14:29 +10:00
..
bin Added PostgreSQL Db Integration 2017-08-14 16:40:42 +10:00
src/FirstApp Removes a function that was just constructors 2017-09-12 15:42:07 +10:00
tests Rebuilt Conf File Read Handling 2017-09-12 11:21:27 +10:00
appconfig.json Add guidance about handling requests without persistent storage. 2017-09-11 10:29:56 +10:00
changelog.md change changelog files to lowercase 2017-09-01 11:17:26 +10:00
default.nix Overhauled nix file setup to be more like the other QFPL projects. 2017-09-18 10:14:29 +10:00
level05.cabal Merge branch 'master' of gitlab.com:qfpl/applied-fp-course 2017-09-12 13:41:26 +10:00
level05.nix Overhauled nix file setup to be more like the other QFPL projects. 2017-09-18 10:14:29 +10:00
LICENCE update copyright notice 2017-09-12 11:51:26 +10:00
README.md Wording updates, description adjustments 2017-09-06 10:54:50 +10:00
Setup.hs Added Level05 - Add a database [WIP] 2017-08-11 16:28:56 +10:00
test.json Rebuilt Conf File Read Handling 2017-09-12 11:21:27 +10:00

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.