From baadaaef8d9c05c1641fe5852b34934c72f25ec7 Mon Sep 17 00:00:00 2001 From: Paul Trowbridge Date: Tue, 29 May 2018 22:35:16 -0400 Subject: [PATCH] copy over old dcard --- reload/dump.sql | 1 + sample_discovercard/curl_import.cmd | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 reload/dump.sql diff --git a/reload/dump.sql b/reload/dump.sql new file mode 100644 index 0000000..269b550 --- /dev/null +++ b/reload/dump.sql @@ -0,0 +1 @@ +copy (select r.* from tps.trans join lateral jsonb_populate_record(null::tps.dcard, rec) r on true where srce = 'DCARD') to 'C:\users\fleet\downloads\dcard.csv' with (format csv, header true); \ No newline at end of file diff --git a/sample_discovercard/curl_import.cmd b/sample_discovercard/curl_import.cmd index afd73c3..1ce2522 100644 --- a/sample_discovercard/curl_import.cmd +++ b/sample_discovercard/curl_import.cmd @@ -1 +1 @@ -curl -v -F upload=@./data.csv http://localhost:81/import?srce=dcard \ No newline at end of file +curl -v -F upload=@//mnt/c/Users/fleet/Downloads/dcard.csv http://localhost:81/import?srce=dcard \ No newline at end of file