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