Skip to content

Commit 1fdc629

Browse files
committed
Allow extra options to be passed to psql calls
1 parent ccb6972 commit 1fdc629

File tree

2 files changed

+65
-54
lines changed

2 files changed

+65
-54
lines changed

mimic-iii/concepts/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@ This can be done as follows:
3535
* e.g. `bash postgres_make_concepts.sh`
3636
* This file runs the scripts after applying a few regular expressions which convert table references and date calculations appropriately.
3737
* This file generates all concepts on the `public` schema.
38+
* Exporting DBCONNEXTRA before calling this script will add this to the
39+
connection string. For example, running:
40+
`DBCONNEXTRA="user=mimic password=mimic" bash postgres_make_concepts.sh`
41+
will add these settings to all of the psql calls. (Note that "dbname"
42+
and "search_path" do not need to be set.)
3843

3944
If you do not have access to a PostgreSQL database with MIMIC, you can read more about building the data within one in the [buildmimic/postgres](https://github.com/MIT-LCP/mimic-code/tree/main/mimic-iii/buildmimic/postgres) folder.
4045

0 commit comments

Comments
 (0)