GildedRose-Refactoring-Kata/plpgsql
2020-01-12 23:35:38 +01:00
..
code Add PL/pg SQL (without test support) 2019-12-18 20:29:45 +01:00
pgunit change test with foo example to fixme 2020-01-12 23:35:38 +01:00
structure Add PL/pg SQL (without test support) 2019-12-18 20:29:45 +01:00
test/data Add PL/pg SQL (without test support) 2019-12-18 20:29:45 +01:00
README.md Add PL/pg SQL (without test support) 2019-12-18 20:29:45 +01:00

Setup

Create database structure: psql -f ./structure/create.sql Load code into database psql -f ./code/update_quality.sql -d gilded_rose Load test data into database: psql -f ./test/data/load.sql -d gilded_rose Execute: CALL update_quality(); Check results: SELECT * FROM items;

Test

No test code provided, only a sample of test data TODO: [https://pgtap.org/](introduce TAP - xUnit for PL/pg SQL)