This commit is contained in:
Paul Trowbridge 2017-10-13 09:19:20 -04:00
commit 9040c3249e
3 changed files with 1 additions and 46 deletions

View File

@ -1,48 +1,3 @@
/*
SELECT
jsonb_pretty(
$$
{
"name": "GOOGDM",
"type": "json_csv",
"schema": {
"rows": [
{
"elements": [
{
"status": "text",
"distance": {
"text": "text",
"value": "numeric"
},
"duration": {
"text": "text",
"value": "value"
}
}
]
}
],
"status": "text",
"origin_addresses": [
"text"
],
"destination_addresses": [
"text"
]
},
"unique_constraint": {
"type": "key",
"fields": [
"{origin_adresses,0}",
"{destination_adresses,0}"
]
}
}
$$::jsonb
)
*/
DO $$ DO $$
declare _t text; declare _t text;

View File

@ -1,2 +1,2 @@
"C:\PostgreSQL\pg10\bin\pg_dump" -h localhost -p 5433 -U ptrowbridge -d ubm -s -O -F p -f "C:\users\ptrowbridge\Documents\tps_etl\ubm_schema.sql" "C:\PostgreSQL\pg10\bin\pg_dump" -h localhost -p 5433 -U ptrowbridge -d ubm -s -O -F p -f "C:\users\ptrowbridge\Documents\tps_etl\ubm_schema.sql"
"C:\PostgreSQL\pg10\bin\pg_dump" -h localhost -p 5433 -U ptrowbridge -d ubm --column-inserts -a -O -F p -f "C:\users\ptrowbridge\Documents\tps_etl\ubm_data.backup" "C:\PostgreSQL\pg10\bin\pg_dump" -h localhost -p 5433 -U ptrowbridge -d ubm --column-inserts -a -O -F p -f "C:\users\ptrowbridge\Documents\tps_etl\ubm_data.sql"