Skip to content

Commit

Permalink
feat: Fix COPY FROM statement
Browse files Browse the repository at this point in the history
  • Loading branch information
codingconcepts committed May 15, 2024
1 parent 607601a commit 673338b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ wrote csv: person_event took: 144ms
wrote all csvs took: 145ms
```
This will output:
This will output and dg will then run an HTTP server allow you to import the files from localhost.
```
your_output_dir
Expand Down Expand Up @@ -176,7 +176,7 @@ If you're working with a remote database, try importing the CSV file as follows:

``` sh
psql "postgres://root@localhost:26257/defaultdb?sslmode=disable" \
-c "COPY person (id, full_name, date_of_birth, user_type, favourite_animal) FROM STDIN WITH DELIMITER ',' CSV HEADER NULL E''" < ./csvs/person/person.csv
-c "\COPY public.person (id, full_name, date_of_birth, user_type, favourite_animal) FROM './csvs/person/person.csv' WITH DELIMITER ',' CSV HEADER NULL E''"
```

### Tables
Expand Down

0 comments on commit 673338b

Please sign in to comment.