Merge branch 'wk' of https://github.com/fleetside72/tps_etl into wk
This commit is contained in:
commit
9040c3249e
45
srce.pgsql
45
srce.pgsql
@ -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;
|
||||||
|
@ -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"
|
Loading…
Reference in New Issue
Block a user