Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion mimic-iv-note/buildmimic/postgres/load.sql
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
-- psql "dbname=<DBNAME> user=<USER>" -v mimic_data_dir=<PATH TO DATA DIR> -f load_gz.sql
\cd :mimic_data_dir

-- making sure that all tables are emtpy and correct encoding is defined -utf8-
-- making sure that all tables are empty and correct encoding is defined -utf8-
SET CLIENT_ENCODING TO 'utf8';

\COPY mimiciv_note.discharge FROM 'discharge.csv' DELIMITER ',' CSV HEADER NULL '';
Expand Down
2 changes: 1 addition & 1 deletion mimic-iv-note/buildmimic/postgres/load_7z.sql
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
-- psql "dbname=<DBNAME> user=<USER>" -v mimic_data_dir=<PATH TO DATA DIR> -f load_gz.sql
\cd :mimic_data_dir

-- making sure that all tables are emtpy and correct encoding is defined -utf8-
-- making sure that all tables are empty and correct encoding is defined -utf8-
SET CLIENT_ENCODING TO 'utf8';

\COPY mimiciv_note.discharge FROM PROGRAM '7z e -so discharge.csv.gz' DELIMITER ',' CSV HEADER NULL '';
Expand Down
2 changes: 1 addition & 1 deletion mimic-iv-note/buildmimic/postgres/load_gz.sql
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
-- psql "dbname=<DBNAME> user=<USER>" -v mimic_data_dir=<PATH TO DATA DIR> -f load_gz.sql
\cd :mimic_data_dir

-- making sure that all tables are emtpy and correct encoding is defined -utf8-
-- making sure that all tables are empty and correct encoding is defined -utf8-
SET CLIENT_ENCODING TO 'utf8';

\COPY mimiciv_note.discharge FROM PROGRAM 'gzip -dc discharge.csv.gz' DELIMITER ',' CSV HEADER NULL '';
Expand Down
Loading