Skip to content

Commit

Permalink
Merge pull request MIT-LCP#1195 from juliangilbey/flexible_psql_conne…
Browse files Browse the repository at this point in the history
…ction_string

Allow extra options to be passed to psql calls with MIMIC-III
  • Loading branch information
alistairewj authored Dec 8, 2021
2 parents e61e312 + 1fdc629 commit d10c765
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 54 deletions.
5 changes: 5 additions & 0 deletions mimic-iii/concepts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ This can be done as follows:
* e.g. `bash postgres_make_concepts.sh`
* This file runs the scripts after applying a few regular expressions which convert table references and date calculations appropriately.
* This file generates all concepts on the `public` schema.
* Exporting DBCONNEXTRA before calling this script will add this to the
connection string. For example, running:
`DBCONNEXTRA="user=mimic password=mimic" bash postgres_make_concepts.sh`
will add these settings to all of the psql calls. (Note that "dbname"
and "search_path" do not need to be set.)

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.

Expand Down
Loading

0 comments on commit d10c765

Please sign in to comment.