File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -39,12 +39,10 @@ bq query --use_legacy_sql=False --replace --destination_table=my_bigquery_datase
3939
4040### PostgreSQL
4141
42- You should have already created a database with the MIMIC-IV data loaded in using the build scripts.
4342The [ postgres] ( /mimic-iv/concepts_postgres ) folder contains concepts in a PostgreSQL compatible dialect.
4443
4544### DuckDB
4645
47- You should have already created a database with the MIMIC-IV data loaded in using the build scripts.
4846The [ duckdb] ( /mimic-iv/concepts_duckdb ) folder contains concepts in a DuckDB compatible dialect.
4947
5048## Transpile
@@ -57,11 +55,13 @@ Most of this process is done the [transpile.py](/src/mimic_utils/transpile.py) f
5755An entrypoint is provided for convenience. To transpile a single file, run:
5856
5957``` sh
58+ # convert_file <source_file> <destination_file> --destination_dialect <dialect>
6059mimic_utils convert_file mimic-iv/concepts/demographics/age.sql age.sql --destination_dialect duckdb
6160```
6261
6362To transpile all files in a folder, run:
6463
6564``` sh
65+ # convert_folder <source_folder> <destination_folder> --destination_dialect <dialect>
6666mimic_utils convert_folder mimic-iv/concepts mimic-iv/concepts_duckdb --destination_dialect duckdb
6767```
You can’t perform that action at this time.
0 commit comments