chop-dbhi / dicom-anon

Python DICOM Anonymizer
BSD 2-Clause "Simplified" License
66 stars 22 forks source link

Use IF NOT EXISTS when Creating Tables to Avoid Calls to table_exists #9

Open cancan101 opened 9 years ago

cancan101 commented 9 years ago

This check can be eliminated: https://github.com/chop-dbhi/dicom-anon/blob/2bdc48e4e7f1f56a376d8ea9f3a2f7c84cda7c5f/dicom_anon.py#L815

See: https://www.sqlite.org/lang_createtable.html

r3m0chop commented 4 years ago

Added in https://github.com/chop-dbhi/dicom-anon/commit/80cd5a762f1a7ed18466c05d120ef986e3be69e4 as part of https://github.com/chop-dbhi/dicom-anon/issues/33 (_"Add --DB_delete option to clear out the sqlite3 tables of priorcleaned")