From 38ff0d9e06f871cf31d88e914c54b9ff13d31167 Mon Sep 17 00:00:00 2001 From: Paul Trowbridge Date: Wed, 30 May 2018 09:49:50 -0400 Subject: [PATCH] ddrop pncc_sample --- sample_pnc/define.sql | 74 ------------------------------------------- sample_pnc/dump.cmd | 2 -- sample_pnc/import.sql | 0 sample_pnc/srce.json | 67 --------------------------------------- 4 files changed, 143 deletions(-) delete mode 100644 sample_pnc/define.sql delete mode 100644 sample_pnc/dump.cmd delete mode 100644 sample_pnc/import.sql delete mode 100644 sample_pnc/srce.json diff --git a/sample_pnc/define.sql b/sample_pnc/define.sql deleted file mode 100644 index 84a0a9d..0000000 --- a/sample_pnc/define.sql +++ /dev/null @@ -1,74 +0,0 @@ -SELECT - * -FROM - tps.srce_set( - $$ - { - "name": "PNCC", - "type": "csv", - "descr": "PNC Cash Accounts", - "constraint": [ - "{AsOfDate}" - ], - "schemas": { - "default": [ - { - "path": "{AsOfDate}", - "type": "date", - "column_name": "AsOfDate" - }, - { - "path": "{BankId}", - "type": "text", - "column_name": "BankID" - }, - { - "path": "{AccountNumber}", - "type": "text", - "column_name": "AccountNumber" - }, - { - "path": "{AccountName}", - "type": "text", - "column_name": "AccountName" - }, - { - "path": "{BaiControl}", - "type": "text", - "column_name": "BaiControl" - }, - { - "path": "{Currency}", - "type": "text", - "column_name": "Currency" - }, - { - "path": "{Transaction}", - "type": "text", - "column_name": "Transaction" - }, - { - "path": "{Reference}", - "type": "text", - "column_name": "Reference" - }, - { - "path": "{Amount}", - "type": "text", - "column_name": "Amount" - }, - { - "path": "{Description}", - "type": "text", - "column_name": "Description" - }, - { - "path": "{AdditionalRemittance}", - "type": "text", - "column_name": "CurrencyAdditionalRemittance" - } - ] - } -} - $$::jsonb - ) \ No newline at end of file diff --git a/sample_pnc/dump.cmd b/sample_pnc/dump.cmd deleted file mode 100644 index f835af6..0000000 --- a/sample_pnc/dump.cmd +++ /dev/null @@ -1,2 +0,0 @@ -psql -U ptrowbridge -d ubm -p 5432 -h ushcc10091 -c "COPY (SELECT jsonb_agg(rec) rec from tps.trans where srce = 'PNCC') TO 'c:\users\ptrowbridge\downloads\pncc.csv' WITH (format csv, header true)" -psql -U ptrowbridge -d ubm_dev -p 5432 -h ushcc10091 -c "CREATE TEMP TABLE x(j jsonb); COPY x FROM 'c:\users\ptrowbridge\downloads\pncc.csv' with (format csv, header true); SELECT * FROM x JOIN LATERAL tps.srce_import('PNCC',x.j) ON TRUE; DROP TABLE X;" \ No newline at end of file diff --git a/sample_pnc/import.sql b/sample_pnc/import.sql deleted file mode 100644 index e69de29..0000000 diff --git a/sample_pnc/srce.json b/sample_pnc/srce.json deleted file mode 100644 index a75a534..0000000 --- a/sample_pnc/srce.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "name": "PNCC", - "type": "csv", - "descr": "PNC Cash Accounts", - "constraint": [ - "{AsOfDate}" - ], - "schemas": { - "default": [ - { - "path": "{AsOfDate}", - "type": "date", - "column_name": "AsOfDate" - }, - { - "path": "{BankId}", - "type": "text", - "column_name": "BankID" - }, - { - "path": "{AccountNumber}", - "type": "text", - "column_name": "AccountNumber" - }, - { - "path": "{AccountName}", - "type": "text", - "column_name": "AccountName" - }, - { - "path": "{BaiControl}", - "type": "text", - "column_name": "BaiControl" - }, - { - "path": "{Currency}", - "type": "text", - "column_name": "Currency" - }, - { - "path": "{Transaction}", - "type": "text", - "column_name": "Transaction" - }, - { - "path": "{Reference}", - "type": "text", - "column_name": "Reference" - }, - { - "path": "{Amount}", - "type": "text", - "column_name": "Amount" - }, - { - "path": "{Description}", - "type": "text", - "column_name": "Description" - }, - { - "path": "{AdditionalRemittance}", - "type": "text", - "column_name": "CurrencyAdditionalRemittance" - } - ] - } -} \ No newline at end of file