prooph / link

Automated Workflow Processing
BSD 3-Clause "New" or "Revised" License
13 stars 1 forks source link

Improve table truncate #34

Closed codeliner closed 9 years ago

codeliner commented 9 years ago

Instead of blindly truncating a table it would be better to create a temp table first which has the same structure as the target table. Then import into the temp table and if everything worked fine drop the target table and rename the temp to target.

codeliner commented 9 years ago

Done with https://github.com/prooph/link-sql-connector/commit/a56d3616a356fbd65370106c565f1e5803ed3251