Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion PostgreSQL_End_to_End/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ flowchart LR
| [`data/in/`](data/in/) | Six deliveries of a fictional asset manager (below) |
| [`data/bad/`](data/bad/) | Four files a loader must not accept |
| [`data/expected/`](data/expected/) | The files the generator writes from the loaded data (golden files) |
| [`queries/`](queries/) | The questions of the films: deliveries, what repeats, NAV as known today and before, positions, transactions, documents, templates, access, reconciliation |
| [`queries/`](queries/) | The questions of the films: deliveries, what repeats, NAV as known today and before, positions, transactions, documents, templates, access, reconciliation, rows per table |
| [`run_all.sh`](run_all.sh) | The whole chain end to end; CI runs exactly this |
| [`tools/xsd11/`](tools/xsd11/) | XSD 1.1 validation with Xerces-J 2.12.2 (jars from Maven Central, checked by SHA-1) |

Expand Down
13 changes: 13 additions & 0 deletions PostgreSQL_End_to_End/queries/10_rows_per_table.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
-- What a load left in the database: rows per table (replaced rows included: nothing is overwritten).
SELECT t AS table_name, n AS rows
FROM (VALUES ('delivery', (SELECT count(*) FROM delivery)),
('fund', (SELECT count(*) FROM fund)),
('share_class', (SELECT count(*) FROM share_class)),
('nav', (SELECT count(*) FROM nav)),
('price', (SELECT count(*) FROM price)),
('portfolio', (SELECT count(*) FROM portfolio)),
('position', (SELECT count(*) FROM position)),
('asset', (SELECT count(*) FROM asset)),
('trade', (SELECT count(*) FROM trade)),
('document', (SELECT count(*) FROM document)),
('regulatory_report', (SELECT count(*) FROM regulatory_report))) AS v (t, n);