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