Skip to content

Commit 673338b

Browse files
feat: Fix COPY FROM statement
1 parent 607601a commit 673338b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ wrote csv: person_event took: 144ms
134134
wrote all csvs took: 145ms
135135
```
136136
137-
This will output:
137+
This will output and dg will then run an HTTP server allow you to import the files from localhost.
138138
139139
```
140140
your_output_dir
@@ -176,7 +176,7 @@ If you're working with a remote database, try importing the CSV file as follows:
176176

177177
``` sh
178178
psql "postgres://root@localhost:26257/defaultdb?sslmode=disable" \
179-
-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
179+
-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''"
180180
```
181181

182182
### Tables

0 commit comments

Comments
 (0)