- Directory structure now matches common practices
- Regression tests now run with pg_regress via the PGXS infrastructure.
- Unit tests do not integrate well with pg_regress and have to be run
separately.
- Docker functionality is separate from main Makefile. Run with
`make -f docker.mk` to build and `make -f docker.mk run` to run
the database in a container.
*.csv files in this directory will be imported to the schema expected_outputs in tables named as the files excluding the file suffix.
The column delimiter is semi colon to allow commas within jsons values.
the first row of the file is interpreted as column names and types
ex:
file: example.csv
s text;i int
foo;2
bar;3
becomes a table in the test_outputs schema
select * from test_outputs.example;
s | i
-----+---
foo | 2
bar | 3
(2 rows)
\d test_outputs.example
Table "test_outputs.example"
Column | Type | Modifiers
--------+---------+-----------
s | text |
i | integer |