mirror of
https://github.com/khibino/haskell-relational-record.git
synced 2025-01-07 13:46:41 +03:00
21 lines
333 B
Plaintext
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
|