CityofSantaMonica / mds-provider

Python tools for working with MDS Provider data
https://github.com/openmobilityfoundation/mobility-data-specification
MIT License
18 stars 20 forks source link

On Conflict Do Nothing -> Update? #43

Closed thekaveman closed 5 years ago

thekaveman commented 5 years ago

Right now when a record moves from a temp table to the final table, if there is a conflict with PKs or other constraints, no insert is made and the existing record is left alone.

PostgreSQL also supports a true "upsert", where an UPDATE can be run on conflict. Should mds-provider support that (maybe as an option)?