diff --git a/dev/Makefile b/dev/Makefile index 3178725..d38b67a 100644 --- a/dev/Makefile +++ b/dev/Makefile @@ -27,6 +27,12 @@ ods: @docker compose cp ./src/ods.sql postgres:/tmp/ods.sql @docker compose exec -e PGPASSWORD=dev -it postgres psql -h 0.0.0.0 -d orcavault -U dev -f /tmp/ods.sql +tsa: + @docker compose cp ./src/tsa.sql postgres:/tmp/tsa.sql + @docker compose exec -e PGPASSWORD=dev -it postgres psql -h 0.0.0.0 -d orcavault -U dev -f /tmp/tsa.sql + +all: ods tsa + load: @docker compose cp ./src/load.sh postgres:/tmp/load.sh @docker compose exec -it postgres bash /tmp/load.sh diff --git a/dev/src/load.sh b/dev/src/load.sh index a31a43e..92241d3 100644 --- a/dev/src/load.sh +++ b/dev/src/load.sh @@ -16,4 +16,5 @@ PGPASSWORD=dev psql -h 0.0.0.0 -d orcavault -U dev < \l orcavault=> \dn @@ -16,6 +16,10 @@ orcavault=> set search_path to ods; orcavault=> \dt orcavault=> \d data_portal_labmetadata orcavault=> select count(1) from data_portal_labmetadata; +orcavault=> set search_path to tsa; +orcavault=> \dt +orcavault=> \d spreadsheet_library_tracking_metadata +orcavault=> select count(1) from spreadsheet_library_tracking_metadata; orcavault=> \q ``` diff --git a/orcavault/models/tsa/sources.yml b/orcavault/models/tsa/sources.yml new file mode 100644 index 0000000..37d81c1 --- /dev/null +++ b/orcavault/models/tsa/sources.yml @@ -0,0 +1,8 @@ +version: 2 + +sources: + - name: tsa + database: orcavault + schema: tsa + tables: + - name: spreadsheet_library_tracking_metadata