haskell-relational-record/examples/HDBC/PostgreSQL/example/README

21 lines
333 B
Plaintext

This example requires user access to PostgreSQL database
which is named 'hrrtest' over UNIX domain socket.
## Creating 'hrrtest'
% createdb hrrtest
## Example 1 case
% psql hrrtest < ./1/create.sql
% runghc -i1 ./1/query.hs
...
## Example 3 case
% psql hrrtest < ./3/create.sql
% runghc -i3 ./3/query.hs